@font-face {
  font-family: Bricolage;
  src: url(fonts/bricolage.ttf) format('truetype');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url(fonts/dm.ttf) format('truetype');
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --ink: #292237;
  --muted: #635e6a;
  --border: #e4e0e6;
  --paper: #faf9f6;
  --lav: #c1adff;
  --display: Bricolage, 'Trebuchet MS', sans-serif;
  font-family: DM, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #7449db;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.52;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
i[data-i] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  flex: none;
}
svg.ico {
  height: 1.22em;
  width: 1.22em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex: none;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  background: white;
  padding: 0.8rem;
}
.skip:focus {
  top: 1rem;
}
.sidebar {
  width: 222px;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--border);
  background: #fffefd;
  padding: 32px 17px 22px;
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 800 41px/0.98 var(--display);
  letter-spacing: -2.7px;
  width: fit-content;
  margin: 0 12px 54px;
}
.brand img {
  object-fit: contain;
}
.brand-point {
  color: #8156da;
}
.side-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #77717d;
  margin: 0 14px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1.5px solid transparent;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  margin: 4px 0;
  width: 100%;
  font-size: 0.94rem;
  font-weight: 600;
}
.nav-item.active {
  background: #ede6ff;
  border-color: #d8c8fa;
  color: #4c3279;
}
.nav-item:hover:not(.active) {
  background: #f6f4f8;
}
.nav-item i {
  font-size: 17px;
}
.secondary {
  margin-top: 36px;
}
.side-bottom {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 20px 7px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}
.side-bottom small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 450;
  margin-top: 1px;
}
.mini-dice {
  font-size: 28px;
  display: grid;
  place-items: center;
  background: #f1ecfa;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #5f4889;
}
.workspace {
  margin-left: 222px;
}
.topbar {
  height: 76px;
  background: #fffefd;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 3.3vw, 58px);
}
.crumbs,
.tools,
.account,
.btn,
.filters,
.section-heading,
.hero-tag,
.mode-chip,
.brand,
.nav-item,
.table-line,
.toolbar {
  display: flex;
  align-items: center;
}
.crumbs {
  gap: 13px;
  color: var(--muted);
  font-size: 0.87rem;
}
.crumbs strong {
  color: var(--ink);
  font-weight: 650;
}
.slash {
  color: #bcb6c0;
}
.tools {
  gap: 12px;
}
.bell,
.close,
.account,
.btn.light,
.pill-control {
  background: #fffefd;
  border: 1.5px solid var(--border);
  border-radius: 10px;
}
.bell,
.close {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  position: relative;
}
.account {
  font-size: 0.87rem;
  font-weight: 700;
  gap: 8px;
  padding: 10px 14px;
  border-color: #c9c4ce;
}
.bell:hover,
.account:hover,
.btn.light:hover {
  background: #f4effe;
}
#bell-dot:not([hidden]) {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ce4780;
  border-radius: 50%;
  right: 7px;
  top: 6px;
}
.mobile-brand,
.mobile-nav {
  display: none;
}
main {
  max-width: 1510px;
  margin: auto;
  padding: 30px clamp(24px, 3.3vw, 58px) 60px;
  outline: none;
}
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 286px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: #cbb9f8;
  box-shadow: 0 4px 0 var(--ink);
  display: flex;
  align-items: center;
}
.hero:before {
  content: '';
  position: absolute;
  inset: 0 0 0 45%;
  background-image: radial-gradient(#846ab0 1.1px, transparent 1.5px);
  background-size: 8px 8px;
  opacity: 0.42;
  mask-image: linear-gradient(90deg, transparent, #000 75%);
  z-index: -1;
}
.hero-copy {
  padding: 29px 4.1%;
  position: relative;
  width: 63%;
}
.hero-tag {
  display: inline-flex;
  gap: 6px;
  background: #f4edff;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 5px 8px;
  transform: rotate(-2deg);
  margin-bottom: 13px;
}
.hero h1 {
  font: 800 clamp(2.85rem, 4.7vw, 5.1rem) / 0.91 var(--display);
  letter-spacing: -0.067em;
}
.hero h1 em {
  font-style: normal;
  color: #543485;
}
.hero p {
  font-size: 0.98rem;
  line-height: 1.45;
  margin: 13px 0 17px;
}
.hero-art {
  position: absolute;
  inset: 0 0 0 52%;
  display: grid;
  place-items: center;
  z-index: -1;
}
.hero-art img {
  width: 90%;
  max-height: 94%;
  object-fit: contain;
  position: relative;
  transform: rotate(-5deg);
}
.orbit {
  position: absolute;
  width: 82%;
  height: 58%;
  border: 1.5px dashed #7a639a;
  border-radius: 50%;
  transform: rotate(-17deg);
  opacity: 0.5;
}
.btn {
  display: inline-flex;
  justify-content: center;
  gap: 9px;
  min-height: 41px;
  padding: 10px 17px;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 10px;
}
.btn.dark {
  background: var(--ink);
  border: 1.5px solid var(--ink);
  color: white;
}
.btn.dark:hover {
  background: #49355a;
}
.btn.lav {
  background: #d5c5ff;
  border: 1.5px solid var(--ink);
  box-shadow: 0 2px var(--ink);
}
.wide {
  width: 100%;
}
.catalogue {
  margin-top: 34px;
}
.catalogue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 19px;
}
.section-heading {
  gap: 11px;
}
.section-heading h2,
.page-heading {
  font: 800 clamp(1.65rem, 2.65vw, 2.45rem) / 1.05 var(--display);
  letter-spacing: -0.055em;
}
.section-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: #e4d9fc;
  border: 1.6px solid var(--ink);
  border-radius: 10px;
  transform: rotate(-6deg);
  font-size: 19px;
}
.filters {
  border: 1px solid #dcd7df;
  border-radius: 10px;
  padding: 3px;
  background: #efedee;
  gap: 2px;
}
.filters button,
.seg button {
  font-size: 0.8rem;
  font-weight: 650;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
}
.filters button[aria-pressed='true'],
.seg button[aria-pressed='true'] {
  background: white;
  border-color: #d8d3dc;
  box-shadow: 0 1px 2px #211a2820;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
}
.card {
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  border: 1.8px solid var(--ink);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 0 var(--ink);
  background: #fffefd;
  transition:
    transform 0.14s,
    box-shadow 0.14s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 var(--ink);
}
.game-art {
  height: clamp(133px, 11.7vw, 190px);
  width: 100%;
  background: var(--tint);
  border-bottom: 1.6px solid var(--ink);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
}
.game-art:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--ink) 0.85px, transparent 1.15px);
  background-size: 6px 6px;
  opacity: 0.19;
  mask-image: linear-gradient(118deg, #000, transparent 54%, #000);
}
.game-art img {
  height: 92%;
  max-width: 72%;
  object-fit: contain;
  transform: rotate(-3deg);
}
.one {
  --tint: #f8aac2;
  --tone: #913053;
}
.scale {
  --tint: #ffda85;
  --tone: #84520d;
}
.truth {
  --tint: #b6a4ec;
  --tone: #644197;
}
.ballon {
  --tint: #9ad6c8;
  --tone: #2f6e65;
}
.thermo {
  --tint: #feb59c;
  --tone: #944c39;
}
.apollon {
  --tint: #a7c9ee;
  --tone: #3a6490;
}
.mode-chip {
  position: absolute;
  left: 11px;
  top: 10px;
  gap: 5px;
  background: #fffdf1ed;
  border: 1px solid var(--ink);
  padding: 3px 7px;
  border-radius: 20px;
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1.2;
}
.card-copy {
  position: relative;
  display: block;
  padding: 15px 16px 17px;
  width: 100%;
  flex: 1;
}
.category,
.eyebrow {
  font-weight: 800;
  letter-spacing: 0.125em;
  font-size: 0.65rem;
  color: var(--tone, #6a557f);
  text-transform: uppercase;
}
.card-title {
  display: block;
  font: 800 clamp(1.3rem, 1.7vw, 1.75rem) / 1 var(--display);
  letter-spacing: -0.055em;
  margin: 5px 35px 7px 0;
}
.card-desc {
  display: block;
  font-size: 0.88rem;
  line-height: 1.42;
  color: #635c69;
  max-width: 93%;
}
.play {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--ink);
  background: var(--tint);
  border-radius: 50%;
  position: absolute;
  right: 14px;
  top: 19px;
  display: grid;
  place-items: center;
}
.play svg {
  width: 12px;
  height: 12px;
  fill: var(--ink);
  margin-left: 2px;
}
dialog {
  padding: 0;
  width: min(444px, calc(100% - 28px));
  max-height: 88dvh;
  overflow: auto;
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 4px 6px 0 var(--ink);
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop {
  background: #21192e80;
  backdrop-filter: blur(3px);
}
dialog .close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  border-color: var(--ink);
  border-radius: 50%;
  width: 32px;
  height: 32px;
}
.modal-pad,
.panel {
  padding: 25px;
}
.modal-pad h2,
.panel h2 {
  font: 800 1.8rem/1.03 var(--display);
  letter-spacing: -0.045em;
  margin: 8px 0 12px;
}
.modal-pad p,
.panel p,
.hint {
  color: var(--muted);
  line-height: 1.5;
}
.modal-pad > .btn,
.modal-pad form,
.modal-pad .seg {
  margin-top: 16px;
}
.modal-pad .hint {
  margin-top: 12px;
  font-size: 0.85rem;
}
.modal-art {
  height: 155px;
}
.modal-art img {
  height: 92%;
}
.seg {
  display: flex;
  padding: 3px;
  background: #eeeaf1;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.seg button {
  flex: 1;
}
.field {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  font-size: 0.88rem;
  font-weight: 700;
}
.field input,
.field select {
  width: 100%;
  border: 1.5px solid #c6bdce;
  border-radius: 9px;
  padding: 12px;
  background: white;
  color: var(--ink);
}
.field input:focus {
  border-color: #8055aa;
}
.error {
  font-size: 0.9rem;
  color: #9c2446;
  margin: 10px 0;
  line-height: 1.4;
}
.text-btn {
  color: #62418a;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 650;
  font-size: 0.88rem;
}
.stack {
  display: grid;
  gap: 10px;
}
.panel {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  margin-top: 18px;
}
.page-heading {
  margin: 5px 0 12px;
}
.toolbar {
  gap: 9px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.table-line {
  padding: 14px 0;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.table-line:last-child {
  border-bottom: 0;
}
.table-line span:nth-child(2) {
  flex: 1;
}
.small-art {
  width: 52px;
  height: 46px;
  object-fit: contain;
  background: var(--tint);
  border-radius: 8px;
  padding: 3px;
}
.meta {
  font-size: 0.83rem;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.avatar-grid,
.choices,
.traits,
.roster {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.avatar-grid button,
.choices button,
.trait,
.roster span,
.chip {
  border: 1px solid #d5cddd;
  border-radius: 10px;
  background: #f8f5fb;
  padding: 9px 12px;
}
.avatar-grid button {
  font-size: 1.6rem;
}
.avatar-grid button[aria-pressed='true'] {
  border: 2px solid #7650a2;
  background: #e7dbfc;
}
.form-narrow {
  max-width: 520px;
}
.room-head {
  display: flex;
  align-items: center;
  gap: 13px;
}
.room-head img {
  width: 72px;
  height: 64px;
}
.room-head .page-heading {
  margin: 3px 0;
}
.room-panel {
  max-width: 800px;
  margin: 22px auto;
  padding: clamp(18px, 4vw, 42px);
  border: 1.8px solid var(--ink);
  box-shadow: 0 3px var(--ink);
}
.room-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  margin: 11px 0 20px;
}
.room-panel .roster {
  margin: 16px 0;
}
.roster span {
  font-size: 0.87rem;
  padding: 5px 9px;
}
.choices button:hover,
.trait:hover {
  background: #e9ddfc;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.range {
  width: 100%;
  accent-color: #744db4;
  margin: 16px 0;
}
.readout {
  font: 800 2.5rem var(--display);
}
.trait {
  min-width: 90px;
  min-height: 90px;
  display: grid;
  place-items: center;
}
.trait .symbol {
  line-height: 1.25;
}
.trait small {
  font-size: 0.72rem;
}
.traits {
  margin: 16px 0;
}
.balloon-btn {
  font-size: 3rem;
  display: block;
  margin: 22px auto;
  background: #f8dbe3;
  border: 1px solid #b57990;
  border-radius: 50%;
  width: 105px;
  height: 105px;
}
.result {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.result p {
  margin: 4px 0;
}
.source {
  display: block;
  text-decoration: underline;
  color: #654596;
  margin-top: 12px;
}
.note {
  background: #f0ebf7;
  border-radius: 9px;
  padding: 12px;
  margin: 12px 0;
}
.empty {
  display: grid;
  justify-items: start;
  gap: 12px;
}
.empty-icon {
  font-size: 26px;
  color: #735698;
}
.room-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}
#toast {
  position: fixed;
  right: 22px;
  bottom: 20px;
  background: var(--ink);
  color: white;
  border-radius: 10px;
  padding: 11px 17px;
  max-width: min(90vw, 440px);
  z-index: 10;
  box-shadow: 0 2px 12px #231a2c28;
  font-size: 0.9rem;
}
#toast:empty {
  display: none;
}
@media (min-width: 1600px) {
  .hero {
    min-height: 340px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 192px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .workspace {
    margin-left: 192px;
  }
  .cards {
    gap: 14px;
  }
  .hero {
    min-height: 250px;
  }
  .card-copy {
    padding: 12px;
  }
  .play {
    right: 10px;
    top: 15px;
  }
  .card-desc {
    max-width: 100%;
  }
}
@media (max-width: 850px) {
  .sidebar {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 62px;
  }
  .mobile-brand {
    display: flex;
    margin: 0;
    font-size: 30px;
  }
  .crumbs {
    display: none;
  }
  .mobile-nav {
    position: fixed;
    z-index: 3;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: #fffefa;
    border-top: 1px solid var(--border);
    padding: 7px 6px max(7px, env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .mobile-nav a {
    display: grid;
    justify-items: center;
    gap: 3px;
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 700;
    min-width: 57px;
  }
  .mobile-nav a i {
    font-size: 17px;
    padding: 3px 12px;
    border-radius: 8px;
  }
  .mobile-nav a.active {
    color: #553487;
  }
  .mobile-nav a.active i {
    background: #e8ddfc;
  }
  main {
    padding-bottom: 90px;
  }
  #toast {
    bottom: 78px;
  }
}
@media (max-width: 650px) {
  main {
    padding: 18px 15px 92px;
  }
  .topbar {
    padding: 0 16px;
  }
  .tools {
    gap: 7px;
  }
  .hero {
    border-radius: 15px;
    min-height: 230px;
  }
  .hero-copy {
    width: 66%;
    padding: 20px;
  }
  .hero-tag {
    font-size: 0.56rem;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 7.7vw, 3.1rem);
  }
  .hero p {
    font-size: 0.84rem;
    max-width: 235px;
    margin: 11px 0 13px;
  }
  .hero-art {
    left: 58%;
    right: -6%;
  }
  .hero-art img {
    width: 105%;
  }
  .btn {
    padding: 9px 12px;
  }
  .catalogue {
    margin-top: 27px;
  }
  .catalogue-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 14px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 10px;
  }
  .game-art {
    height: 118px;
  }
  .game-art img {
    max-width: 85%;
    height: 84%;
    align-self: end;
  }
  .modal-art img {
    align-self: center;
  }
  .mode-chip {
    left: 6px;
    top: 6px;
    font-size: 0.59rem;
    padding: 3px 5px;
  }
  .card-copy {
    padding: 11px 10px 13px;
  }
  .card-title {
    font-size: clamp(0.99rem, 3.9vw, 1.4rem);
    margin-right: 0;
  }
  .play {
    display: none;
  }
  .category {
    font-size: 0.57rem;
  }
  .card-desc {
    font-size: 0.78rem;
  }
  .filters button {
    padding: 6px 13px;
  }
  .section-icon {
    width: 29px;
    height: 29px;
    font-size: 16px;
  }
  .panel {
    padding: 17px;
  }
  .modal-pad {
    padding: 23px;
  }
  .table-line {
    gap: 7px;
  }
  .account {
    padding: 8px 10px;
  }
  .room-panel {
    margin-top: 16px;
  }
  .room-head img {
    width: 56px;
    height: 50px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
