@font-face {
  font-family: "Great Vibes";
  src: url("/igroteka/fonts/great-vibes.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root{color-scheme:light;--ink:#18392f;--pine:#164c3b;--fine:#dfE5df;--warm:#e4c681;--quiet:#4d6658;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--ink);background:#443a31}
*{box-sizing:border-box}
body{
  margin:0;min-height:100svh;display:flow-root;isolation:isolate;
  --gutter:5.6vw;
  padding-left:max(var(--gutter),calc(env(safe-area-inset-left,0px) + 8px));
  padding-right:max(var(--gutter),calc(env(safe-area-inset-right,0px) + 8px));
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
}
body::before, #card-dialog {
  background-color:#443a31;
  background-image:url("/igroteka/winter-snow.svg"),linear-gradient(180deg,rgb(27 33 26 / var(--room-shade-top, .03)),rgb(26 29 22 / var(--room-shade-bottom, .16))),url("/igroteka/restaurant-winter.webp");
  background-size:306px 282px,cover,cover;
  background-position:13px 21px,center,center;
  background-repeat:repeat,no-repeat,no-repeat;
}
[hidden]{display:none!important}
.shell{width:min(1024px,100%);display:grid;grid-template-columns:minmax(280px,.83fr) minmax(0,1.17fr);margin:clamp(52px,9svh,100px) auto;padding:0;border-radius:20px;box-shadow:0 8px 42px rgba(23,23,16,.24)}
/* The invitation follows the printed cover, with live type sized to the column. */
.intro {
  position: relative;
  container-type: inline-size;
  min-width: 0;
  color: #fff5de;
  background: url("/igroteka/invitation-sparkles.svg") 17px 2px / 310px 284px repeat,
    url("/igroteka/winter-snow.svg") 8px 11px / 240px 221px repeat,
    linear-gradient(152deg,#245346,#123b33 46%,#10352f);
  border-radius: 20px 0 0 20px;
}
.intro-inner {
  position: sticky;
  top: 1rem;
  border-radius: inherit;
  --inset: clamp(18px,6cqi,32px);
}
.intro-heading {
  position: relative;
  padding: 46px var(--inset) 1.15rem;
  border-radius: inherit;
  background: url("/igroteka/signup-star.svg") right -7px top -8px / 29% auto no-repeat,
    url("/igroteka/winter-ornament.svg") right -7px top -8px / 29% auto no-repeat;
}
.intro-meta {
  margin: 0;
  max-width: 100%;
  color: #f0d59c;
  font-size: clamp(.75rem,3.1cqi,.9rem);
  font-weight: 600;
  line-height: 1.45;
}
.intro-meta > span {white-space: nowrap}
h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:400}
.intro h1 {
  margin: .46rem 0 .38rem;
  font-size: clamp(2.65rem,16cqi,4.8rem);
  line-height: 1.06;
  font-style: italic;
}
.intro-subtitle {margin:0;font-size:clamp(.95rem,4.1cqi,1.18rem);line-height:1.4}
.intro-panorama {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.86;
  object-fit: cover;
  border-block: 1px solid #a99b75;
}
.intro-story {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  gap: clamp(12px,4.5cqi,22px);
  align-items: start;
  padding: clamp(18px,6cqi,30px) var(--inset) clamp(48px,17.6cqi,70px);
  position:relative;
  isolation:isolate;
}
.intro-story::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  z-index:-1;
  width: min(26%,102px);
  aspect-ratio: 8 / 5;
  transform: scaleX(-1);
  background: url("/igroteka/winter-sprig.svg") center / contain no-repeat;
  pointer-events: none;
}
.intro figure{margin:0;min-width:0}
#open-cover{display:block;border-radius:3px;cursor:zoom-in}
#open-cover:focus-visible{outline:2px solid #fff0c6;outline-offset:3px}
#open-cover img{display:block;width:100%;height:auto;aspect-ratio: .86;object-fit:cover;object-position:center 55%;border-radius:inherit}
.intro figcaption{font-size:.75rem;color:#e9dabb;line-height:1.35;margin-top:.4rem}
.intro-invite::before{content:"";display:block;width:2rem;height:1px;margin:0 0 .64rem;background:#e0bd7c}
.intro-invite h2{margin:0;color:#fff4d8;font-size:clamp(1.25rem,5.55cqi,1.72rem);line-height:1.1}
.intro-invite p{margin:.55rem 0 0;font-size:clamp(.86rem,3.8cqi,1rem);line-height:1.45;color:#f0ead8}
.intro-invite .intro-venue {
  color: #f1d5a4;
  font-family: "Great Vibes", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.5125rem, calc(4.84cqi + .06875rem), 1.58125rem);
  line-height: 1.35;
  width: max-content;
  max-width: calc(100% + var(--inset) - 2px);
}
.panel{min-width:0;background:#fff;border:1px solid #d9dfd6;border-left:0;border-radius:0 20px 20px 0;padding:clamp(25px,4vw,54px)}
h2{margin:0 0 .75rem;color:#164334;font-size:clamp(1.95rem,3.4vw,2.7rem);line-height:1.08}
.lead{font-size:1.04rem;line-height:1.5;color:#45594f;margin:0 0 1.35rem}
input,select,button{font:inherit}
fieldset.plain{min-width:0;padding:0;margin:0;border:0}
.games label{position:relative;cursor:pointer}
.games input,.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.label{display:block;font-size:.95rem;font-weight:650;line-height:1.45;margin:1.08rem 0 .42rem}
.label small,.note{font-weight:400;font-size:.83rem;color:var(--quiet)}
.note{margin:.45rem 0 0;line-height:1.45}
input:not([type=checkbox]),select{background:white;color:var(--ink);width:100%;min-height:45px;border:1px solid #9faea4;border-radius:6px;padding:.62rem .75rem;font-size:1rem}
select{padding-right:1.8rem}input::placeholder{color:#65756d}
.game-picker{margin-top:1.08rem!important}.game-picker .label{margin:0 0 .5rem}
#games-hint{margin:0 0 .55rem}.games{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.game{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:center;gap:6px;width:100%;min-height:41px;padding:.46rem .61rem;border:1px solid #dce4dd;border-radius:6px;color:#294d3d;line-height:1.22;font-size:.93rem;background:white}
.games small{grid-column:2;grid-row:2;font-variant-numeric:tabular-nums;font-size:.8rem;line-height:1.27;color:#496456}.game:has(small:not([hidden])){row-gap:3px}.game.full{background:#f3f3ed;border-style:dashed}.game.full small{color:#70442a;font-weight:600}.games label:has(input:disabled){cursor:default}#refresh{margin:.45rem 0 0;min-height:38px;padding:.35rem .65rem;background:white;color:#315c49;border:1px solid #a9bcae;font-size:.86rem}#selection-note{color:#785126;font-weight:600}
.checkmark{display:grid;place-items:center;width:16px;height:16px;border:1.3px solid #8eaa9a;border-radius:4px;background:white}
.games input:checked + .game .checkmark{background:var(--pine);border-color:var(--pine)}
.games input:checked + .game .checkmark::after{content:"";display:block;width:4px;height:8px;border:solid white;border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg)}
.game:hover{background:#f3f7f2}.games input:checked+.game{border-color:var(--pine);background:#e8f1e9;box-shadow:inset 0 0 0 1px var(--pine);color:#12432f}
.games input:focus-visible+span,:is(input:not([type=checkbox]),select,button):focus-visible{outline:3px solid #b17c24;outline-offset:2px}
button{background:var(--pine);color:white;border:0;border-radius:6px;cursor:pointer;padding:.8rem 1rem;font-weight:650;margin-top:1.35rem;min-height:47px}
button:hover{background:#103f31}button:disabled{opacity:.7;cursor:wait}#submit{width:100%}#confirmation{line-height:1.5}.error{color:#922f2f;border-left:3px solid #a33f41;padding-left:.65rem;margin:.8rem 0 0}
@media(max-width:740px){
  body::before, #card-dialog {background-position:10px 4px,center,86% center}
  .shell{display:block;width:100%;margin:clamp(28px,5.7svh,54px) auto 26px;padding:0;border-radius:15px}
  .intro{border-radius:15px 15px 0 0}
  .intro-inner{position:relative;top:auto;--inset:clamp(14px,5.65cqi,23px)}
  .intro-heading{padding:40px var(--inset) .8rem}
  .intro h1{font-size:clamp(2.55rem,12.8cqi,3.35rem);margin:.45rem 0 .15rem}
  .intro-panorama{max-height:155px}
  .intro-story{padding:1rem var(--inset) 2.4rem;grid-template-columns:minmax(0,.70fr) minmax(0,1.3fr);column-gap:1rem}
  .intro figure{max-width:128px}
  .intro-invite::before{margin-bottom:.48rem}
  .intro-story::after{width:58px;opacity:.8}
  .panel{border:0;border-radius:0 0 15px 15px;padding:24px clamp(13px,4vw,20px) 30px}
  .panel h2{font-size:2rem}.lead{margin-bottom:1rem}
  .games{grid-template-columns:repeat(auto-fit,minmax(min(100%,8.4rem),1fr))}
  .game{min-height:45px;font-size:.91rem}
}
@media screen and (min-width: 741px) and (max-width: 900px) {
  .intro-invite .intro-venue {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    white-space: nowrap;
  }
}
@media(max-width:385px){.game{padding:.45rem .4rem;font-size:.84rem}.games{gap:5px}.games small{font-size:.75rem}}
@media screen and (max-width: 340px) {
  .intro-invite .intro-venue {font-size: 1.409375rem}
}
@media print{
  :root,body,.intro,.panel{background:white;color:#18392f}
  body{padding:0}
  body::before,.intro::before,.intro::after,figure{display:none}
  .shell{display:block;width:auto;margin:0;padding:0;border-radius:0;box-shadow:none}
  .intro,.panel{padding:12px 0;border:0;border-radius:0;box-shadow:none}
  .intro-inner{position:static;display:block;margin:0;padding:0}
  .intro-heading,.intro-story{padding:.35rem 0;background:transparent}
  .intro-story{display:block}
  .intro-invite h2,.intro-invite p,.intro-invite .intro-venue,.intro-meta{color:#30473b}
  .intro-panorama,.intro-story::after,.intro-invite::before{display:none}
}

#session-prompt {
  margin:.15rem 0 .65rem;
  padding:.65rem .85rem;
  line-height:1.45;
  color:#4c3e25;
  border-left:3px solid #b58d47;
  background:#fbf6e9;
  border-radius:3px;
}
#choose-session{color:#174b38;font-weight:700;text-decoration:underline;text-underline-offset:2px}
#choose-session:focus-visible{outline:3px solid #b17c24;outline-offset:2px}
.games[data-locked] .game{color:#58645e;background:#f3f4f1;border-color:#e1e4dd;box-shadow:none}
.games[data-locked] .checkmark{border-color:#aeb7b0;background:#eaede8}
.games[data-limit-reached] input:not(:checked) + .game:not(.full){background:#f3f4f0;border-color:#d9dfd9;color:#536157}
.games[data-limit-reached] input:not(:checked) + .game:not(.full) .checkmark{background:#ebeee9;border-color:#a9b3ac}

.disclosure>summary{width:fit-content;max-width:100%;padding:.3rem 0;cursor:pointer;color:#315f48;font-size:.83rem;line-height:1.45;text-decoration:underline;text-underline-offset:2px}
.disclosure>summary:focus-visible{outline:3px solid #b17c24;outline-offset:2px;border-radius:2px}
#public-identity{margin:.25rem 0 0}
#public-identity .label{margin-top:.35rem}
.game-cell{min-width:0}
#identity-preview{font-weight:600;color:var(--ink);overflow-wrap:anywhere}
@media(pointer:coarse){.disclosure>summary{padding:.45rem 0}}

#public-identity > summary { text-decoration: none; }
#public-identity > summary > span { text-decoration: underline; text-underline-offset: 2px; }
#public-identity .alias-example {
  display: block;
  margin: .12rem 0 0 .86rem;
  font-size: .8rem;
  font-weight: 400;
  color: var(--quiet);
}
#public-identity[open] .alias-example { display: none; }
#public-name::placeholder { font-size: clamp(.78rem, 3.9vw, .9rem); font-weight: 400; }

.games {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: .4rem;
}
.game-cell {
  border: 1px solid #d9e1d7;
  border-radius: .4rem;
  background: #fff;
}
.game-cell:has(input:checked) { border-color: #56846c; background: #edf4ec; }
.game-cell:has(.game.full) { border-style: dashed; }
.game-choice { position: relative; }
.game-choice input {
  z-index: 1;
  inset: 0 auto 0 0;
  width: 44px;
  height: 100%;
  opacity: 0;
  clip-path: none;
  cursor: pointer;
}
.game-choice input:disabled { cursor: default; }
.game-cell .game {
  grid-template-columns: 44px minmax(0, 1fr);
  align-content: start;
  gap: 0;
  min-height: 44px;
  padding: 0 .5rem 0 0;
  border: 0;
  background: transparent;
}
.game-choice .checkmark {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
}
.game-choice input:focus-visible + .game { outline: none; }
.game-choice input:focus-visible + .game .checkmark {
  outline: 3px solid #b17c24;
  outline-offset: 3px;
}
.game-preview, .game-name {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  min-height: 44px;
  min-width: 0;
  margin: 0;
  padding: .25rem 0;
  border-radius: 2px;
  background: transparent;
  color: var(--pine);
  font: inherit;
  text-align: left;
  overflow-wrap: anywhere;
}
.game-preview {
  text-decoration: underline dotted #89a394;
  text-underline-offset: .22em;
}
.game-preview:is(:hover, :focus-visible) {
  background: transparent;
  color: #133d2e;
  text-decoration: underline;
}
.game-cell small:not([hidden]):not(:empty) { margin: -.18rem 0 .43rem; }
.games[data-locked] .game,
.games[data-limit-reached] input:not(:checked) + .game:not(.full),
.games input:checked + .game { box-shadow: none; background: transparent; }
.game-cell .table-company {
  margin: 0 .45rem .45rem;
  padding: .36rem .65rem .42rem;
  border-inline-start: 2px solid #bd9650;
  border-radius: .25rem;
  background: linear-gradient(110deg, #fbf2dc, #f5f7ed);
  color: var(--pine);
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.table-company strong {
  display: block;
  color: #575b42;
  font-size: .76rem;
  font-weight: 550;
}
html:has(#card-dialog[open]),
html:has(#card-dialog[open]) body {
  overflow: hidden;
  overscroll-behavior: none;
}

#card-dialog {
  --room-shade-top: .14;
  --room-shade-bottom: .31;
  --control-glass: rgb(21 33 27 / 86%);
  --left-gap: max(12px, env(safe-area-inset-left));
  --right-gap: max(12px, env(safe-area-inset-right));
  --top-gap: max(6px, env(safe-area-inset-top));
  --bottom-gap: max(8px, env(safe-area-inset-bottom));
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  overscroll-behavior: contain;
  color: #fff7e4;
}
#card-dialog::backdrop { background: #443a31; }

.music-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  background: transparent;
  color: #dacba7;
}
.music-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.music-toggle:focus-visible { outline: 2px solid #fff0c6; outline-offset: -3px; }
@media (hover: hover) {
  .music-toggle:hover { background: rgb(20 48 38 / 53%); color: #fff4d5; }
}
#music-form { position: absolute; z-index: 1; top: 3px; left: 5px; }
#music-gallery {
  filter: drop-shadow(0 1px 2px #162119);
  grid-row: 1;
  grid-column: 1 / 3;
  align-self: start;
  justify-self: start;
  margin: 0 0 0 var(--left-gap);
}
.music-toggle .sound-on,
.music-toggle[aria-pressed="true"] .sound-off { display: none; }
.music-toggle[aria-pressed="true"] .sound-on { display: inline; }
.music-toggle[aria-pressed="true"] { color: #ffedbb; background: rgb(20 48 38 / 48%); }
.music-toggle[data-error]::after {
  content: attr(data-error);
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 100%;
  width: max-content;
  max-width: min(14rem, 58vw);
  transform: translateY(-50%);
  padding: .4rem .65rem;
  border-radius: 5px;
  background: #173d32;
  color: #fff7e4;
  font: normal .83rem/1.3 system-ui, sans-serif;
  text-align: left;
  pointer-events: none;
}
@media print { .music-toggle { display: none; } }

.card-gallery {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  grid-template-areas: ". . close" "art art art" "status status status" "prev select next";
  padding-block: var(--top-gap) var(--bottom-gap);
}
.card-portrait {
  grid-area: art;
  position: relative;
  min-height: 0;
  min-width: 0;
}
#card-art, #card-motif {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}
#card-art { touch-action: pinch-zoom; }
#card-motif {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#card-close { grid-area: close; justify-self: end; margin-right: var(--right-gap); }
#card-prev { grid-area: prev; margin-left: var(--left-gap); }
#card-next { grid-area: next; margin-right: var(--right-gap); }
.card-icon, #card-select, #card-roster-toggle {
  position: relative;
  align-self: center;
  margin-top: 0;
  min-height: 44px;
  color: #fff7e4;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--control-glass);
  border: 0;
  border-radius: 50%;
}
.card-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.card-icon:hover { background: #143e32; color: white; }
#card-roster-toggle:hover { color: white; }
.card-actions { display: contents; }
.card-status {
  grid-area: status;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 .75em;
  margin: .25rem max(var(--right-gap), var(--left-gap));
  font-size: .9rem;
  line-height: 1.3;
  text-align: center;
}
#card-availability { margin: .2rem 0; }
#card-availability, #card-roster-toggle {
  border-radius: .4rem;
  background: var(--control-glass);
  box-shadow: 0 0 0 .22em var(--control-glass);
}
#card-roster-toggle {
  font: inherit;
  padding: 0 .15em;
  text-decoration: underline;
  text-underline-offset: .2em;
}
#card-select {
  grid-area: select;
  justify-self: center;
  max-width: 100%;
  padding: .46em .8em;
  line-height: 1.2;
  border-radius: 1.6em;
  color: #302820;
  background: #fff2d4;
}
#card-select:hover { background: #fff9e9; }
#card-select:disabled { color: #fff1de; background: var(--control-glass); opacity: 1; cursor: default; }
#card-dialog button:focus-visible { outline: 2px solid #fff0c6; outline-offset: 2px; }
.table-company:focus { scroll-margin-top: 1rem; }
.table-company:focus-visible { outline: 2px solid #946a25; outline-offset: 3px; }

/* In landscape the controls move into the margins and the print takes the entire height. */
@media (min-aspect-ratio: 3/2), (min-width: 720px) and (min-aspect-ratio: 5/4) {
  .card-gallery { display: block; padding: 0; }
  .card-portrait { position: absolute; inset: 0; width: min(100%, 80vh); width: min(100%, 80dvh); margin-inline: auto; }
  #music-gallery, #card-close, #card-prev, #card-next, .card-actions { position: absolute; }
  #music-gallery { top: var(--top-gap); left: var(--left-gap); margin: 0; }
  #card-close { top: var(--top-gap); right: var(--right-gap); margin: 0; }
  #card-prev, #card-next { top: 50%; transform: translateY(-50%); margin: 0; }
  #card-prev { left: var(--left-gap); }
  #card-next { right: var(--right-gap); }
  .card-actions {
    bottom: var(--bottom-gap);
    right: var(--right-gap);
    display: grid;
    gap: .35rem;
    justify-items: end;
    max-width: calc((100% - 80vh) / 2 - var(--right-gap) - .35rem);
    max-width: calc((100% - 80dvh) / 2 - var(--right-gap) - .35rem);
  }
  .card-status { grid-area: auto; justify-content: end; margin: 0; text-align: right; }
  #card-select { grid-area: auto; justify-self: end; }
}
@media (forced-colors: active) {
  #card-dialog button:focus-visible { outline-color: Highlight; }
  .card-icon, #card-select { border: 1px solid ButtonText; }
}
