/* metopal.site
 *
 * The site is built on the axis the games are built on: night and day.
 * Each section owns an accent, so colour tells you where you are rather
 * than decorating the page. There is one motion moment per view, tied to
 * what that view is about.
 */

@layer temel, piksel;

/* The site as it was built: layout, spacing, the game screens. The
   piksel layer at the end of this file sits on top of it and decides
   how the whole thing looks. Layers rather than !important, so the
   rules below stay readable and keep working. */
@layer temel {


:root{
  /* Night, not black. A deep indigo keeps the warm accents from going
     neon the way they do against #000. */
  --ink:#0A1320;
  --ink-2:#0F1C2E;
  --surface:#142437;
  --raise:#1B2F46;
  --edge:#27405C;

  --text:#F2EADA;
  --dim:#9FB2C6;
  --faint:#6E8299;

  /* Section accents. Vampir is the default until a view sets its own. */
  --vampir:#E2503F;
  --fesat:#2FB5AE;
  --isim:#E8B04A;
  --telgraf:#7FA8E8;
  --video:#D98C5F;
  --about:#E8B04A;
  --accent:var(--vampir);

  --ok:#62C08C;
  --soyle:#62C08C;

  --ui:"Space Grotesk",ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;
  --read:"Newsreader",Georgia,"Times New Roman",serif;

  --ease:cubic-bezier(.22,.61,.36,1);
  --pop:cubic-bezier(.34,1.56,.64,1);

  --gutter:clamp(16px,4vw,40px);
  --wide:1120px;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--ink);
  color:var(--text);
  font-family:var(--ui);
  font-size:16.5px;
  line-height:1.55;
  min-height:100dvh;
  display:flex;flex-direction:column;
  -webkit-font-smoothing:antialiased;
  /* A faint vertical lift keeps the long Hakkımda page from going flat. */
  background-image:radial-gradient(120% 70% at 50% -10%, #1C2B3D 0%, var(--ink) 60%);
  background-attachment:fixed;
}

/* The wallpaper sits behind everything and is never interactive. Fixed
   rather than scrolling: a diagonal hatch that moves under a scroll
   shimmers, and a still one just reads as paper. */
.wall{
  position:fixed;inset:0;z-index:-1;pointer-events:none;
  opacity:.3;
}
.wall svg{width:100%;height:100%;display:block}
.wp-line{fill:none;stroke:#1C3350;stroke-width:2.4}
.wp-flower{fill:none;stroke:#1A3B52;stroke-width:1.8;stroke-linecap:round}
.wp-grout{stroke:#132537;stroke-width:1.2}
@media(max-width:700px){
  /* Phone: at this width the lattice sits right behind the text. */
  .wall{opacity:.2}
}

h1,h2,h3{margin:0;font-weight:600;letter-spacing:-.022em;line-height:1.08}
p{margin:0}
a{color:inherit}
ul,ol{margin:0;padding:0;list-style:none}

:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}

/* ============ top bar ============ */

.topbar{
  position:sticky;top:0;z-index:40;
  display:flex;align-items:center;gap:clamp(10px,3vw,28px);
  padding:0 var(--gutter);
  height:62px;
  background:color-mix(in srgb,var(--ink) 86%,transparent);
  backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid var(--edge);
}

.brand{
  font-weight:700;font-size:17px;letter-spacing:-.03em;
  text-decoration:none;flex:none;
  color:var(--text);
}
.brand b{color:var(--accent);transition:color .5s var(--ease)}

.tabs{
  display:flex;align-items:center;gap:clamp(4px,2vw,18px);
  flex:1;min-width:0;
  overflow-x:auto;scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.tabs::-webkit-scrollbar{display:none}

.tab{
  position:relative;flex:none;
  text-decoration:none;color:var(--dim);
  font-size:15px;font-weight:500;
  padding:19px 2px;
  white-space:nowrap;
  transition:color .2s var(--ease);
}
.tab:hover{color:var(--text)}
.tab[aria-current="page"]{color:var(--text)}
.tab::after{
  content:"";position:absolute;left:0;right:0;bottom:14px;height:2px;
  background:var(--tabcolor,var(--accent));
  border-radius:2px;
  transform:scaleX(0);transform-origin:left;
  transition:transform .32s var(--pop);
}
.tab[aria-current="page"]::after{transform:scaleX(1)}

.soon{
  display:inline-block;margin-left:6px;
  width:5px;height:5px;border-radius:50%;
  background:var(--tabcolor);opacity:.5;
  vertical-align:middle;
}

.bar-right{display:flex;align-items:center;gap:14px;flex:none}

.lang{
  background:none;border:0;cursor:pointer;
  color:var(--dim);font-family:var(--ui);font-size:13px;font-weight:600;
  padding:6px;letter-spacing:.02em;
}
.lang:hover{color:var(--text)}

.link{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:var(--faint)}
.link i{width:7px;height:7px;border-radius:50%;background:var(--faint);transition:background .3s}
.link[data-state="on"] i{background:var(--ok)}
.link[data-state="off"] i{background:var(--vampir)}
.link[data-state="wait"] i{background:var(--about)}
.link span{display:none}
@media(min-width:720px){.link span{display:inline}}

/* ============ views ============ */

main{max-width:var(--wide);width:100%;margin:0 auto;padding:0 var(--gutter) 96px;flex:1}
.view{padding-top:clamp(36px,7vw,72px)}
[hidden]{display:none !important}

.lede{color:var(--dim);max-width:54ch;font-size:clamp(16.5px,2vw,18.5px);text-wrap:pretty}

.title{
  font-size:clamp(2.4rem,8vw,4.2rem);
  font-weight:700;letter-spacing:-.04em;
  text-wrap:balance;
}
.view .title + .lede{margin-top:18px}

.sub{
  font-size:clamp(1.2rem,3vw,1.55rem);
  font-weight:600;letter-spacing:-.025em;
  margin-bottom:14px;
}

/* ============ hero cards ============ */

/* A hand of cards held face down. On load one of them turns over, shows
   what it is, and turns back — the idea the whole game rests on, played
   once. The fan is what makes it read as a hand rather than a row of tiles. */
.hero{display:grid;grid-template-columns:1fr;gap:clamp(30px,5vw,10px);align-items:center}
@media(min-width:900px){
  .hero{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:40px}
}

.deal{
  display:flex;justify-content:center;
  padding:26px 0 10px;
  perspective:1100px;
}
.card{
  position:relative;
  width:clamp(62px,15vw,96px);aspect-ratio:3/4.3;
  transform-style:preserve-3d;
  transition:transform .8s var(--ease);
  /* --a is the fan angle, set per card below. */
  transform:rotate(var(--a)) translateY(var(--y,0));
}
.card:nth-child(1){--a:-13deg;--y:12px}
.card:nth-child(2){--a:-6.5deg;--y:3px}
.card:nth-child(3){--a:0deg;--y:-2px}
.card:nth-child(4){--a:6.5deg;--y:3px}
.card:nth-child(5){--a:13deg;--y:12px}
.card + .card{margin-left:clamp(-26px,-3.5vw,-14px)}

.card.turn{transform:rotate(var(--a)) translateY(calc(var(--y,0) - 16px)) rotateY(180deg)}

.face{
  position:absolute;inset:0;border-radius:10px;
  backface-visibility:hidden;
  display:grid;place-items:center;
  box-shadow:0 10px 26px -14px #000;
}
.back{
  background:repeating-linear-gradient(42deg,#243951 0 5px,#1D2E40 5px 10px);
  border:1px solid var(--edge);
}
.back::after{
  content:"";width:30%;aspect-ratio:1;border-radius:50%;
  border:1.5px solid #506985;
}
.front{
  transform:rotateY(180deg);
  background:linear-gradient(165deg,#43182A,#281B15);
  border:1px solid var(--vampir);
  color:var(--vampir);
  font-size:clamp(11px,2.4vw,14px);font-weight:600;letter-spacing:-.01em;
}

@media (prefers-reduced-motion:reduce){
  .card{transition:none}
  .card.turn{transform:rotate(var(--a)) translateY(var(--y,0))}
}

/* ============ entry form ============ */

.enter{
  display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;
  margin-top:26px;
}
.field{display:flex;flex-direction:column;gap:7px;min-width:0}
.field span{font-size:13.5px;color:var(--dim);font-weight:500}
.field.grow{flex:1 1 190px}
.field.short{flex:0 1 150px}

input[type=text]{
  width:100%;
  background:var(--ink-2);
  border:1px solid var(--edge);
  border-radius:9px;
  color:var(--text);
  font-family:var(--ui);font-size:16px;font-weight:500;
  padding:12px 14px;
  transition:border-color .2s var(--ease),background .2s var(--ease);
}
input[type=text]:focus{outline:none;border-color:var(--accent);background:var(--surface)}
input[type=text]::placeholder{color:var(--faint)}

#in-code{letter-spacing:.2em;text-transform:uppercase;font-weight:700}

.sep{color:var(--faint);font-size:14px;padding-bottom:13px}

.btn{
  font-family:var(--ui);font-size:15px;font-weight:600;
  color:var(--text);
  background:var(--raise);
  border:1px solid var(--edge);
  border-radius:9px;
  padding:12px 20px;
  cursor:pointer;
  transition:transform .16s var(--pop),background .2s var(--ease),border-color .2s var(--ease),opacity .2s;
}
.btn:hover{background:var(--surface);border-color:var(--accent)}
.btn:active{transform:translateY(1px)}
.btn:disabled{opacity:.4;cursor:not-allowed}
.btn:disabled:hover{background:var(--raise);border-color:var(--edge)}

.btn.go{
  background:var(--accent);border-color:var(--accent);
  color:#19120F;
}
.btn.go:hover{filter:brightness(1.1);background:var(--accent)}

.btn.quiet{
  background:none;border-color:transparent;color:var(--dim);padding-left:0;
  align-self:flex-start;justify-self:start;
}
.btn.quiet:hover{color:var(--accent);background:none;border-color:transparent}

.btn.sm{padding:9px 14px;font-size:14px}

.err{
  color:var(--vampir);font-size:14.5px;margin-top:16px;
  padding-left:12px;border-left:2px solid var(--vampir);
}

/* ============ facts strip ============ */

.facts{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}
.fact{
  background:var(--ink-2);border:1px solid var(--edge);
  border-radius:999px;padding:7px 15px;
  font-size:13.5px;color:var(--dim);
}
.fact b{color:var(--text);font-weight:600}


.btn.big{padding:14px 26px;font-size:16px;border-radius:11px}
a.btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}

/* ============ ana sayfa ============ */

.cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}

/* Three steps, read left to right: what using the site actually is. */
.steps{
  display:grid;grid-template-columns:1fr;gap:12px;
  margin:clamp(40px,7vw,64px) 0 0;
}
@media(min-width:760px){.steps{grid-template-columns:repeat(3,1fr)}}
.steps li{
  display:flex;align-items:center;gap:14px;
  background:color-mix(in srgb,var(--surface) 82%,transparent);
  border:1px solid var(--edge);border-radius:14px;padding:14px 16px;
  font-size:15px;color:var(--dim);
}
.steps b{
  flex:none;width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;
  background:var(--accent);color:#19120F;font-weight:700;
}

.shelf-head{
  font-size:clamp(1.3rem,3.4vw,1.6rem);font-weight:700;
  margin:clamp(44px,7vw,68px) 0 20px;
  padding-bottom:12px;border-bottom:1px solid var(--edge);
}
.shelf{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:620px){.shelf{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1000px){.shelf{grid-template-columns:repeat(3,1fr)}}

.offer{
  border:1px solid var(--edge);border-top:2px solid var(--c);
  border-radius:14px;background:var(--surface);
  overflow:hidden;
  display:flex;flex-direction:column;
  transition:transform .25s var(--ease),box-shadow .25s var(--ease);
}
.offer:hover{transform:translateY(-3px);box-shadow:0 18px 40px -22px color-mix(in srgb,var(--c) 60%,#000)}
.offer-art{display:block;width:100%;height:auto}
.offer-body{padding:16px 18px 18px;display:flex;flex-direction:column;flex:1}
.offer h3{font-size:1.08rem;font-weight:600;letter-spacing:-.02em;margin-bottom:7px}
.offer p{color:var(--dim);font-size:14.5px;text-wrap:pretty;margin:0}
.offer .offer-like{margin:-2px 0 8px;font-size:12.5px;color:var(--c);opacity:.9;letter-spacing:.01em}
.offer-foot{
  margin-top:auto;padding-top:14px;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.offer-foot .seats{font-size:13px;color:var(--faint)}
.offer-foot .btn{border-color:color-mix(in srgb,var(--c) 55%,var(--edge))}
.offer-foot .btn:hover{border-color:var(--c);color:var(--c)}

.homenote{
  margin-top:clamp(36px,6vw,56px);color:var(--dim);font-size:15px;max-width:64ch;
  padding-left:14px;border-left:2px solid var(--edge);
}
.homenote a{color:var(--accent)}

/* ============ oda: the gate ============ */

#gate .title{font-size:clamp(2.2rem,7vw,3.4rem)}
.namefield{max-width:360px;margin-top:26px}
.gate-grid{display:grid;grid-template-columns:1fr;gap:18px;margin-top:18px;align-items:start}
@media(min-width:900px){.gate-grid{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr)}}
.gate-grid h2{font-size:1.15rem;margin-bottom:14px}
.make .btn.big{margin-top:16px;width:100%}
.joinbox{display:flex;flex-direction:column;gap:14px}
.joinbox .btn{width:100%}
#in-code{letter-spacing:.2em;text-transform:uppercase;font-weight:700}

/* The six things a room can be, as small cards you tick. */
.kinds{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
@media(min-width:560px){.kinds{grid-template-columns:repeat(3,1fr)}}
.kind{
  position:relative;cursor:pointer;
  border:1px solid var(--edge);border-radius:12px;overflow:hidden;
  background:var(--ink-2);
  display:flex;flex-direction:column;
  transition:border-color .18s var(--ease),transform .18s var(--pop),box-shadow .18s var(--ease);
}
.kind input{position:absolute;opacity:0;pointer-events:none}
.kind svg{display:block;width:100%;height:auto;opacity:.7;transition:opacity .2s var(--ease)}
.kind b{font-size:14px;font-weight:600;padding:8px 10px 0;letter-spacing:-.01em}
.kind small{font-size:12px;color:var(--faint);padding:0 10px 9px}
.kind:hover{border-color:color-mix(in srgb,var(--c) 60%,var(--edge))}
.kind:hover svg{opacity:.9}
.kind:has(input:checked){
  border-color:var(--c);transform:translateY(-2px);
  box-shadow:0 0 0 1px var(--c),0 14px 30px -18px var(--c);
}
.kind:has(input:checked) svg{opacity:1}
.kind:has(input:checked) b{color:var(--c)}
.kind:has(input:focus-visible){outline:2px solid var(--c);outline-offset:2px}

/* ============ the room bar ============ */

.hud{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  margin-bottom:18px;
}
.hud-left,.hud-right,.hud-mid{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.room-title{font-size:clamp(1.25rem,3.6vw,1.6rem);font-weight:700;letter-spacing:-.03em;color:var(--accent)}

/* The code is what passes between friends, so it reads out easily — but
   once everyone is in it has done its job, so it stays a small chip. */
.codebox{
  display:flex;align-items:center;gap:10px;
  background:var(--surface);border:1px solid var(--edge);
  border-radius:11px;padding:5px 6px 5px 12px;
}
.codebox span{font-size:12px;color:var(--faint)}
.code{
  font-size:1.12rem;font-weight:700;letter-spacing:.14em;
  color:var(--text);font-variant-numeric:tabular-nums;
}
#btn-copy{padding:6px 11px;font-size:12.5px}
#btn-copy[data-done="1"]{color:var(--ok);border-color:var(--ok)}

.hud-btn{
  position:relative;
  width:40px;height:40px;flex:none;border-radius:11px;
  display:inline-grid;place-items:center;
  background:var(--raise);border:1px solid var(--edge);color:var(--text);
  cursor:pointer;font:inherit;font-size:20px;line-height:1;
  transition:border-color .18s var(--ease),background .18s var(--ease),transform .14s var(--pop);
}
.hud-btn:hover{border-color:var(--accent);background:var(--surface)}
.hud-btn:active{transform:scale(.94)}
.hud-btn svg{width:17px;height:17px;fill:currentColor}
#btn-pause .i-play{display:none}
#btn-pause[data-paused="1"] .i-play{display:block}
#btn-pause[data-paused="1"] .i-pause{display:none}
#btn-pause[data-paused="1"]{background:var(--accent);border-color:var(--accent);color:#19120F}

/* The chat button exists only in a match, where the chat is folded away. */
.chat-toggle{display:none}
#room[data-playing="1"] .chat-toggle{display:inline-grid}
.chat-toggle i{
  position:absolute;top:-6px;right:-6px;min-width:19px;height:19px;padding:0 5px;
  border-radius:999px;background:var(--vampir);color:#19120F;
  font-style:normal;font-size:11px;font-weight:700;display:grid;place-items:center;
  animation:pop .3s var(--pop);
}

/* The clock: a ring that empties, the seconds in the middle. Red and
   pulsing for the last ten, still and outlined while paused. */
.timer{position:relative;width:52px;height:52px;flex:none;display:grid;place-items:center}
.timer svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.timer circle{fill:none;stroke-width:3.2}
.tr-bg{stroke:var(--edge)}
.tr-fg{stroke:var(--accent);stroke-linecap:round;transition:stroke-dashoffset .5s linear,stroke .3s}
.timer b{font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.timer[data-low="1"] .tr-fg{stroke:var(--vampir)}
.timer[data-low="1"] b{color:var(--vampir);animation:throb 1s ease-in-out infinite}
.timer[data-paused="1"] .tr-fg{stroke:var(--faint)}
.timer[data-paused="1"] b{color:var(--dim)}
.timer[data-paused="1"]::after{
  content:"";position:absolute;inset:-4px;border-radius:50%;
  border:1px dashed var(--faint);animation:spin 8s linear infinite;
}

/* Leaving the room: a proper button that says what it does — outlined
   rather than filled, easy to find and hard to hit by accident. */
.btn.leave{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 14px;font-size:14px;
  color:#FF8E99;border-color:#5A2A34;background:#121A26;
}
.btn.leave:hover{color:#FFB3BB;border-color:var(--vampir);background:#281D18}
.btn.leave svg{flex:none}

/* ============ room layout ============ */

.roomgrid{display:grid;grid-template-columns:1fr;gap:22px;align-items:start}
@media(min-width:900px){.roomgrid{grid-template-columns:minmax(0,1fr) 340px}}
.stack,.side{display:flex;flex-direction:column;gap:18px;min-width:0}

.waiting{color:var(--dim);font-size:14.5px}

.panel{
  background:var(--surface);
  border:1px solid var(--edge);
  border-radius:14px;
  padding:18px 20px;
}
.panel h3{font-size:15px;font-weight:600;color:var(--dim);margin-bottom:14px;letter-spacing:-.01em}

/* ---------- in a match the game is the page ---------- */

body.ingame .topbar,body.ingame footer{display:none}
body.ingame main{max-width:1240px;padding-bottom:40px}
body.ingame .view{padding-top:0}
body.ingame .hud{
  position:sticky;top:0;z-index:30;
  margin:0 calc(var(--gutter) * -1) 16px;
  padding:max(10px,env(safe-area-inset-top)) var(--gutter) 10px;
  background:color-mix(in srgb,var(--ink) 80%,transparent);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid var(--edge);
  flex-wrap:nowrap;
}
body.ingame .room-title{font-size:1.05rem}
body.ingame .codebox span{display:none}
body.ingame .code{font-size:.95rem}
body.ingame .btn.leave{padding:9px 11px}
@media(max-width:640px){
  body.ingame .room-title{display:none}
  body.ingame #btn-copy{display:none}
  body.ingame .btn.leave span{display:none}
  body.ingame #btn-lobby{padding:8px 10px;font-size:12.5px}
  .timer{width:46px;height:46px}
}
#room[data-playing="1"] .roomgrid{grid-template-columns:1fr}

/* The chat as a see-through drawer over the corner of the game. */
#room[data-playing="1"] .side{
  position:fixed;z-index:35;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));
  width:min(380px,calc(100vw - 24px));
  transform:translateY(16px) scale(.98);opacity:0;pointer-events:none;
  transition:transform .22s var(--ease),opacity .22s var(--ease);
}
#room[data-playing="1"][data-chat="open"] .side{transform:none;opacity:1;pointer-events:auto}
#room[data-playing="1"] .peoplebox{display:none}
#room[data-playing="1"] .chat{
  height:min(56dvh,460px);
  background:color-mix(in srgb,var(--ink-2) 74%,transparent);
  backdrop-filter:blur(16px) saturate(150%);
  -webkit-backdrop-filter:blur(16px) saturate(150%);
  box-shadow:0 24px 60px -20px #000;
}
.chathead{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.chathead h3{margin:0}
.chat-close{display:none;width:32px;height:32px;font-size:20px}
#room[data-playing="1"] .chat-close{display:inline-grid}

.bubbles{
  position:fixed;z-index:34;right:16px;bottom:16px;
  display:flex;flex-direction:column;align-items:flex-end;gap:8px;
  max-width:min(340px,calc(100vw - 32px));pointer-events:none;
}
#room[data-playing="0"] .bubbles,#room[data-chat="open"] .bubbles{display:none}
/* A glance, not a control: the bubble must never swallow a tap meant for
   the button underneath it. The chat button in the bar is how you open
   the drawer, and it carries the unread count anyway. */
.bubbles li{
  pointer-events:none;
  background:color-mix(in srgb,var(--raise) 86%,transparent);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border:1px solid var(--edge);border-radius:14px 14px 4px 14px;
  padding:8px 12px;font-size:14px;overflow-wrap:anywhere;
  box-shadow:0 10px 30px -12px #000;
  animation:rise .3s var(--pop);
  transition:opacity .5s var(--ease),transform .5s var(--ease);
}
.bubbles li b{color:var(--accent);font-weight:600}
.bubbles li.out{opacity:0;transform:translateY(-6px)}

.toast{
  position:fixed;z-index:50;right:clamp(12px,3vw,28px);top:76px;
  background:var(--accent);color:#19120F;
  font-weight:700;font-size:1.05rem;letter-spacing:-.01em;
  padding:12px 22px;border-radius:999px;
  box-shadow:0 18px 40px -14px var(--accent);
  pointer-events:none;
}
.toast.go{animation:toast 2.3s var(--ease) both}
@media(max-width:620px){.toast{left:50%;right:auto;transform:translateX(-50%)}}

.people li{
  display:flex;align-items:center;gap:11px;
  padding:9px 0;border-bottom:1px solid var(--edge);
}
.people li:last-child{border-bottom:0}
.people li[data-off="1"] .nm{color:var(--faint)}
.people li[data-off="1"] .av{filter:grayscale(1);opacity:.5}
.nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}

.chip{
  font-size:11.5px;font-weight:600;flex:none;
  border:1px solid var(--edge);border-radius:999px;
  padding:2px 9px;color:var(--dim);
}
.chip.you{color:var(--accent);border-color:var(--accent)}
.chip.role{color:var(--text);background:var(--raise)}

/* ---------- the drawn people ---------- */

.fig{display:block;line-height:0}
.fig-svg{display:block;width:100%;height:auto;overflow:visible}

/* A bust, for the lists: the same person, cropped to the shoulders and
   set in a medallion. */
.av{
  flex:none;width:40px;height:40px;border-radius:50%;overflow:hidden;
  background:linear-gradient(170deg,var(--raise),var(--ink-2));
  box-shadow:inset 0 0 0 1px var(--edge);
  display:grid;place-items:center;line-height:0;
}
.av.sm{width:30px;height:30px}
.av .fig-svg{width:112%;margin-top:6%}

/* ============ chat ============ */

.chat{display:flex;flex-direction:column;height:min(62dvh,540px)}
.msgs{
  flex:1;overflow-y:auto;margin-bottom:12px;font-size:14.5px;
  scrollbar-width:thin;scrollbar-color:var(--edge) transparent;
}
.msgs li{margin-bottom:9px;overflow-wrap:anywhere}
.msgs .who{color:var(--accent);font-weight:600}
.msgs li.sys{color:var(--faint);font-style:italic;font-size:13.5px}
.chatform{display:flex;gap:8px}
.chatform input{flex:1;min-width:0;padding:10px 13px;font-size:14.5px}

/* ============ the lobby ============ */

.startbox{
  border:1px solid var(--edge);border-top:2px solid var(--accent);
  border-radius:16px;background:var(--surface);
  overflow:hidden;
  display:flex;flex-direction:column;gap:16px;
  padding:0 22px 22px;
}
.startart{display:block;width:calc(100% + 44px);margin:0 -22px;height:auto}
.starthead h3{font-size:1.35rem;font-weight:700;color:var(--text);margin:0}
.startbox p{color:var(--dim);font-size:14.5px;margin:0;text-wrap:pretty}
.startbox .like{margin-top:3px;font-size:13px;color:var(--accent);opacity:.9}
.startgo{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.startgo .need{color:var(--about)}
.startgo .btn.big{min-width:170px}

.settings{
  border:1px solid var(--edge);border-radius:13px;background:var(--ink-2);
  padding:14px 16px;
}
.settings h4{margin:0 0 10px;font-size:13px;font-weight:600;color:var(--dim);letter-spacing:.02em;text-transform:uppercase}
.settings .hint{margin:-4px 0 10px;font-size:13px}
.setgrid{display:grid;grid-template-columns:1fr;gap:4px 22px}
@media(min-width:620px){.setgrid{grid-template-columns:1fr 1fr}}
.setrow{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:7px 0;border-bottom:1px solid color-mix(in srgb,var(--edge) 60%,transparent);
  min-height:46px;
}
.setrow .lbl{font-size:14.5px;color:var(--text)}
.stepper{display:inline-flex;align-items:center;gap:4px;flex:none}
.stepper button{
  width:32px;height:32px;border-radius:9px;
  background:var(--raise);border:1px solid var(--edge);color:var(--text);
  font:inherit;font-size:18px;font-weight:600;line-height:1;cursor:pointer;
  transition:border-color .15s,transform .12s var(--pop);
}
.stepper button:hover:not(:disabled){border-color:var(--accent)}
.stepper button:active:not(:disabled){transform:scale(.9)}
.stepper button:disabled{opacity:.3;cursor:not-allowed}
.stepper output{
  min-width:88px;text-align:center;font-weight:700;font-variant-numeric:tabular-nums;
  font-size:14.5px;color:var(--accent);display:inline-block;
}
.stepper output.tick{animation:tick .25s var(--pop)}

.switch{
  display:inline-flex;align-items:center;gap:9px;flex:none;
  background:none;border:0;padding:0;color:var(--dim);font:inherit;font-size:13.5px;font-weight:600;
}
button.switch{cursor:pointer}
.switch i{
  position:relative;width:42px;height:24px;border-radius:999px;
  background:var(--raise);border:1px solid var(--edge);
  transition:background .2s var(--ease),border-color .2s var(--ease);
}
.switch i::after{
  content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;
  background:var(--dim);transition:transform .22s var(--pop),background .2s;
}
.switch[data-on="1"]{color:var(--accent)}
.switch[data-on="1"] i{background:color-mix(in srgb,var(--accent) 30%,var(--raise));border-color:var(--accent)}
.switch[data-on="1"] i::after{transform:translateX(18px);background:var(--accent)}

.rules{border-top:1px solid var(--edge);padding-top:14px}
.rules summary{
  cursor:pointer;list-style:none;font-size:14px;font-weight:600;color:var(--dim);
  display:flex;align-items:center;gap:8px;
}
.rules summary::-webkit-details-marker{display:none}
.rules summary::before{content:"+";color:var(--accent);font-weight:700}
.rules[open] summary::before{content:"\2212"}
.rules[open] summary{margin-bottom:12px}
.rules .goal{
  font-size:14.5px;color:var(--text);line-height:1.5;
  margin:0 0 13px;max-width:62ch;text-wrap:pretty;
  padding-left:13px;box-shadow:inset 2px 0 0 var(--accent);
}
.rules ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:7px}
.rules li{
  position:relative;padding-left:15px;max-width:68ch;
  font-size:13.5px;color:var(--dim);line-height:1.5;text-wrap:pretty;
}
.rules li::before{content:"";position:absolute;left:0;top:.68em;width:6px;height:1px;background:var(--faint)}
.rules .powers{margin:14px 0 0;padding-top:12px;border-top:1px solid var(--edge);font-size:13px;color:var(--accent)}

/* ============ shared bits of a game screen ============ */

.hint{font-size:14px;color:var(--dim);line-height:1.5;max-width:52ch}
.hint + .cardbtns,.hint + .hand,.hint + .picks,.hint + .ballots{margin-top:14px}
.stagehed{font-size:clamp(1.25rem,4.4vw,1.7rem);font-weight:700;letter-spacing:-.02em}
.cardbtns{display:flex;flex-wrap:wrap;gap:10px}
.btn.no{color:var(--vampir);border-color:#4A2630}
.btn.no:hover{background:#281D18;border-color:var(--vampir)}

.logbox summary{
  cursor:pointer;list-style:none;font-size:14.5px;font-weight:600;color:var(--dim);
  display:flex;align-items:center;gap:8px;
}
.logbox summary::-webkit-details-marker{display:none}
.logbox summary::before{content:"+";color:var(--accent);font-weight:700}
.logbox[open] summary::before{content:"\2212"}
.logbox[open] summary{margin-bottom:12px}
.log{max-height:260px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--edge) transparent}
.log li{padding:7px 0;border-bottom:1px solid var(--edge);font-size:14.5px}
.log li:last-child{border-bottom:0}
.log li.era{color:var(--faint);font-size:12.5px;letter-spacing:.04em}

.notes{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.notes li{
  font-size:13.5px;color:var(--dim);padding:8px 12px;
  background:var(--surface);border:1px solid var(--edge);border-radius:10px;
  animation:rise .3s var(--ease) both;
}

.under{display:flex;gap:14px;align-items:flex-start;flex-wrap:wrap}

/* The role is a card you hold. Tap to turn it face down while someone
   looks over your shoulder; tap again to look. */
.rolecard{
  position:relative;flex:none;width:200px;height:118px;
  perspective:900px;background:none;border:0;padding:0;cursor:pointer;font:inherit;color:inherit;
  text-align:left;
}
.rc-face{
  position:absolute;inset:0;border-radius:14px;
  backface-visibility:hidden;-webkit-backface-visibility:hidden;
  transition:transform .55s var(--ease);
  display:flex;flex-direction:column;justify-content:center;gap:2px;
  padding:14px 16px;border:1px solid var(--edge);
  box-shadow:0 14px 30px -18px #000;
}
.rc-front{
  --rc:var(--about);
  background:linear-gradient(155deg,color-mix(in srgb,var(--rc) 20%,var(--surface)),var(--surface) 70%);
  border-color:color-mix(in srgb,var(--rc) 55%,var(--edge));
}
.rc-front small{font-size:12px;color:var(--dim)}
.rc-front strong{font-size:1.55rem;font-weight:700;letter-spacing:-.03em;color:var(--rc);line-height:1.1}
.rc-front em{font-style:normal;font-size:12px;color:var(--dim);line-height:1.35}
.rc-back{
  transform:rotateY(180deg);
  background:repeating-linear-gradient(42deg,#243951 0 6px,#1D2E40 6px 12px);
  align-items:center;text-align:center;
}
.rc-back small{
  background:var(--ink-2);border:1px solid var(--edge);border-radius:999px;
  padding:4px 10px;font-size:11.5px;color:var(--dim);
}
.rolecard[aria-pressed="true"] .rc-front{transform:rotateY(-180deg)}
.rolecard[aria-pressed="true"] .rc-back{transform:rotateY(0)}
.rolecard[data-rol="vampir"] .rc-front,.rolecard[data-rol="fesatçı"] .rc-front{--rc:var(--vampir)}
.rolecard[data-rol="doktor"] .rc-front,.rolecard[data-rol="sadık"] .rc-front{--rc:var(--ok)}
.rolecard[data-rol="gözcü"] .rc-front{--rc:var(--fesat)}
.rolecard[data-rol="köylü"] .rc-front,.rolecard[data-rol="baş fesatçı"] .rc-front{--rc:var(--about)}
.rolecard[data-olu="1"]{filter:grayscale(.8);opacity:.7}

/* ============ vampir köylü: the village ============ */

/* One drawing, lit six different ways. Every colour in the scene comes
   from a variable set by the phase, and they all cross-fade, so night
   turning into morning is a thing you watch rather than a redraw. */
.village{
  position:relative;isolation:isolate;overflow:hidden;
  --fig-light:brightness(.74) saturate(.8) contrast(1.05);
  border-radius:20px;border:1px solid var(--edge);
  box-shadow:inset 0 0 90px -20px rgba(0,0,0,.7);
  /* night, until the phase says otherwise */
  --sky-1:#04080F; --sky-2:#0A1626; --sky-3:#16293F;
  --hill-f:#0C1826; --hill-n:#081220; --house:#060E19; --roofline:#1E3550;
  --ground-c:#060D16; --orb-c:#E8EEF8; --orb-sea:#C2CEE0; --glow-c:rgba(200,220,255,.30);
  --star-o:1; --cloud-o:0; --bat-o:1; --fog-o:1; --win-o:1; --smoke-o:.5;
  transition:border-color 1.4s var(--ease);
}
.village .scene{display:block;width:100%;height:auto;min-height:220px}

.village[data-faz="sabah"]{
  --fig-light:brightness(.92) saturate(1.05) sepia(.12);
  --sky-1:#20365C; --sky-2:#A85A42; --sky-3:#E8A45E;
  --hill-f:#5A4258; --hill-n:#46344A; --house:#2E2338; --roofline:#6B5160;
  --ground-c:#2A2033; --orb-c:#FFD9A0; --orb-sea:#FFC98A; --glow-c:rgba(255,190,120,.4);
  --star-o:.15; --cloud-o:.7; --bat-o:.2; --fog-o:.8; --win-o:.5; --smoke-o:.8;
}
.village[data-faz="tartışma"]{
  --fig-light:none;
  --sky-1:#2E6FA6; --sky-2:#74A6C8; --sky-3:#C6DCE4;
  --hill-f:#3F6E52; --hill-n:#2F5940; --house:#E8DCC4; --roofline:#B3614A;
  --ground-c:#6E7A54; --orb-c:#FFE9A8; --orb-sea:#FFE9A8; --glow-c:rgba(255,232,160,.45);
  --star-o:0; --cloud-o:1; --bat-o:0; --fog-o:.25; --win-o:0; --smoke-o:1;
}
.village[data-faz="oylama"]{
  --fig-light:brightness(.88) saturate(1.1) sepia(.18);
  --sky-1:#3E2440; --sky-2:#9E4433; --sky-3:#E2793F;
  --hill-f:#50384A; --hill-n:#3C2A3A; --house:#2A1F28; --roofline:#7A4A42;
  --ground-c:#2E2128; --orb-c:#FFB27A; --orb-sea:#F09A62; --glow-c:rgba(255,140,80,.42);
  --star-o:.1; --cloud-o:.6; --bat-o:.25; --fog-o:.5; --win-o:.6; --smoke-o:.7;
}
.village[data-faz="infaz"]{
  --fig-light:brightness(.6) saturate(.7);
  --sky-1:#160B14; --sky-2:#3A161E; --sky-3:#5C2A2A;
  --hill-f:#2A1620; --hill-n:#1C0F18; --house:#140B12; --roofline:#4A2630;
  --ground-c:#150A10; --orb-c:#8E3A36; --orb-sea:#7A302E; --glow-c:rgba(190,70,60,.3);
  --star-o:.3; --cloud-o:.2; --bat-o:.8; --fog-o:.9; --win-o:.8; --smoke-o:.4;
}
.village[data-faz="bitti"]{
  --fig-light:brightness(.85) saturate(.9);
  --sky-1:#07101C; --sky-2:#0E2036; --sky-3:#1A3450;
  --star-o:.8; --bat-o:.3;
}
.village[data-kazanan="vampirler"]{border-color:var(--vampir)}
.village[data-kazanan="köylüler"]{border-color:var(--ok)}

/* the sky and what moves across it */
.scene .sky{transition:fill 1.4s var(--ease)}
.scene .sky-mid{fill:var(--sky-2)}
.scene .sky-top{fill:var(--sky-1)}
.scene .sky-bot{fill:var(--sky-3)}
.og1{stop-color:var(--glow-c)}
.og2{stop-color:var(--glow-c);stop-opacity:0}
.og1,.og2{transition:stop-color 1.4s var(--ease)}

.scene .stars{opacity:var(--star-o);transition:opacity 1.4s var(--ease)}
.scene .stars circle{animation:twinkle 3.4s ease-in-out infinite}
.scene .stars circle:nth-child(2n){animation-delay:-1.1s}
.scene .stars circle:nth-child(3n){animation-delay:-2.2s}

/* The orb rises on the left, crosses, and sets: each phase parks it at a
   different point of the arc, and the move is the transition. */
.scene .orb{transform:translate(980px,110px);transition:transform 1.8s var(--ease)}
.village[data-faz="sabah"] .scene .orb{transform:translate(220px,190px)}
.village[data-faz="tartışma"] .scene .orb{transform:translate(560px,96px)}
.village[data-faz="oylama"] .scene .orb{transform:translate(940px,210px)}
.village[data-faz="infaz"] .scene .orb{transform:translate(1050px,250px)}
.orb-body{fill:var(--orb-c);transition:fill 1.4s var(--ease)}
.orb-seas{fill:var(--orb-sea);opacity:.5;transition:fill 1.4s var(--ease)}
.village[data-faz="tartışma"] .orb-seas,.village[data-faz="sabah"] .orb-seas{opacity:0}

.scene .clouds path{fill:#F2EADA;opacity:var(--cloud-o);transition:opacity 1.4s var(--ease)}
.scene .clouds path:first-child{animation:drift 72s linear infinite}
.scene .clouds path:last-child{animation:drift 104s linear infinite;animation-delay:-30s}

.scene .bats{opacity:var(--bat-o);transition:opacity 1.4s var(--ease)}
.scene .bat{animation:batfly 13s linear infinite}
.scene .bat.b1{transform:translate(-80px,150px)}
.scene .bat.b2{animation-duration:17s;animation-delay:-6s;transform:translate(-80px,96px)}
.scene .bat.b3{animation-duration:21s;animation-delay:-11s;transform:translate(-80px,190px)}

/* the land */
.hill-far{fill:var(--hill-f);transition:fill 1.4s var(--ease)}
.hill-lit{fill:var(--orb-c);opacity:.14;transition:fill 1.4s var(--ease)}
.hill-near{fill:var(--hill-n);transition:fill 1.4s var(--ease)}
.scene .mosque path,.scene .mosque rect{fill:var(--hill-n);transition:fill 1.4s var(--ease)}
.scene .mosque path[d*="v-14"],.scene .mn-ring{stroke:var(--hill-n);stroke-width:3;fill:none}
.scene .mn-top{fill:none;stroke:var(--orb-c);stroke-width:2.6;opacity:.5}
.scene .cypress path{fill:var(--hill-n);transition:fill 1.4s var(--ease)}

.scene .houses path{fill:var(--house);transition:fill 1.4s var(--ease)}
.scene .row-back path{opacity:.72}
.scene .ridges path{fill:none;stroke:var(--roofline);stroke-width:4;stroke-linejoin:round;transition:stroke 1.4s var(--ease)}
.scene .chimneys rect{fill:var(--house);transition:fill 1.4s var(--ease)}
.scene .smoke path{
  fill:none;stroke:#C9D6E4;stroke-width:5;stroke-linecap:round;
  opacity:calc(var(--smoke-o) * .45);transition:opacity 1.4s var(--ease);
  animation:smoke 7s ease-in-out infinite;
}
.scene .smoke path:nth-child(2){animation-delay:-2.4s}
.scene .smoke path:nth-child(3){animation-delay:-4.6s}

.scene .windows{opacity:var(--win-o);transition:opacity 1.4s var(--ease)}
.scene .windows rect{fill:#FFC979}
.scene .windows .w-dim{fill:#FFC979;opacity:.45}
.scene .windows .wg{fill:url(#vk-win-glow)}
.scene .fog{opacity:var(--fog-o);transition:opacity 1.4s var(--ease)}
.scene .fog.f1{animation:fogdrift 34s ease-in-out infinite alternate}
.scene .fog.f2{animation:fogdrift 46s ease-in-out infinite alternate-reverse}
.scene .ground{fill:var(--ground-c);transition:fill 1.4s var(--ease)}
.scene .ground-lit{fill:#F2EADA;opacity:.06}

/* street furniture */
.scene .props path,.scene .props rect{fill:var(--house);transition:fill 1.4s var(--ease)}
.scene .well-frame,.scene .well-rope,.scene .props .shaft{fill:none;stroke:var(--house);stroke-width:6;stroke-linecap:round}
.scene .props .wheel{fill:none;stroke:var(--house);stroke-width:5}
.scene .lamps .post{fill:none;stroke:var(--house);stroke-width:6;stroke-linecap:round}
.scene .lamps .lantern,.scene .lamps .cap{fill:#FFC979;opacity:var(--win-o);transition:opacity 1.4s var(--ease)}
.scene .lamps .halo{fill:url(#vk-win-glow);opacity:var(--win-o);transition:opacity 1.4s var(--ease);animation:lamp 3.4s ease-in-out infinite}
.scene .lamps g:last-child .halo{animation-delay:-1.7s}

/* the phase, painted onto the sky */
.phase{
  position:absolute;left:0;right:0;top:0;z-index:1;
  padding:clamp(10px,2vw,18px) clamp(14px,3vw,26px);pointer-events:none;
}
.phase{display:flex;flex-direction:column;align-items:flex-start}
.phase h2,.phase p{
  background:rgba(6,14,24,.42);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
  border-radius:12px;padding:2px 14px;
}
.phase h2{
  font-family:var(--read);
  font-size:clamp(1.5rem,4.6vw,2.6rem);font-weight:600;letter-spacing:-.02em;
  color:#FBF4E6;text-shadow:0 2px 20px rgba(0,0,0,.6);
  animation:phasein .7s var(--ease);
}
.phase p{margin-top:2px;font-size:clamp(11px,2.4vw,13.5px);color:rgba(251,244,230,.72);text-shadow:0 1px 8px rgba(0,0,0,.6)}
.village[data-faz="tartışma"] .phase h2,.village[data-faz="tartışma"] .phase p{background:rgba(6,14,24,.3)}

/* the street: everyone standing in front of their village */
.street{
  position:absolute;left:0;right:0;bottom:10%;z-index:1;
  display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:center;
  gap:0 clamp(2px,1vw,14px);padding:0 10px;
}
.seat{
  position:relative;
  display:flex;flex-direction:column;align-items:center;gap:2px;
  width:clamp(62px,8.1%,104px);
  background:none;border:0;padding:0;color:#F8F2E4;font:inherit;cursor:default;
  animation:walkin .5s var(--ease) both;animation-delay:calc(var(--i) * 60ms);
}
.seat .fig{
  position:relative;display:block;width:100%;
  filter:var(--fig-light,none);
  transition:transform .25s var(--pop),filter .6s var(--ease),opacity .6s;
}
.seat .fig svg{display:block;width:100%;height:auto;overflow:visible}
/* a soft pool of light under each person, warm at night */
.seat .fig::after{
  content:"";position:absolute;left:12%;right:12%;bottom:-2px;height:10px;
  border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.55),transparent);
}
.seat .nm{
  max-width:100%;font-size:clamp(11px,2.5vw,13px);font-weight:600;
  padding:1px 8px;border-radius:999px;
  background:rgba(6,12,20,.55);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.seat .tags{display:flex;flex-wrap:wrap;justify-content:center;gap:3px;min-height:0}
.seat .tags .chip{font-size:10px;padding:1px 7px;background:rgba(6,12,20,.6);border-color:rgba(242,234,218,.25)}
.seat .chip.role[data-rol="vampir"]{color:#FF9A86;border-color:rgba(226,80,63,.6)}
.seat .chip.role[data-rol="doktor"]{color:#9BE6BC;border-color:rgba(98,192,140,.6)}
.seat .chip.role[data-rol="gözcü"]{color:#7FE0DA;border-color:rgba(47,181,174,.6)}
.seat .chip.role[data-rol="köylü"]{color:#F3CE86;border-color:rgba(232,176,74,.6)}

.seat[data-pick="1"]{cursor:pointer}
.seat[data-pick="1"] .fig{filter:drop-shadow(0 0 0 transparent)}
.seat[data-pick="1"]:hover .fig,.seat[data-pick="1"]:focus-visible .fig{transform:translateY(-6px) scale(1.04)}
.seat[data-pick="1"]::before{
  content:"";position:absolute;left:50%;bottom:16px;translate:-50% 0;
  width:76%;aspect-ratio:2/1;border-radius:50%;
  border:2px dashed var(--accent);opacity:.55;animation:spin 14s linear infinite;
}
.seat[data-picked="1"] .fig{transform:translateY(-6px) scale(1.06)}
.seat[data-picked="1"] .fig svg{filter:drop-shadow(0 0 14px color-mix(in srgb,var(--accent) 75%,transparent))}
.seat[data-picked="1"] .nm{background:var(--accent);color:#0A1320}
.seat[data-me="1"] .nm{box-shadow:inset 0 0 0 1px var(--accent)}
.seat[data-off="1"] .fig{opacity:.4;filter:grayscale(.7)}
.seat[data-ready="1"] .fig::before{
  content:"✓";position:absolute;right:4%;top:14%;z-index:2;
  width:20px;height:20px;border-radius:50%;background:var(--ok);color:#06140C;
  font-size:12px;font-weight:800;display:grid;place-items:center;
  animation:pop .3s var(--pop);
}
/* A death: the figure fades to a stone. */
.seat[data-dead="1"] .fig{opacity:0;transform:translateY(6px) scale(.9)}
.seat .tomb{
  position:absolute;left:50%;bottom:26px;translate:-50% 0;width:44%;
  opacity:0;transform:translateY(10px) scale(.8);
  transition:opacity .6s var(--ease) .25s,transform .6s var(--pop) .25s;
}
.seat[data-dead="1"] .tomb{opacity:1;transform:translateY(0) scale(1)}
.seat[data-dead="1"] .nm{opacity:.6;text-decoration:line-through}

.seat .votes{
  position:absolute;top:2px;right:6%;z-index:2;
  min-width:24px;height:24px;padding:0 6px;border-radius:999px;
  background:var(--isim);color:#241802;font-size:13px;font-weight:800;
  display:grid;place-items:center;box-shadow:0 4px 10px -4px #000;
}
.seat .votes.bump{animation:pop .35s var(--pop)}

.news{
  position:absolute;left:50%;bottom:10px;translate:-50% 0;z-index:1;
  max-width:min(88%,560px);text-align:center;
  font-size:clamp(12.5px,2.6vw,15px);font-weight:500;color:#FBF4E6;
  background:rgba(6,12,20,.5);border:1px solid rgba(242,234,218,.12);
  border-radius:999px;padding:7px 16px;
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
}
.news:empty{display:none}
.news.in{animation:rise .5s var(--ease)}

.actbar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  background:var(--surface);border:1px solid var(--edge);border-radius:14px;padding:12px 16px;
  border-left:3px solid var(--accent);
}
.actbar p{font-size:15px;font-weight:600;min-width:0}
.actbar[data-eylem=""]{border-left-color:var(--edge)}
.actbar[data-eylem=""] p{color:var(--dim);font-weight:500}
.actbtns{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.actbtns .btn.quiet{padding:9px 14px;border:1px solid var(--edge);color:var(--dim)}
.readycount{font-size:13.5px;color:var(--dim);font-variant-numeric:tabular-nums}
.readybtn[aria-pressed="true"]{border-color:var(--ok);color:var(--ok)}
#play > *{margin-bottom:14px}
#play > :last-child{margin-bottom:0}

/* ---------- the people, drawn ---------- */

.fig .f-blink{animation:blink var(--blink,4s) infinite}
.fig .f-body{transform-origin:50% 100%;animation:sway var(--sway,3.4s) ease-in-out infinite}
.fig .f-lamp{animation:lamp 2.6s ease-in-out infinite}
.village[data-faz="tartışma"] .fig .f-lamp,.village[data-faz="sabah"] .fig .f-lamp{opacity:0}

@keyframes drift{from{transform:translateX(0)}to{transform:translateX(1500px)}}
@keyframes batfly{
  0%{transform:translate(-80px,150px) scaleY(1)}
  25%{transform:translate(300px,110px) scaleY(.75)}
  50%{transform:translate(700px,160px) scaleY(1)}
  75%{transform:translate(1050px,120px) scaleY(.8)}
  100%{transform:translate(1320px,150px) scaleY(1)}
}
@keyframes smoke{0%,100%{transform:translateY(0);opacity:.45}50%{transform:translateY(-8px);opacity:.2}}
@keyframes fogdrift{from{transform:translateX(-40px)}to{transform:translateX(40px)}}
@keyframes walkin{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes blink{0%,94%,100%{transform:scaleY(1)}96%,98%{transform:scaleY(.08)}}
@keyframes sway{0%,100%{transform:rotate(-.9deg)}50%{transform:rotate(.9deg)}}
@keyframes lamp{0%,100%{opacity:.75}50%{opacity:1}}

/* ============ isim şehir hayvan ============ */

.isimtop{display:flex;align-items:center;justify-content:space-between;gap:14px}
.isimtop span{font-size:14px;color:var(--dim);white-space:nowrap}

/* The letter lands like a drum stopping on it. */
.letterbox{
  position:relative;overflow:hidden;
  width:clamp(84px,20vw,112px);height:clamp(84px,20vw,112px);border-radius:20px;
  display:grid;place-items:center;
  background:linear-gradient(160deg,#FFE48A,#E8B04A 55%,#D9A93A);
  box-shadow:inset 0 -6px 0 rgba(0,0,0,.18),0 18px 30px -16px #E8B04A;
}
.letterbox strong{font-size:clamp(3rem,11vw,4.4rem);font-weight:700;line-height:1;color:#2A1D05;letter-spacing:-.04em}
.letterbox.roll strong{animation:roll .9s var(--pop)}
.letterbox.roll::after{
  content:"ABCÇDEFGHİKLMNOPRSŞTUVYZ";
  position:absolute;left:0;right:0;top:0;
  font-size:clamp(3rem,11vw,4.4rem);font-weight:700;color:#2A1D05;
  writing-mode:vertical-lr;text-orientation:upright;letter-spacing:-.25em;
  animation:reel .7s cubic-bezier(.3,.1,.3,1) forwards;opacity:.35;
}

/* A sheet from an exercise book: ruled lines and a red margin. */
.paper{
  position:relative;border-radius:14px;padding:20px 20px 18px 34px;
  background:
    linear-gradient(90deg,transparent 22px,rgba(255,94,108,.45) 22px 24px,transparent 24px),
    repeating-linear-gradient(180deg,transparent 0 33px,rgba(120,140,200,.16) 33px 34px),
    #FBF7EA;
  color:#24313F;border:1px solid #E4DCC4;
  box-shadow:0 18px 40px -26px #000;
}
.paper h3{font-size:1.2rem;font-weight:700;color:#24313F;margin-bottom:12px}
.sheet{display:grid;grid-template-columns:1fr;gap:10px}
@media(min-width:560px){.sheet{grid-template-columns:1fr 1fr}}
.cellrow{display:flex;flex-direction:column;gap:5px;animation:rise .35s var(--ease) both;animation-delay:calc(var(--i) * 60ms)}
.cellrow span{font-size:12.5px;color:#63788F;font-weight:600;letter-spacing:.02em;text-transform:uppercase}
.paper input[type=text]{
  background:transparent;border:0;border-bottom:2px solid #C7D7E9;border-radius:0;
  color:#16222F;font-family:var(--read);font-size:19px;font-weight:500;padding:6px 2px;
}
.paper input[type=text]:focus{background:rgba(245,206,90,.18);border-bottom-color:#B88A1A}
.paper input[type=text]:disabled{opacity:.55}
.sheet-foot{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:16px}
.paper .waiting{color:#63788F}
.paper .btn.go{background:#24313F;border-color:#24313F;color:#FBF7EA}

.tablehead{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.tablehead h3{margin:0}

.table{display:flex;flex-direction:column;gap:18px}
.catblock h4{
  font-size:13px;font-weight:600;color:var(--isim);margin:0 0 8px;
  padding-bottom:6px;border-bottom:1px solid var(--edge);
}
.ans{
  display:flex;align-items:center;gap:10px;width:100%;
  background:none;border:1px solid transparent;border-radius:8px;
  padding:8px 10px;margin:0 -10px;
  font-family:var(--ui);font-size:14.5px;color:var(--text);text-align:left;
  cursor:pointer;transition:border-color .18s var(--ease),background .18s var(--ease);
}
.ans:hover{background:var(--raise)}
.ans[disabled]{cursor:default;opacity:.8}
.ans[disabled]:hover{background:none}
.ans .who{color:var(--dim);font-size:13px;flex:none;min-width:84px}
.ans .word{font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ans .count{
  margin-left:auto;flex:none;font-size:12px;font-weight:600;
  color:var(--vampir);border:1px solid #5A2F38;border-radius:999px;padding:1px 8px;
}
.ans.objected{border-color:var(--vampir);background:#281D18}
.ans.own .who{color:var(--accent)}
.ans.out .word{text-decoration:line-through;color:var(--faint)}
.ans .why{font-size:12px;color:var(--faint);flex:none}

/* Scores as bars. */
.scores li{
  position:relative;isolation:isolate;
  display:flex;align-items:center;gap:10px;
  padding:9px 12px;margin-bottom:6px;border-radius:10px;overflow:hidden;
  background:var(--ink-2);
}
.scores li::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 34%,transparent),color-mix(in srgb,var(--accent) 12%,transparent));
  transform-origin:left;transform:scaleX(var(--w,0));
  transition:transform .8s var(--ease);
}
.scores .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.scores .gain{color:var(--ok);font-size:13.5px;font-weight:700;flex:none;animation:pop .4s var(--pop)}
.scores .tot{font-weight:700;font-variant-numeric:tabular-nums;flex:none;min-width:38px;text-align:right}
.scores li.lead .tot{color:var(--accent)}
.scores li[data-ok="1"] .nm::after{content:" \2713";color:var(--ok)}

/* ============ söyleme! and telgraf: two teams ============ */

.scoreline{
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;
  width:100%;max-width:760px;margin-inline:auto;
}
.scoreline .turnmeta{font-size:14px;color:var(--dim);text-align:center}
.tm{
  padding:10px 16px;border-radius:14px;
  background:var(--raise);border:1px solid var(--edge);text-align:center;
  opacity:.65;transition:opacity .25s var(--ease),box-shadow .25s var(--ease),transform .25s var(--pop);
}
.tm b{display:block;font-size:clamp(1.5rem,5vw,2.1rem);font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.03em;line-height:1.1}
.tm small{display:block;font-size:11.5px;color:var(--faint);margin-top:1px}
.tm[data-t="0"]{border-color:#2C4A6B;background:linear-gradient(160deg,#16243A,var(--raise))}
.tm[data-t="0"] b{color:#6FB4FF}
.tm[data-t="1"]{border-color:#6B4326;background:linear-gradient(160deg,#33210F,var(--raise))}
.tm[data-t="1"] b{color:#FFA05C}
.tm[data-mine="1"]{opacity:1}
.tm[data-mine="1"] small{color:var(--dim)}
.tm[data-up="1"]{opacity:1;transform:scale(1.04)}
.tm[data-up="1"][data-t="0"]{box-shadow:0 0 0 2px #6FB4FF,0 10px 30px -12px #6FB4FF}
.tm[data-up="1"][data-t="1"]{box-shadow:0 0 0 2px #FFA05C,0 10px 30px -12px #FFA05C}
.tm.bump b{animation:pop .45s var(--pop)}

.teamrow{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.team{
  background:var(--surface);border:1px solid var(--edge);border-radius:14px;padding:10px 12px;
  display:flex;flex-direction:column;gap:2px;min-width:0;
}
.team[data-t="0"]{border-top:3px solid #6FB4FF}
.team[data-t="1"]{border-top:3px solid #FFA05C}
.team .teamname{font-size:12px;color:var(--faint);font-weight:600;letter-spacing:.03em;text-transform:uppercase;padding:2px 0 6px}
.team li:not(.teamname){display:flex;align-items:center;gap:8px;padding:5px 0;min-width:0}
.team li .nm{flex:1;min-width:0;font-size:14px}
.team li[data-off="1"]{opacity:.45}
.team li[data-anlatan="1"] .av{box-shadow:0 0 0 2px var(--soyle);animation:throb 1.4s ease-in-out infinite}
.team .chip[data-k="desc"]{color:var(--soyle);border-color:#255340}
.team .chip[data-k="op"]{color:var(--telgraf);border-color:#584036}

/* ---------- söyleme! ---------- */

.cardstage{
  background:var(--surface);border:1px solid var(--edge);
  border-radius:20px;padding:clamp(18px,4vw,28px);
  display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center;
  min-height:240px;justify-content:center;
}
.cardstage .hint{text-align:center;margin:0 auto}
.cardstage[data-rol="anlatan"]{border-color:var(--soyle);background:linear-gradient(150deg,#15291F,var(--surface))}
.cardstage[data-rol="hakem"]{border-color:#354E67}
.cardstage[data-rol="tahmin"][data-takim="0"]{border-color:#2C4A6B;background:linear-gradient(150deg,#161F33,var(--surface))}
.cardstage[data-rol="tahmin"][data-takim="0"] .stagehed{color:#6FB4FF}
.cardstage[data-rol="tahmin"][data-takim="1"]{border-color:#6B4326;background:linear-gradient(150deg,#2A1D16,var(--surface))}
.cardstage[data-rol="tahmin"][data-takim="1"] .stagehed{color:#FFA05C}
.cardstage .stagehed{animation:phasein .45s var(--ease)}

/* The card, as a card: cream, tilted a degree, flipped in when it is
   drawn. */
.wordcard{
  width:min(100%,360px);
  background:linear-gradient(170deg,#FFFDF6,#F2EAD3);color:#1A2839;
  border-radius:18px;padding:22px 18px 18px;
  box-shadow:0 26px 50px -24px #000,inset 0 0 0 1px rgba(0,0,0,.06);
  transform:rotate(-1deg);
  animation:cardin .5s var(--pop);
}
.wordcard strong{
  display:block;font-size:clamp(2rem,9vw,3rem);font-weight:700;
  letter-spacing:-.04em;line-height:1.05;overflow-wrap:break-word;
  padding-bottom:12px;border-bottom:2px dashed rgba(34,25,58,.18);
}
.wordcard small{display:block;margin:12px 0 8px;font-size:11.5px;color:#708195;letter-spacing:.04em;text-transform:uppercase}
.wordcard ul{display:flex;flex-direction:column;gap:5px}
.wordcard li{
  font-size:16px;font-weight:600;color:#B5283A;
  text-decoration:line-through;text-decoration-color:rgba(181,40,58,.55);text-decoration-thickness:2px;
  animation:rise .35s var(--ease) both;animation-delay:calc(.15s + var(--i) * 50ms);
}
.cardbtns{justify-content:center}

/* Guessers get an ear, cupped. */
.guessart{
  width:84px;height:84px;border-radius:50%;
  background:radial-gradient(circle,color-mix(in srgb,var(--accent) 30%,transparent) 0 40%,transparent 41%);
  position:relative;
}
.guessart::before,.guessart::after{
  content:"";position:absolute;inset:0;border-radius:50%;
  border:2px solid var(--accent);opacity:0;animation:ripple 1.8s ease-out infinite;
}
.guessart::after{animation-delay:.9s}

.turntally{
  display:flex;gap:26px;padding-top:15px;border-top:1px solid var(--edge);
  font-variant-numeric:tabular-nums;width:100%;justify-content:center;
}
.turntally b{display:block;font-size:1.4rem;font-weight:700;letter-spacing:-.02em}
.turntally small{display:block;font-size:11px;color:var(--faint);margin-top:1px}
.turntally [data-k="ok"] b{color:var(--ok)}
.turntally [data-k="no"] b{color:var(--vampir)}

.played{display:flex;flex-wrap:wrap;gap:8px}
.played li{
  font-size:14px;padding:6px 12px;border-radius:999px;
  background:var(--raise);border:1px solid var(--edge);color:var(--dim);
  animation:pop .3s var(--pop);
}
.played li[data-k="ok"]{color:var(--ok);border-color:#255340}
.played li[data-k="no"]{color:var(--vampir);border-color:#4A2630}

.panel.own summary{
  font-size:14.5px;font-weight:600;color:var(--dim);cursor:pointer;
  list-style:none;display:flex;align-items:center;gap:8px;
}
.panel.own summary::-webkit-details-marker{display:none}
.panel.own summary::before{content:"+";color:var(--accent);font-weight:700}
.panel.own[open] summary::before{content:"\2212"}
.panel.own[open] summary{margin-bottom:14px}
.panel.own .field{margin-bottom:12px}

/* ============ fesat ============ */

.board{
  background:
    repeating-linear-gradient(94deg,rgba(0,0,0,.07) 0 3px,transparent 3px 30px),
    linear-gradient(170deg,#4A3220,#2E1D0F);
  border:1px solid #6B4324;
  box-shadow:inset 0 2px 0 #7A5230,inset 0 -3px 10px rgba(0,0,0,.5),0 12px 30px -22px #000;
  border-radius:18px;padding:clamp(14px,3vw,20px);
  display:flex;flex-direction:column;gap:12px;
}
.track{display:flex;align-items:center;gap:12px}
.track-name{font-size:12px;color:#C9A24A;min-width:48px;flex:none;letter-spacing:.06em;text-transform:uppercase;font-weight:700}
.slots{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;flex:1;min-width:0;perspective:600px}
.slot{
  min-width:0;height:56px;border-radius:7px;
  border:1px solid #1A1008;
  background:linear-gradient(180deg,#241509,#2E1C0D);
  box-shadow:inset 0 3px 7px rgba(0,0,0,.6);
  display:flex;align-items:center;justify-content:center;
  transition:background .22s var(--ease),border-color .22s var(--ease);
}
.slot small{font-size:9.5px;color:var(--dim);text-align:center;line-height:1.15;padding:0 3px;letter-spacing:.01em}
.slot[data-k="adil"][data-on="1"]{background:linear-gradient(160deg,#245A40,#1C3B2C);border:1px solid var(--ok)}
.slot[data-k="fesat"][data-on="1"]{background:linear-gradient(160deg,#5A2430,#3B1C24);border:1px solid var(--vampir)}
.slot[data-k="fesat"][data-on="1"] small{color:#FFB6BE}
.slot[data-new="1"]{animation:stamp .7s var(--pop)}
.slot[data-last="1"]{border-style:dashed;border-color:#6B313D;background:#221916}
.slot[data-last="1"]::after{content:"\2716";color:#8C4350;font-size:13px}
.slot[data-last="1"][data-on="1"]::after{color:#FFB6BE}

.boardfoot{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:11px;border-top:1px solid rgba(201,162,74,.3)}
.trk{display:flex;align-items:center;gap:10px}
.trk small{font-size:12px;color:#B9A07A}
.dots{display:inline-flex;gap:5px}
.dots i{width:10px;height:10px;border-radius:50%;border:1px solid #6B4324;background:#241509;transition:background .3s}
.dots i[data-on="1"]{background:var(--about);border-color:var(--about);animation:pop .35s var(--pop)}

/* The council: one token per seat, with the crown and the seal moving
   between them, and the ballots turned face up when a vote closes. */
.council{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 6px}
.tok{
  position:relative;width:clamp(76px,19vw,96px);
  display:flex;flex-direction:column;align-items:center;gap:4px;
  padding:16px 4px 8px;border-radius:14px;
  animation:seatin .45s var(--pop) both;animation-delay:calc(var(--i) * 40ms);
  transition:background .3s var(--ease);
}
.tok .nm{font-size:13px;max-width:100%}
.tok .tags{display:flex;flex-wrap:wrap;justify-content:center;gap:3px}
.tok .tags .chip{font-size:10px;padding:1px 6px}
.tok .tags .chip[data-k="pres"],.tok .tags .chip[data-k="chan"]{display:none}
.tok .hat{
  position:absolute;top:0;left:50%;transform:translate(-50%,6px) scale(.4);opacity:0;
  width:28px;height:18px;transition:transform .45s var(--pop),opacity .3s;
}
.tok[data-pres="1"]{background:color-mix(in srgb,var(--about) 12%,transparent)}
.tok[data-pres="1"] .hat{
  opacity:1;transform:translate(-50%,-2px) scale(1);
  background:var(--about);
  clip-path:polygon(0 100%,0 30%,22% 62%,50% 0,78% 62%,100% 30%,100% 100%);
}
.tok[data-chan="1"]{background:color-mix(in srgb,var(--fesat) 12%,transparent)}
.tok[data-chan="1"] .hat{
  opacity:1;transform:translate(-50%,0) scale(1);
  width:22px;height:22px;border-radius:50%;
  background:radial-gradient(circle,var(--fesat) 0 45%,#1F4A52 46% 60%,var(--fesat) 61%);
}
.tok[data-pres="1"] .av{box-shadow:0 0 0 2px var(--about)}
.tok[data-chan="1"] .av{box-shadow:0 0 0 2px var(--fesat)}
.tok[data-me="1"] .nm{color:var(--accent)}
.tok[data-dead="1"] .av{filter:grayscale(1) brightness(.5)}
.tok[data-dead="1"] .nm{text-decoration:line-through;opacity:.6}
.tok[data-off="1"]{opacity:.5}
.tok[data-voted="1"] .av::after{
  content:"\2713";position:absolute;right:-3px;bottom:-3px;width:18px;height:18px;border-radius:50%;
  background:var(--text);color:var(--ink);font-size:11px;font-weight:800;display:grid;place-items:center;
}
.tok .av{position:relative}
.tok .vote{
  position:absolute;top:44px;right:2px;
  font-size:10.5px;font-weight:800;letter-spacing:.02em;text-transform:uppercase;
  padding:3px 6px;border-radius:5px;opacity:0;transform:rotateY(90deg);
  transition:transform .4s var(--pop),opacity .2s;
}
.tok .vote[data-k="evet"]{opacity:1;transform:rotate(8deg);background:var(--ok);color:#0A1A11}
.tok .vote[data-k="hayır"]{opacity:1;transform:rotate(-8deg);background:var(--vampir);color:#19120F}
.tok .chip[data-rol="sadık"]{color:var(--ok);border-color:#255340}
.tok .chip[data-rol="fesatçı"]{color:var(--vampir);border-color:#4A2630}
.tok .chip[data-rol="baş fesatçı"]{color:var(--about);border-color:#5B451F}
.tok .chip[data-k="known"]{color:var(--text);background:var(--raise)}
.tok .chip[data-k="dead"]{color:var(--faint)}

.festagewrap h3{font-size:1.15rem;color:var(--text);margin-bottom:10px}
.festage{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.festage > .hand,.festage > .picks,.festage > div{align-self:stretch}
.festage[data-yetki="infaz"] .pick{border-color:#5A2A34;color:#FF9AA5;background:#281D18}
.festage[data-yetki="infaz"] .pick:hover{border-color:var(--vampir);background:#3B1C24}

/* Two ballot cards to pick from, the way the vote is cast at a table. */
.ballots{display:flex;gap:14px;flex-wrap:wrap}
.btn.ballot{
  flex:1 1 130px;min-height:92px;border-radius:14px;font-size:1.2rem;font-weight:700;
  animation:dealin .4s var(--pop) both;
}
.btn.ballot.no{animation-delay:.08s;background:#281D18}

.hand{display:flex;flex-wrap:wrap;gap:12px;perspective:800px}
.decree{
  flex:1 1 110px;min-width:96px;min-height:140px;border-radius:12px;
  border:1px solid var(--edge);background:var(--raise);
  font:inherit;font-size:15px;font-weight:700;color:var(--text);letter-spacing:.02em;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:transform .16s var(--pop),border-color .16s var(--ease),box-shadow .16s;
  animation:dealin .45s var(--pop) both;animation-delay:calc(var(--i) * 90ms);
  position:relative;
}
.decree::before{
  content:"";position:absolute;inset:8px;border-radius:7px;border:1px solid currentColor;opacity:.25;
}
.decree[data-k="adil"]{background:linear-gradient(150deg,#245A40,#162B22);border-color:#2C5944;color:#A8F0C8}
.decree[data-k="fesat"]{background:linear-gradient(150deg,#5A2430,#2B161C);border-color:#5A2A34;color:#FFB0B9}
button.decree:hover{transform:translateY(-6px) rotate(-1deg);box-shadow:0 16px 30px -14px #000}
.hand.peek .decree{cursor:default;min-height:104px;flex:0 1 92px}

.picks{display:flex;flex-wrap:wrap;gap:9px}
.picks .pick{
  display:inline-flex;align-items:center;gap:8px;
  margin:0;border:1px solid var(--edge);background:var(--raise);
  border-radius:999px;padding:6px 15px 6px 6px;font:inherit;font-size:14.5px;
  color:var(--text);cursor:pointer;transition:border-color .16s var(--ease),background .16s var(--ease),transform .14s var(--pop);
}
.picks .pick:hover{border-color:var(--accent);background:var(--surface);transform:translateY(-2px)}

/* ============ telgraf ============ */

.wire{
  background:linear-gradient(170deg,#212935,var(--surface));border:1px solid var(--edge);border-radius:18px;
  padding:clamp(16px,3.5vw,22px);
  display:flex;flex-direction:column;gap:13px;align-items:center;text-align:center;
}
.wire .hint{margin:0 auto}
.wire[data-t="0"]{border-color:#2C4A6B}
.wire[data-t="1"]{border-color:#6B4326}

/* The clue, as a strip of telegram tape. */
.telegram{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:center;
  background:#F4ECD6;color:#2A1F12;border-radius:6px;padding:10px 18px;
  box-shadow:0 14px 30px -16px #000;transform:rotate(-.6deg);
  font-family:"Courier New",ui-monospace,monospace;
}
.telegram strong{
  font-size:clamp(1.5rem,6vw,2.4rem);font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;overflow-wrap:anywhere;
}
.telegram .num{
  min-width:46px;height:46px;border-radius:50%;flex:none;
  display:inline-flex;align-items:center;justify-content:center;
  background:#2A1F12;color:#F4ECD6;
  font-family:var(--ui);font-size:1.35rem;font-weight:700;font-variant-numeric:tabular-nums;
}
.telegram.typing strong span,.telegram.typing .num{animation:typein .01s steps(1) both;animation-delay:calc(var(--i) * 70ms + 80ms)}
.wire[data-t="0"] .telegram .num{background:#1F3B5E}
.wire[data-t="1"] .telegram .num{background:#6B3A16}

/* The operator thinking: a key tapping out dots. */
.tapping{display:flex;gap:7px;height:16px;align-items:center}
.tapping i{width:10px;height:10px;border-radius:50%;background:var(--accent);animation:tap 1.2s ease-in-out infinite}
.tapping i:nth-child(2){animation-delay:.2s;width:22px;border-radius:6px}
.tapping i:nth-child(3){animation-delay:.4s}

.wireform{display:flex;gap:9px;flex-wrap:wrap;align-items:center;width:100%}
.wireform input[type=text]{flex:1 1 180px;min-width:0}
.wireform input[type=number]{
  width:72px;flex:none;
  background:var(--ink-2);color:var(--text);font:inherit;
  border:1px solid var(--edge);border-radius:10px;padding:12px 10px;
  text-align:center;font-variant-numeric:tabular-nums;
}
.wireform input[type=number]:focus{outline:none;border-color:var(--accent)}

/* Five across on a desktop, three on a phone. */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;perspective:900px}
@media(min-width:620px){.grid{grid-template-columns:repeat(5,1fr);gap:10px}}

.sq{
  min-height:66px;border-radius:11px;padding:8px 6px;
  border:1px solid #D9CFB5;background:linear-gradient(170deg,#FBF6E6,#EDE3C8);
  font:inherit;font-size:clamp(11px,2.4vw,14px);font-weight:700;
  letter-spacing:.01em;color:#2A1F12;text-align:center;text-transform:uppercase;
  display:flex;align-items:center;justify-content:center;
  overflow-wrap:anywhere;hyphens:auto;
  box-shadow:0 6px 14px -10px #000;
}
button.sq{cursor:pointer;transition:transform .14s var(--pop),box-shadow .14s var(--ease)}
button.sq:hover{transform:translateY(-3px);box-shadow:0 12px 20px -10px #000,0 0 0 2px var(--accent)}

/* An opened square turns over to show what it was. */
.sq[data-acik="1"]{font-weight:600}
.sq[data-new="1"]{animation:flip .6s var(--ease)}
.sq[data-tur="mavi"][data-acik="1"]{background:linear-gradient(160deg,#2C5A93,#1B2E47);border-color:#6FB4FF;color:#DDEBFF}
.sq[data-tur="turuncu"][data-acik="1"]{background:linear-gradient(160deg,#9A5420,#3A2516);border-color:#FFA05C;color:#FFE3CC}
.sq[data-tur="sivil"][data-acik="1"]{background:#344251;border-color:#44596F;color:#C3D0DF}
.sq[data-tur="tuzak"][data-acik="1"]{background:#070B10;border-color:var(--vampir);color:#FF8E99}

/* The operator's board: the identities as a thick coloured underline, so
   the words stay readable. */
.grid[data-key="1"] .sq:not([data-acik="1"]){box-shadow:inset 0 -6px 0 currentColor,0 6px 14px -10px #000}
.grid[data-key="1"] .sq[data-tur="mavi"]:not([data-acik="1"]){color:#1F5FA8}
.grid[data-key="1"] .sq[data-tur="turuncu"]:not([data-acik="1"]){color:#B35A12}
.grid[data-key="1"] .sq[data-tur="sivil"]:not([data-acik="1"]){color:#8C826A}
.grid[data-key="1"] .sq[data-tur="tuzak"]:not([data-acik="1"]){color:#E8E0CC;background:#121820;border-color:#5A2A34}
.grid[data-key="1"] .sq span{color:#2A1F12}
.grid[data-key="1"] .sq[data-tur="tuzak"]:not([data-acik="1"]) span{color:#FF8E99}
.grid .sq[data-acik="1"] span{color:inherit}

/* ============ motion ============ */

@keyframes pop{0%{transform:scale(.6);opacity:0}100%{transform:scale(1);opacity:1}}
@keyframes rise{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}
@keyframes throb{50%{transform:scale(1.08)}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes tick{0%{transform:translateY(-4px);opacity:.3}100%{transform:none;opacity:1}}
@keyframes twinkle{50%{opacity:.25;transform:scale(.7)}}
@keyframes seatin{from{opacity:0;transform:translate(-50%,-50%) scale(.6)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
.tok{animation-name:tokin}
@keyframes tokin{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:none}}
@keyframes phasein{from{opacity:0;transform:translateY(10px) scale(.96);letter-spacing:.02em}to{opacity:1;transform:none}}
@keyframes cardin{0%{transform:rotateY(80deg) rotate(-1deg);opacity:0}100%{transform:rotateY(0) rotate(-1deg);opacity:1}}
@keyframes dealin{from{transform:translateY(22px) rotate(4deg);opacity:0}to{transform:none;opacity:1}}
@keyframes stamp{0%{transform:scale(1.6) rotate(-6deg);opacity:0}60%{transform:scale(.95)}100%{transform:none;opacity:1}}
@keyframes flip{0%{transform:rotateY(0)}50%{transform:rotateY(90deg)}100%{transform:rotateY(0)}}
@keyframes typein{from{visibility:hidden}to{visibility:visible}}
@keyframes tap{0%,100%{opacity:.25;transform:scaleY(.6)}50%{opacity:1;transform:none}}
@keyframes ripple{0%{transform:scale(.5);opacity:.8}100%{transform:scale(1.6);opacity:0}}
@keyframes roll{0%{transform:translateY(-120%);filter:blur(4px)}60%{transform:translateY(8%);filter:none}100%{transform:none}}
@keyframes reel{from{transform:translateY(0)}to{transform:translateY(-92%);opacity:0}}
@keyframes toast{0%{opacity:0;transform:translateY(-12px) scale(.92)}12%{opacity:1;transform:none}80%{opacity:1}100%{opacity:0;transform:translateY(-6px)}}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:.01ms !important;animation-duration:.01ms !important;animation-iteration-count:1 !important}
  .letterbox.roll::after{display:none}
}
/* ============ video stage ============ */

#act-video{display:flex;flex-direction:column;gap:16px}

.stage{
  position:relative;
  aspect-ratio:16/9;
  background:#05090D;
  border:1px solid var(--edge);
  border-radius:14px;
  overflow:hidden;
  display:grid;place-items:center;
}
.stage video{width:100%;height:100%;object-fit:contain;display:none;background:#05090D}
.stage[data-live="1"] video{display:block}
.stage[data-live="1"] .stage-empty{display:none}

.stage-empty{padding:24px;text-align:center;color:var(--dim);max-width:46ch;
  display:flex;flex-direction:column;align-items:center;gap:4px}
.stage-art{width:clamp(110px,22%,170px);height:auto;margin-bottom:6px;opacity:.85}
.stage-empty .small{font-size:13.5px;color:var(--faint);margin-top:10px;text-wrap:pretty}

/* Fullscreen: the 16/9 box is right in the page and wrong once the stage
   owns the whole display, where it would letterbox a second time. */
.stage:fullscreen{aspect-ratio:auto;width:100vw;height:100vh;border:0;border-radius:0;background:#000}
.stage:fullscreen video{width:100%;height:100%}
.stage:-webkit-full-screen{aspect-ratio:auto;width:100vw;height:100vh;border:0;border-radius:0;background:#000}

.stagebar{display:flex;flex-wrap:wrap;align-items:center;gap:10px}

.note{
  color:var(--dim);font-size:14px;text-wrap:pretty;
  border-left:2px solid var(--edge);padding-left:12px;
}

.btn.sound{background:var(--about);border-color:var(--about);color:#1A1208;font-weight:600}
.btn.sound:hover{filter:brightness(1.08);background:var(--about)}

.btn.mic{display:inline-flex;align-items:center;gap:8px}
.btn.mic svg{flex:none}
.btn.mic .mic-slash{opacity:1;transition:opacity .18s var(--ease)}
.btn.mic[data-mic="on"]{background:var(--ok);border-color:var(--ok);color:#0A1A11}
.btn.mic[data-mic="on"] .mic-slash{opacity:0}
#btn-share[data-on="1"]{background:var(--vampir);border-color:var(--vampir);color:#19120F}

/* The send settings belong to whoever is sharing: in a peer-to-peer room
   one encode is sent to everybody, so there is no viewer-side quality to
   offer and pretending otherwise would be a lie. */
.sendbar{
  display:flex;flex-wrap:wrap;align-items:center;gap:14px;
  border:1px solid var(--edge);border-left:2px solid var(--video);
  border-radius:12px;background:var(--surface);
  padding:12px 16px;
}
.sendbar .budget{flex-basis:100%;margin:0}

.qual{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--dim)}
.qual select{
  background:var(--ink-2);color:var(--text);
  border:1px solid var(--edge);border-radius:8px;
  font-family:var(--ui);font-size:14px;font-weight:500;
  padding:9px 10px;cursor:pointer;
}
.qual select:focus{outline:none;border-color:var(--accent)}

.meter{
  margin-left:auto;font-size:13px;color:var(--faint);
  font-variant-numeric:tabular-nums;white-space:nowrap;
}
.meter b{color:var(--accent);font-weight:600}

.budget{font-size:13.5px;color:var(--faint);text-wrap:pretty}
.budget.warn{color:var(--about)}

/* Status marks in the people list: an icon rather than a word, because the
   list is scanned, not read. */
.people li .mark{margin-left:auto;flex:none;display:inline-flex;align-items:center}
.people li .mark.on{color:var(--ok)}
.people li .mark.live{color:var(--video)}

/* ============ hakkımda ============ */

.about{max-width:70ch}
.about .prose{
  font-family:var(--read);
  font-size:clamp(17.5px,2.1vw,19.5px);
  line-height:1.68;
  color:#D4DFEB;
}
.about .prose p{margin-top:1.05em;text-wrap:pretty}
.about .prose p:first-child{margin-top:0}
.about .prose em{font-style:italic;color:var(--text)}

.about h2{
  font-size:clamp(1.45rem,4vw,1.9rem);font-weight:700;
  margin:clamp(46px,7vw,72px) 0 20px;
  padding-bottom:12px;border-bottom:1px solid var(--edge);
}

.entry{padding:20px 0;border-bottom:1px solid var(--edge)}
.entry:last-child{border-bottom:0}
.entry .head{display:flex;justify-content:space-between;align-items:baseline;gap:14px;flex-wrap:wrap}
.entry h3{font-size:1.12rem;font-weight:600}
.entry .when{font-size:13.5px;color:var(--faint);flex:none}
.entry .org{color:var(--accent);font-size:14.5px;font-weight:500;margin-top:2px}
.entry .desc{color:var(--dim);font-size:15px;margin-top:9px;text-wrap:pretty}
.entry ul{margin-top:9px}
.entry ul li{
  color:var(--dim);font-size:14.5px;
  padding:4px 0 4px 17px;position:relative;
}
.entry ul li::before{
  content:"";position:absolute;left:0;top:13px;width:6px;height:1.5px;background:var(--faint);
}

.tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.tag{
  font-size:12.5px;color:var(--dim);
  border:1px solid var(--edge);border-radius:6px;padding:3px 9px;
}
.repo{
  display:inline-block;margin-top:12px;font-size:14px;font-weight:500;
  color:var(--accent);text-decoration:none;
  border-bottom:1px solid transparent;
}
.repo:hover{border-bottom-color:var(--accent)}

.pairs li{
  display:flex;justify-content:space-between;gap:14px;
  padding:10px 0;border-bottom:1px solid var(--edge);font-size:15px;
}
.pairs li:last-child{border-bottom:0}
.pairs .k{color:var(--text)}
.pairs .v{color:var(--faint);flex:none;font-size:13.5px}

.reach{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.reach a{
  text-decoration:none;font-size:15px;font-weight:600;
  border:1px solid var(--edge);border-radius:9px;padding:11px 18px;
  transition:border-color .2s var(--ease),background .2s var(--ease);
}
.reach a:hover{border-color:var(--accent);background:var(--surface)}
.reach a.main{background:var(--accent);border-color:var(--accent);color:#1A1208}
.reach a.main:hover{filter:brightness(1.1)}

footer{
  max-width:var(--wide);width:100%;margin:0 auto;
  padding:26px var(--gutter) 40px;
  border-top:1px solid var(--edge);
  display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;
  font-size:13px;color:var(--faint);
}

@media (prefers-reduced-motion:reduce){
  *{transition-duration:.01ms !important;animation-duration:.01ms !important}
}

/* ============ fesat: the divan hall ============ */

/* The council does not stand in a box: it stands in a hall, under lamps,
   on a carpet, with the night behind the arches. The drawing is one SVG
   behind the row; everything that moves in it moves in CSS. */
.hall{
  position:relative;isolation:isolate;overflow:hidden;
  border-radius:20px;border:1px solid var(--edge);
  box-shadow:inset 0 0 90px -16px rgba(0,0,0,.7);
  padding:clamp(30px,7vw,64px) clamp(6px,2vw,18px) clamp(8px,2vw,18px);
  min-height:300px;
  display:flex;align-items:flex-end;
}
.hall .scene{position:absolute;inset:0;z-index:-1;width:100%;height:100%}
.hall .council{flex:1;min-width:0}

.fh-gold{fill:#C9A24A;opacity:.75}
.fh-niche{fill:url(#fh-night);stroke:#1E4A66;stroke-width:3}
.fh-stars circle{animation:twinkle 4s ease-in-out infinite}
.fh-stars circle:nth-child(2n){animation-delay:-1.3s}
.fh-stars circle:nth-child(3n){animation-delay:-2.6s}
.fh-moon{fill:#E8EEF8;opacity:.9}
.fh-col rect{fill:#16384F}
.fh-col rect:nth-child(2n){fill:#1C4661}

/* the lamps: the chain is the pivot, so the bowl swings under it */
.fh-lamp{transform-origin:top center;animation:kandil 6.5s ease-in-out infinite;animation-delay:var(--d,0s)}
.fh-chain{stroke:#8A6B22;stroke-width:2.5;fill:none}
.fh-bowl{fill:#C9A24A}
.fh-flame{fill:#FFE4A8;animation:lamp 2.8s ease-in-out infinite;animation-delay:var(--d,0s)}
.fh-halo{animation:lamp 3.6s ease-in-out infinite;animation-delay:var(--d,0s)}

.fh-divan{fill:#2A1A2E}
.fh-divan-top{fill:#5E2A3A}
.fh-rug{fill:#6E2130}
.fh-rug-2{fill:url(#fh-cini);opacity:.14}
.fh-rug-line{stroke:#C9A24A;stroke-width:2.5;opacity:.55;fill:none}
.fh-medal{fill:#C9A24A;opacity:.4}

/* The token: a person on a cushion rather than a chip in a box. */
.tok{padding-top:20px}
.tok .fig{width:clamp(58px,15vw,76px);transition:transform .25s var(--pop),opacity .4s var(--ease),filter .4s}
.tok .cushion{
  position:absolute;left:50%;bottom:30px;translate:-50% 0;z-index:-1;
  width:76%;height:16px;border-radius:50%;
  background:radial-gradient(60% 100% at 50% 30%,#8A3A4E,#54222F 70%);
  box-shadow:0 6px 14px -6px #000;
}
.tok .nm{
  background:rgba(6,16,26,.55);border-radius:999px;padding:1px 8px;
  backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);
}
.tok[data-pres="1"]{background:radial-gradient(70% 60% at 50% 70%,color-mix(in srgb,var(--isim) 24%,transparent),transparent)}
.tok[data-chan="1"]{background:radial-gradient(70% 60% at 50% 70%,color-mix(in srgb,var(--fesat) 22%,transparent),transparent)}
.tok[data-pres="1"] .cushion{background:radial-gradient(60% 100% at 50% 30%,#C9A24A,#7A5E18 70%)}
.tok[data-chan="1"] .cushion{background:radial-gradient(60% 100% at 50% 30%,#2FB5AE,#13585A 70%)}
/* these used to point at the old round avatar */
.tok[data-dead="1"] .fig{filter:grayscale(1) brightness(.45);opacity:.55}
.tok[data-dead="1"] .cushion{opacity:.3}
.tok[data-voted="1"] .fig::after{
  content:"\2713";position:absolute;right:2%;top:6%;z-index:2;
  width:19px;height:19px;border-radius:50%;background:var(--text);color:var(--ink);
  font-size:11px;font-weight:800;display:grid;place-items:center;
  animation:pop .3s var(--pop);
}
.tok .fig{position:relative}
.tok .vote{top:34%}

@keyframes kandil{0%,100%{transform:rotate(-2.2deg)}50%{transform:rotate(2.2deg)}}

/* ============ telgraf: the office ============ */

.office{
  position:relative;isolation:isolate;overflow:hidden;
  border-radius:20px;border:1px solid var(--edge);
  box-shadow:inset 0 0 90px -16px rgba(0,0,0,.7);
  padding:clamp(30px,6vw,60px) clamp(12px,3vw,30px) clamp(14px,3vw,26px);
  min-height:clamp(230px,26vw,300px);
  display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
  background:linear-gradient(180deg,#0B2030,#113446);
}
.office .scene{position:absolute;left:0;right:0;bottom:0;z-index:-1;width:100%;height:auto}
/* the telegram sits on the desk, so the wood shows around it */
.office .wire{
  width:min(100%,600px);
  background:rgba(8,20,32,.34);
  backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);
  border-color:rgba(242,234,218,.12);
}

.tg-wainscot{stroke:#1C4A60;stroke-width:3;opacity:.6}
.tg-frame{fill:none;stroke:#8A6B22;stroke-width:4}
.tg-far{fill:none;stroke:#2A5A78;stroke-width:2.5;stroke-linecap:round}
.tg-stars circle{animation:twinkle 4.4s ease-in-out infinite}
.tg-stars circle:nth-child(2n){animation-delay:-1.6s}
.tg-wires{fill:none;stroke:#0A1C2A;stroke-width:3.5;opacity:.9}
.tg-chain{stroke:#8A6B22;stroke-width:3;fill:none}
.tg-shade{fill:#1F5F63}
.tg-bulb{fill:#FFE4A8;animation:lamp 3.2s ease-in-out infinite}
.tg-halo{animation:lamp 4s ease-in-out infinite}
.tg-edge{stroke:#8A5C2E;stroke-width:3}
.tg-grain{fill:none;stroke:#2A1A0C;stroke-width:2;opacity:.45}
.tg-shadow{fill:rgba(0,0,0,.35)}
.tg-brass{fill:#C9A24A}
.tg-brass-2{fill:#E0BC66}
.tg-knob{fill:#2A1A0C}
/* the operator is tapping: the lever rocks on its pivot */
.tg-lever{transform-origin:200px 210px;animation:tap-key 1.6s ease-in-out infinite}
.tg-tape{fill:none;stroke:#F4ECD6;stroke-width:9;stroke-linecap:round;opacity:.92}
.tg-saucer{fill:#C9A24A}
.tg-glass{fill:rgba(226,240,246,.35)}
.tg-brew{fill:#9A4A1E}
.tg-steam{fill:none;stroke:#E2F0F6;stroke-width:2.5;stroke-linecap:round;opacity:.35;
  animation:steam 4.5s ease-in-out infinite}
.tg-steam:nth-of-type(2){animation-delay:-2s}

@keyframes tap-key{0%,62%,100%{transform:rotate(0)}70%,78%{transform:rotate(-7deg)}}
@keyframes steam{0%{opacity:0;transform:translateY(6px)}40%{opacity:.4}100%{opacity:0;transform:translateY(-10px)}}

/* ============ söyleme!: the little stage ============ */

.theatre{
  position:relative;isolation:isolate;overflow:hidden;
  border-radius:20px;border:1px solid var(--edge);
  padding:clamp(14px,3vw,24px) clamp(10px,7vw,96px) 34px;
  background:
    radial-gradient(110% 70% at 50% 0%,rgba(255,201,121,.10),transparent 70%),
    linear-gradient(180deg,#2A1016 0%,#160A10 55%,#120A10 100%);
}
.theatre .curtain{
  position:absolute;top:0;bottom:0;width:clamp(10px,7vw,96px);height:100%;
  z-index:2;pointer-events:none;filter:drop-shadow(0 0 24px rgba(0,0,0,.6));
}
.theatre .curtain.left{left:0}
.theatre .curtain.right{right:0}
/* the boards, and the lights along the front of them */
.theatre::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:34px;
  background:repeating-linear-gradient(90deg,#4A2E1A 0 44px,#3A2414 44px 46px);
  box-shadow:inset 0 3px 0 #6B4324;
}
.footlights{
  position:absolute;left:0;right:0;bottom:6px;height:22px;z-index:3;
  display:flex;justify-content:space-around;align-items:flex-end;pointer-events:none;
}
.footlights i{
  width:12px;height:12px;border-radius:50% 50% 2px 2px;
  background:#FFC979;box-shadow:0 0 20px 7px rgba(255,201,121,.35);
  animation:lamp 3.4s ease-in-out infinite;
}
.footlights i:nth-child(2n){animation-delay:-1.1s}
.footlights i:nth-child(3n){animation-delay:-2.3s}
@media(max-width:640px){
  .theatre{padding-inline:12px}
  .theatre .curtain{display:none}
}

/* ============ isim şehir hayvan: the desk ============ */

.isimtop{
  position:relative;
  border-radius:16px 16px 0 0;
  padding:14px clamp(14px,3vw,22px) 16px;
  background:linear-gradient(180deg,#5A3A22,#3E2614);
  box-shadow:inset 0 2px 0 #7A5230,0 10px 24px -18px #000;
  overflow:hidden;
}
.isimtop::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(92deg,rgba(0,0,0,.10) 0 2px,transparent 2px 26px);
}
/* the letter comes out of the bag as a wooden tile */
.letterbox{box-shadow:inset 0 -6px 0 rgba(0,0,0,.2),0 12px 26px -14px #000}
.tile-face{
  position:absolute;inset:5px;border-radius:12px;pointer-events:none;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.35),inset 0 -3px 0 rgba(0,0,0,.12);
}
.pencil{
  width:clamp(104px,22vw,176px);height:auto;flex:none;
  transform:rotate(-5deg);transform-origin:80% 50%;
  filter:drop-shadow(0 6px 10px rgba(0,0,0,.5));
}
.isimtop[data-faz="yazma"] .pencil{animation:write 1.9s ease-in-out infinite}
@keyframes write{0%,100%{transform:rotate(-5deg) translate(0,0)}
  25%{transform:rotate(-7deg) translate(-4px,2px)}
  50%{transform:rotate(-4deg) translate(3px,-1px)}
  75%{transform:rotate(-6deg) translate(-2px,1px)}}
.paper{border-radius:0 0 16px 16px;margin-top:-2px}

/* Inside the theatre the stage is the scene, not another panel on top
   of it: the card and the buttons stand straight on the boards. */
.theatre .cardstage{background:none;border:0;box-shadow:none;padding-block:clamp(12px,3vw,22px)}
.theatre .cardstage .turntally{border-top-color:rgba(242,234,218,.18)}
.theatre .cardstage[data-rol="tahmin"][data-takim="0"] .stagehed{color:#9ECBFF}
.isimtop span{color:#F2E3C4}
.isimtop .pencil{margin-left:auto}

/* ============ the open list, and the door ============ */

.openlist{margin-top:18px}
.openhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.openhead h2{font-size:1.15rem;font-weight:700}
.openlist .hint{margin:0}

.rooms{display:grid;grid-template-columns:1fr;gap:10px}
@media(min-width:760px){.rooms{grid-template-columns:1fr 1fr}}
.roomrow{
  display:flex;align-items:center;gap:12px;min-width:0;
  background:var(--ink-2);border:1px solid var(--edge);border-left:3px solid var(--c,var(--accent));
  border-radius:12px;padding:8px 12px 8px 8px;
  animation:rise .3s var(--ease) both;
}
.roomart{width:74px;height:auto;flex:none;border-radius:8px;overflow:hidden;opacity:.95}
.roommeta{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.roommeta strong{font-size:15px;font-weight:600;letter-spacing:-.01em}
.roommeta span{font-size:12.5px;color:var(--dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.roomtags{display:flex;gap:5px;flex-wrap:wrap;margin-top:3px}
.roomtags .chip{font-size:11px;padding:1px 8px}
.roomtags .chip[data-k="free"]{color:var(--ok);border-color:#255340}
.roomtags .chip[data-k="busy"]{color:var(--faint)}
.roomtags .chip[data-k="onay"]{color:var(--isim);border-color:#5B451F}
.roomrow .btn{flex:none}

.knockstate{
  margin-top:12px;font-size:14px;padding:10px 14px;border-radius:11px;
  border:1px solid var(--edge);background:var(--ink-2);color:var(--dim);
}
.knockstate[data-k="wait"]{border-color:var(--isim);color:var(--isim)}
.knockstate[data-k="ok"]{border-color:var(--ok);color:var(--ok)}
.knockstate[data-k="no"]{border-color:var(--vampir);color:#FF9A86}

/* the host's side: a switch for the door, and whoever is standing at it */
.door{margin-top:16px;padding-top:14px;border-top:1px solid var(--edge)}
.doorrow{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:5px 0;font-size:14.5px;cursor:pointer;
}
.door .hint{margin-top:6px;font-size:13px}
.knocks{margin-top:12px;display:flex;flex-direction:column;gap:7px}
.knocks .knockhead{
  font-size:12px;color:var(--isim);letter-spacing:.04em;text-transform:uppercase;font-weight:700;
}
.knocks li:not(.knockhead){
  display:flex;align-items:center;gap:8px;
  background:var(--raise);border:1px solid var(--edge);border-radius:10px;padding:6px 8px;
  animation:rise .3s var(--pop) both;
}
.knocks .nm{flex:1;min-width:0;font-size:14px}
.knocks .btn{padding:6px 11px;font-size:13px}

/* Removing someone is a quiet button that only shows when it is wanted. */
.kick{
  flex:none;width:24px;height:24px;border-radius:50%;margin-left:4px;
  background:none;border:1px solid transparent;color:var(--faint);
  font:inherit;font-size:17px;line-height:1;cursor:pointer;
  display:grid;place-items:center;
  transition:color .15s,border-color .15s,background .15s;
}
.people li:hover .kick,.kick:focus-visible{color:#FF9A86;border-color:#5A2A34;background:#2A1620}

/* Which road the picture is taking. The relay is the one that costs
   something, so it says so rather than hiding in a stats panel. */
.meter .road{
  margin-left:8px;font-size:11.5px;font-weight:700;letter-spacing:.03em;
  border-radius:999px;padding:1px 8px;border:1px solid var(--edge);color:var(--dim);
}
.meter .road[data-k="direct"]{color:var(--ok);border-color:#255340}
.meter .road[data-k="relay"]{color:var(--isim);border-color:#5B451F}

/* On a phone the room bar has to stay one line: in a match the code has
   done its job, and the lobby button can be a symbol. */
@media(max-width:640px){
  body.ingame .codebox{display:none}
  body.ingame #btn-lobby{font-size:0;padding:9px 11px}
  body.ingame #btn-lobby::before{content:"\21A9";font-size:17px;line-height:1}
  body.ingame .hud{gap:8px}
  .council{gap:8px 2px}
  .tok{width:clamp(62px,17.5vw,96px);padding-inline:2px}
  .tok .nm{font-size:11.5px;padding:1px 6px}
}

}


/* ====================================================================
   piksel
   --------------------------------------------------------------------
   The whole site is pixel art, so the interface is drawn on the same
   grid the pictures are. Nothing here is a filter over the old look:
   the palette, the type, the edges and the shadows are all replaced.

   Three rules run through it.

   One: no soft edges. Corners are square, borders are two solid pixels,
   shadows are hard offsets with no blur. A blurred shadow under a pixel
   drawing is the one thing that gives the game away.

   Two: integer type. The font is a 5x7 bitmap built into a real font
   file, where one font pixel is a tenth of the font size — so sizes are
   multiples of 10px and the letters land on whole screen pixels. Long
   prose keeps a normal sans, because 5x7 is for labels and not for
   paragraphs.

   Three: motion belongs to the thing that moves. A button sinks when
   pressed, a card lifts under the pointer, the sky drifts, a scene
   breathes. Nothing moves just to be moving, and all of it stops when
   the reader has asked for less.
   ==================================================================== */

@font-face{
  font-family:"Oda Piksel";
  /* woff, not ttf: nginx ships a mime type for woff and none for ttf,
     and the zlib wrapper takes it down by half. */
  src:url("oda-piksel.woff") format("woff");
  font-display:swap;
  font-weight:400;
}

/* dokular: üretilmiş — tools/dokular.js, elle düzenleme */
:root{
  --gok-uzak:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAYAAACLz2ctAAAEu0lEQVR42u3d6VcaVxzGcd+nSTXGhUVBVlkGZJd9HRAVNBpRE4zGY2K2tjlNTP/9nmkPOZpqHRBm/X5euHBYhuf+uMDMnXunpmSYtyx7pd92hz86BShJKr61TGNvUIRGkci2erSujoqQFGAo6eJ2X0vbE1sXX9Aqk5cpdU5IAcYWXMtv6HG7S83eB6O3TWXj+DMViqGJO2++u/2xPEkAwLDKraNPpAAo6d2R+J0U+NICAACGYneurpECAAAAbiMkyp3bLm90Tr+SDuR94WC0O9QsvqLYe08RwlQ9YKqw+VIrnyG25y0O3yi3tS57BT03/Kqw3ni2YHfxEgB+InbPrkjBYJZWVmOkAAAAAAAAbqGHk8wDbjuHkADgfzk94fT003kbSciz11o/JQVo42NOJCuSwj2kiTRJAQAA6IjN4YuQAjSp1Dr8OOpt49nmgWXJHSJF4C5F8eCSFACdqbRf/ub0Chk9bnss09inBTXs0ePpWVJQwNJKIE4K/y0+i90dnGQRSmfjGTI834o1bMbdArnq83N6QEAlF73GN8M/SV8oVa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vudoAAAAASUVORK5CYII=");
}
/* dokular: son */

@layer piksel {

  :root{
    /* Night, cooler and harder than before. The old palette was warm
       cream on indigo; this one is a screen in a dark room. */
    --ink:#0B0F17;
    --ink-2:#0F141E;
    --surface:#141B26;
    --raise:#1C2533;
    --edge:#2C3A4D;
    --edge-2:#3D4F66;

    --text:#E8EEF7;
    --dim:#93A3B8;
    --faint:#66768C;

    /* One accent per game, and they are the only saturated things on
       the page. Purple is gone on purpose. */
    --vampir:#FF4D5E;
    --fesat:#22D3EE;
    --soyle:#FF5CC8;
    --isim:#FFB224;
    --telgraf:#3DDC97;
    --video:#FF8A3D;
    --cizim:#5BA8FF;
    --sahte:#A3E635;
    --demis:#FFD93D;
    --casus:#E3E7EE;
    --cevap:#2FA39B;
    --blof:#C9714E;
    --about:#FFB224;
    --accent:var(--vampir);
    --ok:#3DDC97;

    --ui:"Oda Piksel",ui-monospace,SFMono-Regular,Menlo,monospace;
    --read:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;

    /* One font pixel = a tenth of the size, so these are the sizes that
       stay crisp. Anything between them goes fuzzy. */
    --f0:10px; --f1:20px; --f2:30px; --f3:40px; --f4:50px;

    --hard:4px 4px 0 rgba(0,0,0,.55);
    --hard-sm:3px 3px 0 rgba(0,0,0,.5);
    --sink:3px;
    --ease:steps(6,end);
    --pop:cubic-bezier(.34,1.56,.64,1);
  }

  /* --------------- the grid shows through everything --------------- */

  *,*::before,*::after{ border-radius:0 }

  body{
    font-family:var(--ui);
    font-size:var(--f1);
    line-height:1.5;
    letter-spacing:0;
    background:var(--ink);
    background-image:none;
    -webkit-font-smoothing:none;
    -moz-osx-font-smoothing:grayscale;
    text-rendering:optimizeSpeed;
  }

  canvas,img,svg{ image-rendering:pixelated; image-rendering:crisp-edges }

  h1{ font-size:var(--f3); line-height:1.1; letter-spacing:0 }
  h2{ font-size:var(--f2); line-height:1.2; letter-spacing:0 }
  h3{ font-size:var(--f1); line-height:1.3; letter-spacing:0 }
  @media(min-width:760px){ h1{ font-size:var(--f4) } }

  /* Paragraphs people actually read stay in a normal face. A 5x7 grid is
     a label font; a page of it is a chore. */
  .about p,.about li,.about blockquote,
  .msgs li,.bubbles li,.lead,.sub{
    font-family:var(--read);
    font-size:16.5px;
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
  }

  /* ------------------------- the wallpaper ------------------------- */
  /* A night sky in four layers, each a seamless tile drawn pixel by
     pixel rather than described with gradients: four identical dots on
     a 96px grid is what a gradient sky looks like, and you can see the
     grid. Here the far stars are dim and crowded, the near ones bright
     and sparse, a handful twinkle, and a dithered nebula sits behind
     the lot. They drift at four different speeds, so the sky has depth
     instead of sliding as one sheet.

     Every tile wraps, so there is no seam however far the page goes. */

  .wall{ opacity:1;overflow:hidden }
  .wall svg{ display:none }

  .wall,
  .wall::before,
  .wall::after{
    background-repeat:repeat;
    image-rendering:pixelated;
  }

  .wall{
    background-image:var(--gok-bulut);
    background-size:1024px 1024px;
    animation:gok-bulut 480s linear infinite;
  }
  .wall::before{
    content:"";position:absolute;inset:-20% -20% -20% -20%;
    background-image:var(--gok-uzak);
    background-size:160px 160px;
    opacity:.85;
    animation:gok-uzak 300s linear infinite;
  }
  .wall::after{
    content:"";position:absolute;inset:-20% -20% -20% -20%;
    background-image:var(--gok-yakin),var(--gok-parlak);
    background-size:224px 224px,288px 288px;
    animation:gok-yakin 150s linear infinite,gok-parilti 5.5s steps(1,end) infinite;
  }

  @keyframes gok-bulut{ to{ background-position:1024px -512px } }
  @keyframes gok-uzak { to{ transform:translate3d(-160px,80px,0) } }
  @keyframes gok-yakin{ to{ transform:translate3d(-224px,112px,0) } }
  @keyframes gok-parilti{
    0%,38%  { opacity:1 }
    39%,52% { opacity:.42 }
    53%,78% { opacity:.86 }
    79%,100%{ opacity:.6 }
  }

  /* A tint over the sky in whatever colour the view owns, so moving
     between the pages feels like moving rather than reloading. */
  .wall-tint{
    position:fixed;inset:0;z-index:-1;pointer-events:none;
    background:
      linear-gradient(180deg,color-mix(in srgb,var(--accent) 7%,transparent),transparent 46%),
      radial-gradient(130% 70% at 50% 110%,color-mix(in srgb,var(--accent) 9%,transparent),transparent 62%);
    transition:background 1.2s linear;
  }

  /* Two shooting stars, rarely, on long offset delays. Pixels, so they
     are a short hard streak and not a blurred comet. */
  .wall i{
    position:absolute;left:-8%;top:0;width:34px;height:2px;
    background:linear-gradient(90deg,transparent,#BBD4FF 60%,#FFFFFF);
    box-shadow:0 1px 0 rgba(120,160,230,.45);
    opacity:0;
    animation:kayan 23s cubic-bezier(.2,.5,.5,1) infinite;
  }
  .wall i:nth-of-type(2){
    width:26px;top:34%;
    animation-duration:37s;animation-delay:11s;
    background:linear-gradient(90deg,transparent,#FFD9B0 60%,#FFFFFF);
  }
  @keyframes kayan{
    0%,86%   { transform:translate3d(0,0,0);opacity:0 }
    87%      { opacity:0 }
    88%      { opacity:1 }
    97%      { opacity:1 }
    100%     { transform:translate3d(120vw,52vh,0);opacity:0 }
  }

  /* --------------------------- surfaces --------------------------- */

  .panel,.card,.fact,.hero-card,.offer,.roomrow,.side,.board,.chat,
  .lobby,.entry,.openlist,.door,.cardstage{
    border:2px solid var(--edge);
    background:var(--surface);
    box-shadow:var(--hard);
  }
  .panel,.card,.offer{ background-image:none }

  /* A two-pixel light line along the top edge: the one thing that keeps
     a flat box from looking like a hole. */
  .panel,.card,.offer,.hero-card{ position:relative }
  .panel::after,.card::after,.offer::after,.hero-card::after{
    content:"";position:absolute;left:0;right:0;top:0;height:2px;
    background:var(--edge-2);pointer-events:none;
  }

  .offer{ transition:transform .12s var(--ease),box-shadow .12s var(--ease) }
  .offer:hover,.offer:focus-within{
    transform:translate(-2px,-2px);
    box-shadow:6px 6px 0 rgba(0,0,0,.6);
    border-color:var(--accent);
  }

  /* ---------------------------- buttons ---------------------------- */
  /* Chunky, and they sink when pushed. The shadow is the height of the
     button, so losing it is the whole press. */

  .btn,button.chip,.actbtns button,.cardbtns button{
    font-family:var(--ui);
    font-size:var(--f1);
    letter-spacing:0;
    border:2px solid var(--edge-2);
    background:var(--raise);
    color:var(--text);
    box-shadow:0 var(--sink) 0 #05070C;
    transition:transform .08s steps(2,end),box-shadow .08s steps(2,end),
               background-color .12s var(--ease);
  }
  .btn:hover{ background:var(--edge) }
  .btn:active,.actbtns button:active,.cardbtns button:active{
    transform:translateY(var(--sink));
    box-shadow:0 0 0 #05070C;
  }
  .btn.primary,.btn.go,.btn[data-primary]{
    background:var(--accent);
    border-color:var(--accent);
    color:#0B0F17;
    box-shadow:0 var(--sink) 0 rgba(0,0,0,.65);
  }
  .btn.primary:hover,.btn.go:hover{ filter:brightness(1.12) }
  .btn[disabled]{ box-shadow:none;transform:none;opacity:.45 }

  /* ----------------------------- fields ----------------------------- */

  input,select,textarea{
    font-family:var(--ui);
    font-size:var(--f1);
    border:2px solid var(--edge);
    background:var(--ink-2);
    color:var(--text);
    box-shadow:inset 2px 2px 0 rgba(0,0,0,.4);
    caret-color:var(--accent);
  }
  input:focus,select:focus,textarea:focus{
    border-color:var(--accent);
    outline:none;
    box-shadow:inset 2px 2px 0 rgba(0,0,0,.4),0 0 0 2px color-mix(in srgb,var(--accent) 40%,transparent);
  }
  ::placeholder{ color:var(--faint) }

  :focus-visible{ outline:2px solid var(--accent);outline-offset:2px }

  /* The room code is the thing people read out loud, so it gets the
     biggest, flattest treatment on the page. */
  .code,.codebox b,.code b{
    font-family:var(--ui);
    font-size:var(--f2);
    letter-spacing:4px;
    color:var(--accent);
    text-shadow:2px 2px 0 rgba(0,0,0,.6);
  }

  /* ------------------------- the top bar ------------------------- */

  .topbar{
    border-bottom:2px solid var(--edge);
    background:var(--ink-2);
    box-shadow:0 2px 0 rgba(0,0,0,.5);
  }
  .brand{ font-size:var(--f1);letter-spacing:0 }
  .tabs a{ font-size:var(--f1);letter-spacing:0 }
  .tabs a[aria-current="page"]{ color:var(--accent) }

  /* A square dot that ticks rather than pulses. */
  .dot,.status i,.link i{ border-radius:0;width:8px;height:8px }
  .link i{ animation:tik 2s steps(2,end) infinite }
  @keyframes tik{ 0%,70%{opacity:1} 71%,100%{opacity:.35} }

  /* ------------------------- drawn people ------------------------- */
  /* A character is one wide image of four frames. The element is sized
     in whole multiples of the 22x50 grid and the frames are stepped
     through with pixel offsets, so nothing ever lands half a pixel off. */

  .fig,.av{
    --k:2;
    display:block;
    width:calc(22px * var(--k));
    height:calc(50px * var(--k));
    background-repeat:no-repeat;
    background-size:calc(88px * var(--k)) calc(50px * var(--k));
    background-position:0 0;
    image-rendering:pixelated;
    animation:kare var(--nefes,1.4s) steps(1,end) infinite;
  }
  .av{
    --k:1;
    height:calc(28px * var(--k));
    background-size:calc(88px * var(--k)) calc(28px * var(--k));
  }
  .av.sm{ --k:1 }
  @media(min-width:760px){ .av{ --k:2 } }
  .fig svg,.av svg{ display:none }
  .tombwrap .tomb{ display:none }
  .hayalet{ animation-duration:var(--nefes,2s) }
  @keyframes kare{
    0%   { background-position-x:0 }
    25%  { background-position-x:calc(-22px * var(--k)) }
    50%  { background-position-x:calc(-44px * var(--k)) }
    75%  { background-position-x:calc(-66px * var(--k)) }
    100% { background-position-x:0 }
  }

  /* --------------------------- the stage --------------------------- */

  /* The old vector scene keeps its place in the layout but is never
     drawn: it is what gives these boxes their height, and the canvas
     that replaces it lies across the same space. Taking it out of the
     flow collapsed the village and took the players with it.

     The canvas sits at a negative depth inside a stacking context of
     its own, so it goes behind everything in the box without a single
     child having to be positioned. Positioning them is what broke the
     council: half of that screen is laid out against the box itself,
     and a scene that joins the flow makes the box a thousand pixels
     tall and squeezes the players into a column at the edge. */
  .stage,.cardstage,.festagewrap,.sahneli{ position:relative }
  .sahneli{ isolation:isolate }
  svg.scene{ visibility:hidden }
  .sahne{
    position:absolute;inset:0;width:100%;height:100%;
    display:block;z-index:-1;image-rendering:pixelated;
  }
  /* Only the village stands its players inside the picture, so only
     there are they drawn at the picture's zoom. */
  .village .fig{ --k:var(--ks,2) }

  /* These rooms are drawn to be seen, so they are given the height to
     show the lamps and the monitors rather than a strip of floor. */
  .hall{ min-height:clamp(320px,34vw,440px) }
  .office{ min-height:clamp(260px,28vw,360px) }
  .theatre{ min-height:clamp(240px,26vw,340px) }

  /* A faint line pattern over the stage. Two pixels on, two off: it
     reads as a screen rather than as a filter. */
  .stage::after{
    content:"";position:absolute;inset:0;pointer-events:none;z-index:2;
    background:repeating-linear-gradient(180deg,
      rgba(0,0,0,.16) 0 1px,transparent 1px 3px);
    mix-blend-mode:multiply;
  }

  /* ------------------------ game card art ------------------------ */

  .offer-art,.kindart,.startart{
    display:block;width:100%;height:auto;
    image-rendering:pixelated;
    border-bottom:2px solid var(--edge);
  }

  /* ---------------------------- chat ---------------------------- */

  .chat{ background:color-mix(in srgb,var(--ink-2) 86%,transparent) }
  .msgs .who{ font-family:var(--ui);font-size:var(--f0);color:var(--accent) }
  .bubbles li{
    border:2px solid var(--edge);
    background:color-mix(in srgb,var(--ink) 88%,transparent);
    box-shadow:var(--hard-sm);
  }

  /* ------------------------- the ladder ------------------------- */
  /* A bitmap face only lands on whole screen pixels at whole multiples
     of its grid, which here is a tenth of the size: 10, 20, 30, 40, 50
     and nothing in between. The layout underneath came from a typeface
     that could be any size, so it asked for 12.5px here and 14.5px
     there — and every one of those is a blurred letter.

     So everything is pushed onto the ladder. What wants to be smaller
     than 20px and is still a label goes to 10px; what wants to be
     smaller and is a sentence goes to the other face, which has no
     grid to miss. Nothing is left in between. */

  .offer-like,.seats,.tag,.fact,.when,.repo-meta,.kind small,
  .field > span,.setrow small,.hint,.knockstate,.roomrow small,
  .link span,.offer .seats,.card small,.offer-body small,
  .about .chip,.about .chip *,.steps small{
    font-size:var(--f0);
    letter-spacing:.06em;
  }

  .kind b,.offer h3,.lang,.steps li b,.roomrow b,.setrow output,
  .tok .nm,.seat .nm{
    font-size:var(--f1);
    letter-spacing:0;
  }

  /* Sentences, not labels: these read better in a face that is allowed
     to be any size at all. */
  .lede,.lead,.homenote,.offer-body p,.steps li span,
  .about a,.about .org,.about .repo,.msgs li,.bubbles li,
  .about p,.about blockquote,.about li,.sub,.note,.err,.gate-note{
    font-family:var(--read);
    -webkit-font-smoothing:antialiased;
  }
  .lede{ font-size:17px;line-height:1.6 }
  .offer-body p,.steps li span,.homenote{ font-size:15px;line-height:1.55 }

  /* --------------------------- the clock --------------------------- */
  /* It ticks in whole steps, because a bar that slides smoothly under a
     pixel drawing is the other thing that gives it away. */

  .meter .road,.meter i,.bar > i{
    transition:width .25s steps(10,end);
    image-rendering:pixelated;
  }
  .meter,.bar{ border:2px solid var(--edge);background:var(--ink-2) }

  /* --------------------------- lists --------------------------- */

  .roomrow,.knocks li,.people li{
    border:2px solid var(--edge);
    background:var(--surface);
  }
  .roomrow:hover{ border-color:var(--accent) }

  /* ------------------------- small print ------------------------- */

  .fact small,.hint,.sub small,.faint,.knockstate,.door-hint{
    font-size:var(--f0);color:var(--faint);letter-spacing:0;
  }

  footer{ border-top:2px solid var(--edge);font-size:var(--f0);color:var(--faint) }

  /* Chips are labels, not prose, so they stay on the pixel face even
     inside a page whose paragraphs do not. Half a chip in one face and
     half in another is the kind of thing you cannot unsee. */
  .chip,.chip *,.tags *,.fact b,.fact small{
    font-family:var(--ui);
    -webkit-font-smoothing:none;
  }
  .about .chip,.about .chip *{ font-size:var(--f0) }

  /* ---------------------- çizim telefonu ---------------------- */
  /* The board is the page here, so it gets the room: as wide as the
     column allows, on the drawing's own 4:3, and scaled by whole
     numbers so a brush pixel stays a square. */

  #play-cizim{ min-height:clamp(420px,52vw,620px);padding:14px }
  /* Everything in this game is one column down the middle: a board, the
     thing you were handed, the chain being read. Letting the panels run
     the full width leaves a drawing marooned in the dark. */
  #play-cizim > .stack{
    display:flex;flex-direction:column;gap:12px;
    width:100%;max-width:620px;margin-inline:auto;
  }

  .cz-top{
    display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;
    padding:10px 14px;border:2px solid var(--edge);background:var(--surface);
    box-shadow:var(--hard-sm);
  }
  .cz-step{ font-size:var(--f0);color:var(--faint);letter-spacing:.08em }
  .cz-task{ font-size:var(--f1);color:var(--accent) }

  .cz-handed{
    width:100%;max-width:440px;margin-inline:auto;
    border:2px solid var(--edge);background:var(--ink-2);
    padding:12px 14px;box-shadow:var(--hard-sm);
    display:flex;flex-direction:column;gap:8px;align-items:center;
  }
  .cz-handed small{ font-size:var(--f0);color:var(--faint);letter-spacing:.08em;align-self:flex-start }
  .cz-handed-text{
    font-family:var(--read);font-size:19px;line-height:1.45;
    color:var(--text);text-align:center;padding:6px 0;
  }

  .cz-art{
    display:block;width:100%;max-width:340px;margin-inline:auto;
    aspect-ratio:4 / 3;image-rendering:pixelated;
    border:2px solid var(--edge);background:#F4F2EC;
  }

  .cz-write{ display:flex;gap:10px;flex-wrap:wrap }
  .cz-write input{ flex:1;min-width:0;font-family:var(--read);font-size:18px }

  .cz-draw{ display:flex;flex-direction:column;gap:10px;align-items:center }
  .cz-board{
    display:block;width:100%;max-width:576px;
    aspect-ratio:4 / 3;image-rendering:pixelated;
    border:2px solid var(--edge-2);background:#F4F2EC;
    box-shadow:var(--hard);
    cursor:crosshair;touch-action:none;
  }

  .cz-tools{
    display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center;
    width:100%;max-width:576px;
  }
  .cz-palet{ display:grid;grid-template-columns:repeat(8,1fr);gap:3px;flex:1;min-width:200px }
  .cz-renk{
    border:2px solid #0B0F17;height:26px;padding:0;cursor:pointer;
    box-shadow:0 2px 0 rgba(0,0,0,.5);
  }
  .cz-renk[aria-pressed="true"]{ outline:2px solid var(--text);outline-offset:1px }
  .cz-renk.silgi{ position:relative }
  .cz-renk.silgi::after{
    content:"";position:absolute;inset:6px;
    background:repeating-linear-gradient(45deg,#C8303E 0 2px,transparent 2px 5px);
  }

  .cz-brush{ display:flex;gap:4px }
  .cz-kalin{
    width:30px;height:30px;border:2px solid var(--edge);background:var(--raise);
    display:grid;place-items:center;cursor:pointer;
  }
  .cz-kalin i{ display:block;background:var(--text) }
  .cz-kalin[aria-pressed="true"]{ border-color:var(--accent);background:var(--edge) }

  .cz-acts{ display:flex;gap:8px;align-items:center }
  .btn[data-done="1"]{ background:var(--ok);border-color:var(--ok);color:#0B0F17 }

  /* The reading: one notebook, each step under the last, so the drift is
     the thing you are looking at. */
  .cz-read{ display:flex;flex-direction:column;gap:10px }
  /* While a notebook is being read there is no task and no step, so the
     bar that carries them goes away instead of sitting there empty. */
  #play-cizim[data-oku="1"] .cz-top{ display:none }
  .cz-read h3{ text-align:center }
  .cz-read h3{ font-size:var(--f1);color:var(--accent) }
  .cz-chain{ display:flex;flex-direction:column;gap:10px }
  .cz-ent{
    width:100%;max-width:440px;margin-inline:auto;
    border:2px solid var(--edge);background:var(--surface);
    box-shadow:var(--hard-sm);padding:10px 12px;
    display:flex;flex-direction:column;gap:6px;align-items:center;
    animation:cz-gel .24s steps(4,end) both;
  }
  .cz-ent > b{ font-size:var(--f0);color:var(--faint);letter-spacing:.08em;align-self:flex-start }
  .cz-ent p{ font-family:var(--read);font-size:19px;line-height:1.45;text-align:center }
  .cz-ent[data-tur="yazi"]{ border-left:4px solid var(--accent) }
  @keyframes cz-gel{ from{ opacity:0;transform:translateY(8px) } to{ opacity:1;transform:none } }

  .cz-people{ display:flex;flex-wrap:wrap;gap:8px;justify-content:center }
  .cz-people li{
    display:flex;align-items:center;gap:6px;
    border:2px solid var(--edge);background:var(--surface);
    padding:3px 8px 3px 3px;font-size:var(--f0);
  }
  .cz-people li[data-hazir="1"]{ border-color:var(--ok) }
  .cz-people li[data-off="1"]{ opacity:.45 }

  @media(max-width:700px){
    .cz-palet{ grid-template-columns:repeat(8,1fr);min-width:0 }
    .cz-tools{ gap:8px }
    .cz-acts{ width:100%;justify-content:space-between }
  }

  /* ---------------------- sahte sanatçı ---------------------- */

  #play-sahte{ min-height:clamp(420px,52vw,620px);padding:14px }
  #play-sahte > .stack{
    display:flex;flex-direction:column;gap:12px;
    width:100%;max-width:620px;margin-inline:auto;
  }

  .ss-top{
    display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;
    padding:10px 14px;border:2px solid var(--edge);background:var(--surface);
    box-shadow:var(--hard-sm);
  }
  .ss-el{ font-size:var(--f0);color:var(--faint);letter-spacing:.08em }
  .ss-kat{ font-size:var(--f1);color:var(--accent) }
  /* The word sits where everyone's eyes already are, and the one player
     who has not got it is told so in its place — plainly, because being
     the fake is the whole of their job and they must not miss it. */
  .ss-kelime{
    margin-left:auto;font-size:var(--f1);
    padding:2px 10px;border:2px solid var(--edge-2);background:var(--ink-2);
  }
  .ss-kelime[data-sahte="1"]{
    color:#0B0F17;background:var(--vampir);border-color:var(--vampir);
    letter-spacing:.06em;
  }

  .ss-turn{
    text-align:center;font-size:var(--f1);color:var(--dim);
    padding:6px 0;
  }
  .ss-turn[data-me="1"]{
    color:#0B0F17;background:var(--accent);
    border:2px solid #0B0F17;box-shadow:var(--hard-sm);
    animation:ss-vur 1.1s steps(2,end) infinite;
  }
  @keyframes ss-vur{ 0%,70%{ filter:none } 71%,100%{ filter:brightness(1.18) } }

  .ss-board{
    display:block;width:100%;max-width:576px;margin-inline:auto;
    aspect-ratio:4 / 3;image-rendering:pixelated;
    border:2px solid var(--edge-2);background:#F4F2EC;
    box-shadow:var(--hard);touch-action:none;
  }

  .ss-legend{ display:flex;flex-wrap:wrap;gap:6px;justify-content:center }
  .ss-legend li{
    display:flex;align-items:center;gap:5px;
    border:2px solid var(--edge);background:var(--surface);
    padding:2px 7px;font-size:var(--f0);
  }
  .ss-legend li i{ width:10px;height:10px;display:block;border:1px solid #0B0F17 }
  .ss-legend li[data-sira="1"]{ border-color:var(--accent) }
  .ss-legend li[data-off="1"]{ opacity:.45 }

  .ss-vote,.ss-guess,.ss-reveal{
    border:2px solid var(--edge);background:var(--surface);
    box-shadow:var(--hard-sm);padding:12px 14px;
    display:flex;flex-direction:column;gap:10px;
  }
  .ss-vote > p,.ss-guess > p{ font-size:var(--f1);color:var(--accent);text-align:center }
  .ss-votes{ display:flex;flex-wrap:wrap;gap:8px;justify-content:center }
  .ss-oy{
    display:flex;align-items:center;gap:6px;
    border:2px solid var(--edge-2);background:var(--raise);color:var(--text);
    padding:3px 10px 3px 3px;font-family:var(--ui);font-size:var(--f0);
    cursor:pointer;box-shadow:0 2px 0 #05070C;
  }
  .ss-oy[aria-pressed="true"]{ border-color:var(--accent);background:var(--edge) }
  .ss-oy[data-verdi="1"]::after{ content:"·";color:var(--ok) }
  .ss-oy:active{ transform:translateY(2px);box-shadow:none }

  .ss-guess-row{ display:flex;gap:8px }
  .ss-guess-row input{ flex:1;min-width:0;font-family:var(--read);font-size:18px }

  .ss-reveal h3{ font-size:var(--f2);color:var(--accent);text-align:center }
  .ss-who{ text-align:center;font-size:var(--f1) }
  .ss-guessed{ text-align:center;font-size:var(--f0);color:var(--faint) }
  .ss-guessed[data-ok="1"]{ color:var(--vampir) }
  .ss-score{ display:flex;flex-direction:column;gap:4px }
  .ss-score li{
    display:flex;align-items:center;gap:8px;
    border:2px solid var(--edge);background:var(--ink-2);padding:3px 8px 3px 3px;
    font-size:var(--f0);
  }
  .ss-score li b{ margin-left:auto;font-size:var(--f1);color:var(--text) }
  .ss-score li[data-sahte="1"]{ border-color:var(--vampir) }

  @media(max-width:700px){
    .ss-kelime{ margin-left:0;width:100% ;text-align:center }
  }

  /* ----------------------- kim demiş ----------------------- */

  /* The club is the room, so the game runs as a column down the middle of
     it and the picture is seen on either side. */
  #play-demis{ min-height:clamp(420px,44vw,580px);padding-bottom:clamp(30px,6vw,70px) }
  #play-demis > .stack > *{ max-width:680px;margin-inline:auto;width:100% }

  .km-top{
    display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;
    padding:10px 14px;border:2px solid var(--edge);background:var(--surface);
    box-shadow:var(--hard-sm);font-size:var(--f0);
  }
  .km-el{ color:var(--accent);letter-spacing:.08em }
  .km-faz{ margin-left:auto;color:var(--faint) }

  .km-head{ text-align:center;font-size:var(--f1);color:var(--dim) }

  /* Writing. Two cards, because two is how many prompts you have; the
     prompt itself is set in the reading face, since it is a sentence. */
  .km-kartlar{ display:grid;gap:12px }
  .km-kart{
    display:grid;gap:8px;padding:12px 14px;
    border:2px solid var(--edge);background:var(--surface);box-shadow:var(--hard-sm);
  }
  .km-kart[data-dolu="1"]{ border-color:var(--ok) }
  .km-kart .km-q{
    font-family:var(--read);font-size:1.05rem;line-height:1.35;color:var(--text);
  }
  .km-kart input{ width:100% }
  .km-alt{ display:flex;align-items:center;gap:8px;font-size:var(--f0);color:var(--faint) }
  .km-sayac{ margin-left:auto;font-variant-numeric:tabular-nums }
  .km-kayit{ color:var(--ok);opacity:0;transition:opacity .2s steps(2,end) }
  .km-kart[data-dolu="1"] .km-kayit{ opacity:1 }

  /* The floor. The prompt is the loudest thing on the page, because the
     two answers only make sense underneath it. */
  .km-soru{
    text-align:center;font-family:var(--read);font-size:clamp(1.1rem,2.6vw,1.5rem);
    line-height:1.3;color:var(--accent);
    padding:14px 16px;border:2px solid var(--accent);background:var(--ink-2);
    box-shadow:var(--hard);
  }
  .km-kutular{ display:grid;gap:12px;grid-template-columns:1fr 1fr }
  .km-kutu{
    display:grid;gap:8px;align-content:start;min-height:96px;
    padding:14px;text-align:left;cursor:pointer;
    border:2px solid var(--edge-2);background:var(--surface);color:var(--text);
    box-shadow:var(--hard-sm);
    transition:transform .08s steps(2,end),border-color .12s steps(2,end);
  }
  .km-kutu:hover:not(:disabled){ border-color:var(--accent) }
  .km-kutu:active:not(:disabled){ transform:translate(2px,2px);box-shadow:none }
  .km-kutu[aria-pressed="true"]{ border-color:var(--accent);box-shadow:0 0 0 2px var(--accent) }
  .km-kutu:disabled{ cursor:default }
  .km-kutu .km-metin{ font-family:var(--read);font-size:1.05rem;line-height:1.35 }
  .km-kutu[data-bos="1"] .km-metin{ color:var(--faint);font-style:italic }
  /* Your own answer, while you cannot vote for it. */
  .km-kutu[data-benim="1"]{ border-style:dashed }
  .km-kutu .km-kim{
    display:flex;align-items:center;gap:6px;flex-wrap:wrap;
    font-size:var(--f0);color:var(--faint);
  }
  .km-kutu .km-kim b{ color:var(--text) }
  .km-oylar{ display:flex;flex-wrap:wrap;gap:4px;list-style:none }
  .km-oylar li{
    font-size:var(--f0);padding:1px 6px;
    border:2px solid var(--edge);background:var(--ink-2);color:var(--dim);
  }
  .km-tam{
    font-size:var(--f0);padding:1px 7px;letter-spacing:.06em;
    background:var(--accent);color:#0B0F17;border:2px solid #0B0F17;
  }

  .km-puan{
    padding:12px 16px;text-align:center;
    border:2px solid var(--accent);background:var(--ink-2);box-shadow:var(--hard);
  }
  .km-puan h3{ font-size:var(--f2);color:var(--accent) }
  .km-puan ul{ display:grid;gap:6px;margin-top:10px;list-style:none }
  .km-puan li{
    display:flex;align-items:center;gap:10px;
    padding:4px 10px;border:2px solid var(--edge);background:var(--surface);
    font-size:var(--f0);
  }
  .km-puan li b{ margin-left:auto;font-size:var(--f1);color:var(--text) }

  .km-masa{ display:flex;flex-wrap:wrap;gap:6px;justify-content:center;list-style:none }
  .km-masa li{
    display:flex;align-items:center;gap:6px;
    padding:2px 8px;border:2px solid var(--edge);background:var(--surface);
    font-size:var(--f0);
  }
  .km-masa li[data-hazir="1"]{ border-color:var(--ok) }
  .km-masa li[data-off="1"]{ opacity:.45 }

  @media(max-width:700px){
    .km-kutular{ grid-template-columns:1fr }
    .km-faz{ margin-left:0 }
  }

  /* ----------------------- casus ----------------------- */

  /* The one accent on the site that is not a colour. Nine games own a
     saturated hue each and the tenth owns paper — which suits a game
     whose whole furniture is a file, a board and a list. */
  #play-casus{ min-height:clamp(420px,44vw,580px);padding-bottom:clamp(30px,6vw,70px) }
  #play-casus > .stack > *{ max-width:700px;margin-inline:auto;width:100% }

  .cs-top{
    display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;
    padding:10px 14px;border:2px solid var(--edge);background:var(--surface);
    box-shadow:var(--hard-sm);font-size:var(--f0);
  }
  .cs-el{ color:var(--accent);letter-spacing:.08em }
  .cs-faz{ margin-left:auto;color:var(--faint) }

  /* Your card. It is the thing you look at every time somebody asks you
     something, so it is big and it does not move. */
  .cs-kimlik{
    display:grid;gap:4px;justify-items:center;text-align:center;
    padding:14px 16px;border:2px solid var(--accent);background:var(--ink-2);
    box-shadow:var(--hard);
  }
  .cs-mekan{ font-size:var(--f3);color:var(--accent);line-height:1.1 }
  .cs-rol{ font-size:var(--f1);color:var(--dim) }
  .cs-rol b{ color:var(--text) }
  .cs-kimlik[data-casus="1"]{ border-color:var(--vampir) }
  .cs-kimlik[data-casus="1"] .cs-mekan{ color:var(--vampir);letter-spacing:.08em }

  .cs-head{ text-align:center;font-size:var(--f1);color:var(--dim) }
  .cs-head[data-me="1"]{
    color:#0B0F17;background:var(--accent);
    border:2px solid #0B0F17;box-shadow:var(--hard-sm);padding:6px 0;
  }

  .cs-masa{ display:grid;gap:6px;list-style:none }
  .cs-masa > li{
    display:flex;align-items:center;gap:10px;flex-wrap:wrap;
    padding:6px 10px;border:2px solid var(--edge);background:var(--surface);
  }
  .cs-masa .cs-ad{ font-size:var(--f1) }
  .cs-masa .cs-dugme{ margin-left:auto;display:flex;gap:6px;flex-wrap:wrap }
  .cs-masa > li[data-sirada="1"]{ border-color:var(--accent);box-shadow:var(--hard-sm) }
  .cs-masa > li[data-off="1"]{ opacity:.45 }
  .cs-masa > li[data-ben="1"] .cs-ad{ color:var(--accent) }
  .cs-rozet{
    font-size:var(--f0);padding:1px 7px;border:2px solid var(--edge-2);color:var(--faint);
  }
  .cs-rozet[data-tip="casus"]{ background:var(--vampir);color:#0B0F17;border-color:#0B0F17 }
  .cs-rozet[data-tip="verdi"]{ border-color:var(--ok);color:var(--ok) }

  .cs-oylama{
    display:grid;gap:10px;justify-items:center;text-align:center;
    padding:14px 16px;border:2px solid var(--vampir);background:var(--ink-2);
    box-shadow:var(--hard);
  }
  .cs-oylama h3{ font-size:var(--f2);color:var(--vampir) }
  .cs-oylama p{ font-size:var(--f1);color:var(--dim) }
  .cs-evethayir{ display:flex;gap:10px;flex-wrap:wrap;justify-content:center }

  #cs-ac{ justify-self:center;max-width:320px }

  /* The fifty. A list this long has to be scannable rather than read, so
     it is a dense grid in the small label face and nothing else. */
  .cs-liste{
    padding:10px 12px;border:2px solid var(--edge);background:var(--surface);
  }
  .cs-liste-head{ font-size:var(--f0);color:var(--faint);margin-bottom:8px;text-align:center }
  .cs-mekanlar{
    display:grid;gap:4px;list-style:none;
    grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  }
  .cs-mekanlar li{ display:flex }
  .cs-mekanlar button,.cs-mekanlar span{
    flex:1;text-align:left;font-size:var(--f0);line-height:1.5;
    padding:2px 7px;border:2px solid transparent;background:var(--ink-2);
    color:var(--dim);font-family:var(--ui);
  }
  .cs-mekanlar button{ cursor:pointer }
  .cs-mekanlar button:hover{ border-color:var(--accent);color:var(--text) }
  /* Crossing one off is a per-viewer scribble: it is kept in this
     browser and never sent anywhere, because it is a guess, not a move. */
  .cs-mekanlar [data-cizik="1"]{ opacity:.4;text-decoration:line-through }

  .cs-puan{
    padding:12px 16px;text-align:center;
    border:2px solid var(--accent);background:var(--ink-2);box-shadow:var(--hard);
  }
  .cs-puan h3{ font-size:var(--f2);color:var(--accent) }
  .cs-puan .cs-neden{ font-size:var(--f1);color:var(--dim);margin-top:4px }
  .cs-puan ul{ display:grid;gap:6px;margin-top:10px;list-style:none }
  .cs-puan li{
    display:flex;align-items:center;gap:10px;
    padding:4px 10px;border:2px solid var(--edge);background:var(--surface);
    font-size:var(--f0);
  }
  .cs-puan li[data-casus="1"]{ border-color:var(--vampir) }
  .cs-puan li .cs-rol2{ color:var(--faint) }
  .cs-puan li b{ margin-left:auto;font-size:var(--f1);color:var(--text) }

  @media(max-width:700px){
    .cs-faz{ margin-left:0 }
    .cs-masa .cs-dugme{ margin-left:0;width:100% }
    .cs-mekanlar{ grid-template-columns:repeat(auto-fill,minmax(130px,1fr)) }
  }

  /* ----------------------- sahte cevap ----------------------- */

  #play-cevap{ min-height:clamp(420px,44vw,580px);padding-bottom:clamp(30px,6vw,70px) }
  #play-cevap > .stack > *{ max-width:680px;margin-inline:auto;width:100% }

  .sc-top{
    display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;
    padding:10px 14px;border:2px solid var(--edge);background:var(--surface);
    box-shadow:var(--hard-sm);font-size:var(--f0);
  }
  .sc-el{ color:var(--accent);letter-spacing:.08em }
  .sc-faz{ margin-left:auto;color:var(--faint) }

  /* The question stays on screen for the whole round, because every line
     in the pile is read against it. */
  .sc-soru{
    text-align:center;font-family:var(--read);font-size:clamp(1.05rem,2.5vw,1.4rem);
    line-height:1.3;color:var(--accent);
    padding:14px 16px;border:2px solid var(--accent);background:var(--ink-2);
    box-shadow:var(--hard);
  }

  .sc-yazma{
    display:grid;gap:8px;padding:12px 14px;
    border:2px solid var(--edge);background:var(--surface);box-shadow:var(--hard-sm);
  }
  .sc-yazma label{ font-size:var(--f0);color:var(--faint) }
  .sc-yazma[data-dolu="1"]{ border-color:var(--ok) }
  .sc-alt{ display:flex;align-items:center;gap:8px;font-size:var(--f0) }
  /* Typing the real answer is not an error, so it is not in the error
     colour: it is the one moment the game congratulates you. */
  .sc-uyari{ color:var(--ok) }
  .sc-sayac{ margin-left:auto;color:var(--faint);font-variant-numeric:tabular-nums }

  .sc-yigin{ display:grid;gap:8px }
  .sc-kutu{
    display:grid;gap:6px;padding:12px 14px;text-align:left;
    border:2px solid var(--edge-2);background:var(--surface);color:var(--text);
    box-shadow:var(--hard-sm);cursor:pointer;
    transition:transform .08s steps(2,end),border-color .12s steps(2,end);
  }
  .sc-kutu:hover:not(:disabled){ border-color:var(--accent) }
  .sc-kutu:active:not(:disabled){ transform:translate(2px,2px);box-shadow:none }
  .sc-kutu[aria-pressed="true"]{ border-color:var(--accent);box-shadow:0 0 0 2px var(--accent) }
  .sc-kutu:disabled{ cursor:default }
  .sc-kutu .sc-metin{ font-family:var(--read);font-size:1.05rem;line-height:1.35 }
  /* Your own line, which you cannot pick. */
  .sc-kutu[data-benim="1"]{ border-style:dashed;opacity:.72 }
  .sc-kutu[data-gercek="1"]{ border-color:var(--ok);box-shadow:0 0 0 2px var(--ok) }
  .sc-alt2{ display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:var(--f0) }
  .sc-rozet{
    padding:1px 7px;letter-spacing:.06em;border:2px solid #0B0F17;
    background:var(--ok);color:#0B0F17;
  }
  .sc-yazar{ color:var(--faint) }
  .sc-yazar b{ color:var(--text) }
  .sc-kanan{ display:flex;flex-wrap:wrap;gap:4px;list-style:none }
  .sc-kanan li{
    padding:1px 6px;border:2px solid var(--edge);background:var(--ink-2);color:var(--dim);
  }

  .sc-head{ text-align:center;font-size:var(--f1);color:var(--dim) }

  .sc-puan{
    padding:12px 16px;text-align:center;
    border:2px solid var(--accent);background:var(--ink-2);box-shadow:var(--hard);
  }
  .sc-puan h3{ font-size:var(--f2);color:var(--accent) }
  .sc-puan ul{ display:grid;gap:6px;margin-top:10px;list-style:none }
  .sc-puan li{
    display:flex;align-items:center;gap:10px;
    padding:4px 10px;border:2px solid var(--edge);background:var(--surface);
    font-size:var(--f0);
  }
  .sc-puan li b{ margin-left:auto;font-size:var(--f1);color:var(--text) }
  .sc-bildi{ color:var(--ok) }

  .sc-masa{ display:flex;flex-wrap:wrap;gap:6px;justify-content:center;list-style:none }
  .sc-masa li{
    display:flex;align-items:center;gap:6px;
    padding:2px 8px;border:2px solid var(--edge);background:var(--surface);
    font-size:var(--f0);
  }
  .sc-masa li[data-hazir="1"]{ border-color:var(--ok) }
  .sc-masa li[data-off="1"]{ opacity:.45 }

  @media(max-width:700px){ .sc-faz{ margin-left:0 } }

  /* A spectator has no hand, no role and no turn, so every box that was
     built to say "this is yours" has nothing to put in it. Rather than
     teaching twelve renderers about watching, the boxes go: anything that
     takes typing in a match belongs to a player, and so do the two role
     cards and the per-game "yours" panels. */
  #room[data-izliyor="1"] [id^="play-"] form,
  #room[data-izliyor="1"] [id^="play-"] input,
  #room[data-izliyor="1"] [id^="play-"] textarea,
  #room[data-izliyor="1"] #rolebox,
  #room[data-izliyor="1"] #fe-rolebox,
  #room[data-izliyor="1"] .cs-kimlik,
  #room[data-izliyor="1"] .ss-kelime,
  #room[data-izliyor="1"] .km-kartlar,
  #room[data-izliyor="1"] #bl-elim{ display:none !important }

  /* ----------------------- kartlar ----------------------- */

  /* One card, drawn by kart.js and scaled by nearest neighbour. The size
     is a variable because a hand of thirteen on a phone and a pile of
     four on a desktop want different ones, and because Batak will want a
     third. Nothing here knows which game it is in. */
  .kart{
    --kw:66px;
    width:var(--kw);height:calc(var(--kw) * 62 / 44);
    flex:0 0 auto;display:block;padding:0;border:0;background:none;
    background-size:100% 100%;background-repeat:no-repeat;
    image-rendering:pixelated;
    filter:drop-shadow(2px 2px 0 rgba(0,0,0,.45));
  }
  .kart.kucuk{ --kw:44px }
  .kart.buyuk{ --kw:88px }

  /* ----------------------- blöf ----------------------- */

  #play-blof{ min-height:clamp(440px,46vw,620px);padding-bottom:clamp(20px,4vw,50px) }
  #play-blof > .stack > *{ max-width:720px;margin-inline:auto;width:100% }

  .bl-top{
    display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;
    padding:10px 14px;border:2px solid var(--edge);background:var(--surface);
    box-shadow:var(--hard-sm);font-size:var(--f0);
  }
  .bl-el{ color:var(--accent);letter-spacing:.08em }
  .bl-deste{ color:var(--faint) }
  .bl-faz{ margin-left:auto;color:var(--dim) }

  /* The table. Players sit on a circle, the pile is in the middle, and
     the turn goes round clockwise — which is the rule, drawn. */
  .bl-daire{
    position:relative;aspect-ratio:1 / .82;width:100%;max-width:340px;
    margin-inline:auto;
  }
  .bl-daire::before{
    content:"";position:absolute;inset:14% 12%;
    border:2px dashed var(--edge-2);border-radius:50%;
    background:radial-gradient(circle at 50% 45%,
      color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
  }
  .bl-kisi{
    position:absolute;transform:translate(-50%,-50%);
    display:grid;justify-items:center;gap:2px;width:84px;
    padding:4px 2px;border:2px solid var(--edge);background:var(--surface);
    font-size:var(--f0);text-align:center;
  }
  .bl-kisi .bl-ad{
    max-width:76px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  }
  .bl-kisi .bl-adet{
    display:flex;align-items:center;gap:4px;color:var(--accent);
  }
  .bl-kisi .bl-adet i{
    width:8px;height:11px;display:block;
    border:1px solid var(--edge-2);background:var(--ink-2);
  }
  .bl-kisi[data-sirada="1"]{
    border-color:var(--accent);box-shadow:0 0 0 2px var(--accent);
  }
  .bl-kisi[data-atan="1"]{ border-color:var(--isim) }
  .bl-kisi[data-ben="1"] .bl-ad{ color:var(--accent) }
  .bl-kisi[data-off="1"]{ opacity:.45 }
  .bl-kisi[data-bitti="1"]{ opacity:.55;border-style:dashed }

  /* The arrow between two seats: the direction of play, drawn. A
     triangle built from borders stays a triangle at any rotation. */
  .bl-ok{
    position:absolute;width:0;height:0;pointer-events:none;opacity:.75;
    border-left:9px solid var(--accent);
    border-top:6px solid transparent;border-bottom:6px solid transparent;
  }

  .bl-orta{
    position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
    display:grid;justify-items:center;gap:6px;width:62%;text-align:center;
  }
  .bl-pasa{ display:grid;justify-items:center;gap:4px }
  .bl-pasa .yigin{
    position:relative;width:52px;height:30px;
  }
  .bl-pasa .yigin span{
    position:absolute;left:50%;top:0;transform:translateX(-50%);
    width:30px;height:42px;background-size:100% 100%;
    image-rendering:pixelated;
    filter:drop-shadow(1px 1px 0 rgba(0,0,0,.5));
  }
  .bl-pasa b{ font-size:var(--f1);color:var(--accent) }
  .bl-iddia{ font-size:var(--f0);color:var(--dim);line-height:1.5 }
  .bl-iddia b{ color:var(--text) }

  .bl-acilis{
    display:grid;gap:10px;justify-items:center;text-align:center;
    padding:12px 16px;border:2px solid var(--accent);background:var(--ink-2);
    box-shadow:var(--hard);
    animation:bl-ac .22s steps(3,end) both;
  }
  @keyframes bl-ac{ from{ transform:translateY(-6px);filter:brightness(1.5) } to{ transform:none } }
  .bl-acilis h3{ font-size:var(--f2) }
  .bl-acilis[data-dogru="1"] h3{ color:var(--ok) }
  .bl-acilis[data-dogru="0"] h3{ color:var(--vampir) }
  .bl-acilis p{ font-size:var(--f1);color:var(--dim) }
  .bl-acik-kartlar{ display:flex;gap:8px;flex-wrap:wrap;justify-content:center;list-style:none }

  /* The hand. Thirteen cards have to fit on a phone, so they overlap and
     the one you are holding lifts clear of its neighbours. */
  .bl-elim{
    display:grid;gap:8px;justify-items:center;
    padding:10px 12px 14px;
    border:2px solid var(--edge);background:var(--surface);box-shadow:var(--hard-sm);
  }
  .bl-elim-head{ font-size:var(--f0);color:var(--faint) }
  .bl-kartlar{
    display:flex;flex-wrap:nowrap;justify-content:center;list-style:none;
    padding:12px 10px 4px;overflow-x:auto;scrollbar-width:thin;
  }
  .bl-kartlar li{ flex:0 0 auto }
  /* In a fan the cards overlap left to right, so the shadow that
     separates one from the next belongs on the left edge — the usual
     one falls under the card on top and the hand reads as one white
     block. */
  .bl-kartlar .kart{ filter:drop-shadow(-2px 1px 0 rgba(0,0,0,.45)) }
  .bl-kartlar li:first-child .kart{ filter:drop-shadow(2px 2px 0 rgba(0,0,0,.45)) }
  .bl-kartlar li{ margin-left:-26px }
  .bl-kartlar li:first-child{ margin-left:0 }
  .bl-kartlar .kart{ cursor:pointer;transition:transform .08s steps(2,end) }
  .bl-kartlar .kart:hover{ transform:translateY(-6px) }
  .bl-kartlar .kart[aria-pressed="true"]{
    transform:translateY(-14px);
    outline:2px solid var(--accent);outline-offset:1px;
  }

  .bl-hamle{
    display:grid;gap:10px;justify-items:center;width:100%;
    padding-top:6px;border-top:2px solid var(--edge);
  }
  .bl-ne{ display:grid;gap:6px;justify-items:center;width:100% }
  .bl-ne span{ font-size:var(--f0);color:var(--faint) }
  /* Thirteen ranks have to be reachable with a thumb, so they scroll. */
  .bl-sayilar{
    display:flex;gap:4px;list-style:none;max-width:100%;
    overflow-x:auto;padding-bottom:4px;
  }
  .bl-sayilar button{
    width:30px;height:38px;flex:0 0 auto;font-family:var(--ui);
    font-size:var(--f1);line-height:1;cursor:pointer;
    background:#F2EFE6;color:#1A181E;border:2px solid #1A181E;
  }
  .bl-sayilar button[aria-pressed="true"]{
    box-shadow:0 0 0 2px var(--accent);transform:translateY(-2px);
  }
  #bl-ac{ border-color:var(--vampir);color:var(--vampir) }
  #bl-ac:hover{ background:var(--vampir);color:#0B0F17 }

  .bl-puan{
    padding:12px 16px;text-align:center;
    border:2px solid var(--accent);background:var(--ink-2);box-shadow:var(--hard);
  }
  .bl-puan h3{ font-size:var(--f2);color:var(--accent) }
  .bl-puan ul{ display:grid;gap:6px;margin-top:10px;list-style:none }
  .bl-puan li{
    display:flex;align-items:center;gap:10px;
    padding:4px 10px;border:2px solid var(--edge);background:var(--surface);
    font-size:var(--f0);
  }
  .bl-puan li b{ margin-left:auto;font-size:var(--f1);color:var(--text) }

  @media(max-width:700px){
    .kart{ --kw:52px }
    .kart.kucuk{ --kw:34px }
    .bl-faz{ margin-left:0 }
    .bl-kartlar li{ margin-left:-28px }
    .bl-kisi{ width:70px;font-size:var(--f0) }
    .bl-daire{ max-width:330px }
  }

  /* ----------------------- şeritler ----------------------- */

  /* Two bands that sit above everything in the room and say something the
     game itself cannot: the server is going down after this match, or you
     are here without a chair. Both are states nobody in the room caused
     and nobody in the room can fix, so they are stated plainly and they
     do not blink. */
  .serit{
    position:sticky;top:0;z-index:40;
    display:flex;align-items:center;gap:10px;justify-content:center;
    padding:7px 14px;font-size:var(--f0);line-height:1.5;text-align:center;
    background:var(--isim);color:#0B0F17;
    border-bottom:2px solid #0B0F17;
  }
  .serit.izle{ background:var(--fesat) }
  .serit b{ letter-spacing:.06em }

  /* A spectator's own line in the room list, and the list of them. */
  .izleyiciler{ display:grid;gap:4px;list-style:none;margin-top:8px }
  .izleyiciler li{
    display:flex;align-items:center;gap:8px;
    padding:3px 8px;border:2px dashed var(--edge-2);background:var(--ink-2);
    font-size:var(--f0);color:var(--dim);
  }
  .izleyiciler li[data-off="1"]{ opacity:.45 }
  .izleyici-baslik{ font-size:var(--f0);color:var(--faint);margin-top:10px }

  /* ------------------- things nobody was told about ------------------- */

  /* A short word in the corner, in the site's own face, and then gone. */
  .mujde{
    position:fixed;left:50%;bottom:22px;transform:translateX(-50%);
    z-index:90;pointer-events:none;
    font-family:var(--ui);font-size:var(--f1);
    color:#0B0F17;background:var(--accent);
    border:2px solid #0B0F17;
    box-shadow:var(--hard);
    padding:8px 16px;
    animation:mujde-gel .2s steps(3,end) both;
  }
  .mujde.git{ animation:mujde-git .35s steps(4,end) both }
  @keyframes mujde-gel{ from{ transform:translate(-50%,16px);opacity:0 } to{ transform:translate(-50%,0);opacity:1 } }
  @keyframes mujde-git{ to{ transform:translate(-50%,-10px);opacity:0 } }

  /* Party mode: confetti over everything and the accent going round the
     six games one after another. The hats are drawn, not styled. */
  .konfeti{
    display:none;position:fixed;inset:-100px 0 -40px;z-index:70;pointer-events:none;
    background-image:var(--konfeti),var(--konfeti);
    background-size:256px 256px,384px 384px;
    image-rendering:pixelated;
    opacity:.85;
  }
  html[data-parti="1"] .konfeti{
    display:block;
    animation:konfeti-1 2.6s linear infinite;
  }
  @keyframes konfeti-1{ to{ background-position:34px 256px,-48px 384px } }
  html[data-parti="1"]{ animation:parti-renk 7.2s steps(1,end) infinite }
  @keyframes parti-renk{
    0%   { --accent:#FF4D5E }
    17%  { --accent:#FFB224 }
    34%  { --accent:#3DDC97 }
    50%  { --accent:#22D3EE }
    67%  { --accent:#FF5CC8 }
    84%  { --accent:#FF8A3D }
  }

  /* The shower: the same streak as the idle one, but seven of them and
     in a hurry. */
  .wall .yagmur{
    position:absolute;left:-10%;width:30px;height:2px;
    background:linear-gradient(90deg,transparent,#CFE0FF 55%,#FFFFFF);
    opacity:0;
    animation:kayan-hizli 1.9s cubic-bezier(.25,.6,.4,1) 3;
  }
  @keyframes kayan-hizli{
    0%  { transform:translate3d(0,0,0);opacity:0 }
    8%  { opacity:1 }
    88% { opacity:1 }
    100%{ transform:translate3d(118vw,46vh,0);opacity:0 }
  }

  /* --------------------------- motion --------------------------- */

  .view[data-live="1"]{ animation:gir .22s steps(4,end) both }
  @keyframes gir{ from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }

  @media(prefers-reduced-motion:reduce){
    .wall,.wall::before,.wall::after,.wall i{ animation:none }
    .wall i{ display:none }
    .konfeti,html[data-parti="1"]{ animation:none }
    .mujde{ animation:none }
    .fig,.av{ animation:none }
    .link i{ animation:none }
    .view[data-live="1"]{ animation:none }
    .offer{ transition:none }
  }

  /* ----------------------- the hero's cards ----------------------- */
  /* Five face-down cards being dealt. The back is a hatch of hard stops
     rather than a gradient, so it stays a pattern and not a smear. */

  .deal .card{ border:2px solid var(--edge-2);box-shadow:var(--hard) }
  .deal .card::after{ display:none }
  .deal .face{ background:var(--ink-2) }
  .deal .face.back{
    background-color:#16202E;
    background-image:
      repeating-linear-gradient(45deg,#22314A 0 3px,transparent 3px 9px),
      repeating-linear-gradient(-45deg,#1B2838 0 3px,transparent 3px 9px);
    box-shadow:inset 0 0 0 2px #0C121B,inset 0 0 0 5px #22314A;
  }
  .deal .face.front{
    background:#1A0F16;
    color:var(--vampir);
    font-family:var(--ui);font-size:var(--f1);
    box-shadow:inset 0 0 0 2px var(--vampir);
  }

  /* --------------------------- phones --------------------------- */

  @media(max-width:700px){
    :root{ --f1:20px; --f2:30px; --f3:30px }
    body{ font-size:var(--f1) }
    .about p,.about li,.msgs li,.bubbles li,.lead,.sub{ font-size:16px }
    .fig{ --k:1 }
    .panel,.card,.offer{ box-shadow:var(--hard-sm) }
    .topbar{ gap:10px;padding-inline:12px }
  }

  /* The pixel face is wider than the one it replaced, and three tabs
     plus a full name no longer fit across a phone. The name is the part
     that can give way: on a narrow screen the mark is enough. */
  @media(max-width:560px){
    .brand{ font-size:0 }
    .brand::before{ content:"me";font-size:var(--f1) }
    .brand b{ font-size:var(--f1) }
    .tabs{ gap:8px }
    .topbar{ gap:8px;padding-inline:10px }
  }
}
