/* /css/base.css */
/* base.css — the site's look, in the order it was built up (later parts refine earlier ones). */

/* ======== Foundations: reset, tokens, layout ======== */
/* Guess Who — warm paper, forest ink, physical portraits. One source of truth. */
:root {
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --motion: 180ms ease;
  --portrait-ratio: 5 / 6;
}

body {
  margin: 0;
  
  
  font:
    500 16px/1.5 var(--font-body),
    "Segoe UI",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}


button:hover:not(:disabled) {
  filter: brightness(0.97);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.35;
  letter-spacing: -0.025em;
}
h2 {
  font-size: 1.3rem;
  line-height: 1.4;
}
h3 {
  font-size: 1.2rem;
}
em {
  font-style: normal;
  color: var(--accent);
}
small {
  font-size: 0.78rem;
}
img {
  max-width: 100%;
}
.hidden,
[hidden] {
  display: none !important;
}
.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: middle;
}
[data-icon] {
  display: inline-flex;
  align-items: center;
}
.eyebrow {
  display: block;
  
  
  
  
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  
  
  
  white-space: normal;
}
.btn:active:not(:disabled),
.pressed {
  transform: translateY(2px);
}



.text-btn {
  background: transparent;
  border: 0;
  
  padding: 8px 10px;
  font-weight: 700;
}


.icon-btn {
  display: grid;
  place-items: center;
  
  
  width: 40px;
  height: 40px;
  
  border-radius: 50%;
  flex: none;
}
.input,
.composer input {
  width: 100%;
  min-width: 0;
  
  
  
  
  
}
.input:focus,
.composer input:focus {
  border-color: var(--primary);
}
.masthead {
  
  
  margin: 0 auto;
  
  
  align-items: center;
  justify-content: space-between;
  
}
.brand {
  display: flex;
  align-items: center;
  
  border: 0;
  background: none;
  
  padding: 0;
  text-align: start;
}
.brand-mark {
  
  place-items: center;
  
  
  
  
  
  
  font-weight: 900;
  
}


.header-tools {
  display: flex;
  align-items: center;
  
  font-size: 0.7rem;
}
#connection-state {
  display: flex;
  align-items: center;
  gap: 6px;
}
#connection-state:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}
#connection-state.offline {
  color: var(--danger);
}
#connection-state.offline:before {
  background: var(--danger);
}
.screen {
  display: none;
  
  margin: 0 auto;
  padding: var(--space-5) var(--space-7) var(--space-7);
  min-width: 0;
}
.screen.active {
  display: block;
}
.menu-screen {
  position: relative;
  min-height: calc(100dvh - 88px);
  padding-top: var(--space-6);
}




























.bot-emblem {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  
  
}
.bot-emblem .icon {
  width: 26px;
  height: 26px;
}

.setup-screen.active {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  
  
  
}
.setup-story h2 {
  
  
  margin: var(--space-4) 0;
}

.setup-cards {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  
  direction: ltr;
}
.setup-cards img,
.mystery-card {
  
  
  object-fit: cover;
  
  
  box-shadow: var(--shadow-sm);
  transform: rotate(-7deg);
}
.setup-cards img:last-child,
.mystery-card {
  transform: rotate(7deg);
}
.setup-cards > span {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 900;
}

.setup-form {
  display: flex;
  flex-direction: column;
  
  
  border-block: 1px solid var(--border);
}

.setup-form h2 {
  
  margin-bottom: var(--space-2);
}
.setup-form label {
  
  font-weight: 700;
}

#join-code-field {
  display: grid;
  gap: var(--space-3);
}
.room-code-input {
  direction: ltr;
  letter-spacing: 0.2em;
  font-weight: 800;
}
.lobby-screen {
  text-align: center;
  
  
}

.lobby-heading p {
  color: var(--text-muted);
}
.player-readiness {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}
.lobby-seats {
  
  align-items: center;
  
}
.player-seat {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  
  
  
}
.seat-avatar {
  
  
  border-radius: 50%;
  display: grid;
  place-items: center;
  
  font-size: 2rem;
  font-weight: 800;
  position: relative;
}


.player-seat strong {
  font-size: 1.3rem;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.player-seat small {
  color: var(--text-muted);
}
.empty-seat .seat-avatar {
  border: 1px dashed var(--text-muted);
  background: transparent;
}
.empty-seat .icon {
  width: 28px;
  height: 28px;
}
.seat-vs {
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--accent);
}
.lobby-floor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  
  align-items: center;
  
  border-block: 1px solid var(--border);
  
}
.invite-ticket {
  border-inline-end: 1px dashed var(--border);
  padding-inline-end: var(--space-5);
}
.room-code-box {
  
  
  
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: 0.14em;
  direction: ltr;
  padding: var(--space-2);
}
.small-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}
.small-actions .btn {
  font-size: 0.75rem;
  padding: 8px;
}
.lobby-start {
  display: grid;
  gap: var(--space-3);
}
.lobby-start small,
.lobby-start p {
  color: var(--text-muted);
}

.match-score {
  
  
  justify-content: center;
  
  
}
.player-tag {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  
}
.player-tag strong {
  display: block;
  max-width: 200px;
  overflow-wrap: anywhere;
}
.player-tag small {
  color: var(--text-muted);
  display: block;
  font-size: 0.68rem;
}
.player-token {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--secondary);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
}
.opponent-tag {
  text-align: end;
}


.match-score > .btn {
  
  inset-inline-end: var(--space-7);
}








#turn-clock.urgent {
  color: var(--accent);
  animation: urgency 800ms ease infinite;
}
.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  
}

.board-utilities {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.board-utilities .btn {
  font-size: 0.75rem;
}
.remaining-chip {
  
  
  margin-inline-end: var(--space-3);
}
.remaining-chip b {
  
  direction: ltr;
  unicode-bidi: isolate;
}
.characters-board {
  display: grid;
  
  
}
.char-card,
.guess-card {
  
  
  
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  position: relative;
  
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.char-card {
  
  transition:
    transform var(--motion),
    opacity var(--motion),
    box-shadow var(--motion);
}
.char-avatar {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--surface-hover);
}
.char-avatar img,
.avatar-media img,
.revealed-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.char-name {
  display: block;
  position: absolute;
  
  
  width: fit-content;
  min-width: 40px;
  
  border-radius: 4px;
  
  font-weight: 800;
  
  box-shadow: var(--shadow-sm);
}


.char-card.eliminated img {
  filter: grayscale(1);
}
.card-dismiss {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  
}
.card-dismiss .icon {
  
  
  
  
  
  border-radius: 50%;
}
.eliminated .card-dismiss {
  display: grid;
}


.secret-avatar {
  
  
  border: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  overflow: hidden;
  
  flex: none;
}
.avatar-media {
  display: block;
  width: 100%;
  height: 100%;
}



.dock-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.dock-actions .btn {
  min-width: 180px;
}
.space-hint {
  text-align: center;
  font-size: 0.6rem;
  color: var(--text-muted);
  
  margin-top: 4px;
}
kbd {
  font-family: inherit;
  font-size: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 4px;
}
.solo-heading {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  
  
}

.solo-secret {
  margin-inline-start: auto;
  
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.bot-companion {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  
  margin-top: var(--space-5);
  
  
}

.companion-prompt small {
  display: block;
  color: var(--text-muted);
  margin: 6px 0;
}
.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.quick-question {
  
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 5px 10px;
  font-size: 0.7rem;
}

.companion-conversation {
  min-width: 0;
}
.chat-log {
  height: 80px;
  overflow: auto;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-2);
}
.chat-msg {
  padding: 4px 0;
  overflow-wrap: anywhere;
}
.chat-msg.system {
  color: var(--text-muted);
}
.question-group {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid var(--border);
}
.question-group small {
  display: none;
}
.question-group strong {
  grid-column: 2;
  grid-row: 1;
}
.positive {
  color: var(--success);
}
.negative {
  color: var(--danger);
}
.composer {
  display: flex;
  gap: var(--space-2);
}

.composer .btn {
  padding: 10px 14px;
}
.companion-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
}

.modal {
  position: fixed;
  inset: 0;
  
  
  
  
  
  
}
.modal-card {
  
  
  overflow: auto;
  
  
  
  
  
}

.guess-filter {
  justify-content: flex-start;
  
}
.guess-grid {
  display: grid;
  
  
}

.guess-card:hover {
  outline: 3px solid var(--accent);
  outline-offset: 0;
}
.confirm-card,
.result-card {
  width: min(520px, 100%);
  text-align: center;
}
.confirm-avatar,
.solo-reveal {
  width: 100px;
  height: 130px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin: 0 auto var(--space-4);
  box-shadow: var(--shadow-md);
}
.confirm-card p,
.result-card > p {
  color: var(--text-muted);
  margin: var(--space-3) 0;
}
.result-icon {
  
  
  
  
  
  
  
  
  animation: arrive 220ms ease;
}

.revealed-chars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  grid-column: 1;
  grid-row: 1/5;
  
  padding: var(--space-4);
  border-radius: var(--radius-md);
}
.revealed-chars .revealed-portrait {
  width: 130px;
  height: 180px;
}
.revealed-chars p,
.revealed-chars small {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.result-card:has(.revealed-chars) {
  width: min(640px, 100%);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-3) var(--space-5);
  align-items: center;
}
.result-card:has(.revealed-chars) > .result-icon {
  grid-column: 2;
  margin-bottom: 0;
}
.result-card:has(.revealed-chars) > .eyebrow,
.result-card:has(.revealed-chars) > h2,
.result-card:has(.revealed-chars) > p {
  grid-column: 2;
}
.result-card:has(.revealed-chars) > .result-stats,
.result-card:has(.revealed-chars) > .player-readiness,
.result-card:has(.revealed-chars) > .result-actions {
  grid-column: 1/-1;
}

.revealed-portrait {
  display: block;
  width: 95px;
  height: 120px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin: auto auto var(--space-2);
}
.result-stats {
  
  
  
  border-block: 1px solid var(--border);
  margin: var(--space-4) 0;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}
.result-card .player-readiness {
  margin: var(--space-3) 0;
  font-size: 0.7rem;
}
.result-card .player-seat {
  padding: var(--space-2);
  gap: 4px;
  border: 0;
}
.result-card .seat-avatar {
  display: none;
}
.result-card .player-seat strong {
  font-size: 0.85rem;
}
.countdown {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  
}


.toast {
  position: fixed;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  
  width: max-content;
  
  
  
  
  padding: 12px 24px;
  
  
  
}
.avatar-fallback {
  display: grid;
  place-items: center;
  min-height: 100%;
  background: var(--secondary);
  font-size: 2rem;
}
body:has(.modal:not(.hidden)) {
  overflow: hidden;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes countbeat {
  from {
    transform: scale(0.85);
    opacity: 0.5;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes urgency {
  50% {
    opacity: 0.6;
  }
}

@media (min-width: 601px) and (max-height: 850px) {
  .menu-screen {
    padding-top: 8px;
    padding-bottom: 16px;
  }
  
  
  
  
  
  
  
  
  
}


@media (max-width: 1000px) {
  
  .screen {
    padding-inline: var(--space-5);
  }
  
  
  
  
  
  
  
  .bot-companion {
    grid-template-columns: 1fr 1.2fr;
  }
  .companion-actions {
    grid-column: 1/-1;
    flex-direction: row;
  }
  
  .solo-secret {
    max-width: 180px;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 14px;
  }
  
  
  
  
  
  .header-tools .icon {
    width: 18px;
    height: 18px;
  }
  #connection-state {
    font-size: 0.6rem;
  }
  .screen {
    padding: var(--space-4);
    padding-bottom: var(--space-5);
  }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  .setup-screen.active {
    grid-template-columns: 1fr;
    
    
  }
  .setup-story h2 {
    
    margin: var(--space-2) 0;
  }
  
  .setup-cards {
    display: none;
  }
  
  
  
  
  .seat-avatar {
    
    
    font-size: 1.5rem;
  }
  .player-seat strong {
    font-size: 1rem;
  }
  .player-seat small {
    font-size: 0.65rem;
  }
  .lobby-floor {
    grid-template-columns: 1fr;
    
  }
  .invite-ticket {
    border-inline-end: 0;
    border-bottom: 1px dashed var(--border);
    padding: 0 0 var(--space-4);
  }
  .match-score {
    
    justify-content: space-between;
  }
  .player-tag {
    
    gap: 6px;
  }
  .player-tag strong {
    font-size: 0.8rem;
    max-width: 85px;
  }
  .player-token {
    display: none;
  }
  
  
  
  
  
  
  
  
  
  
  .board-utilities {
    width: 100%;
    justify-content: flex-end;
    gap: 4px;
  }
  
  .remaining-chip {
    margin-inline-end: auto;
  }
  
  
  
  
  
  
  
  
  
  .dock-actions {
    gap: 6px;
    flex: 1;
    justify-content: flex-end;
  }
  .dock-actions .btn {
    min-width: 0;
    
    
    gap: 4px;
  }
  .dock-actions .icon {
    width: 16px;
    height: 16px;
  }
  
  .solo-heading {
    gap: var(--space-2);
    
  }
  
  .solo-heading > .btn {
    
    font-size: 0;
  }
  .solo-secret {
    order: 4;
    max-width: none;
    width: 100%;
    font-size: 0.65rem;
  }
  .bot-companion {
    grid-template-columns: 1fr;
    
    
  }
  .companion-actions {
    grid-column: auto;
  }
  
  
  
  
  
  
}
@media (max-width: 400px) {
  .result-card:has(.revealed-chars) {
    grid-template-columns: 110px 1fr;
    gap: 8px;
  }
  .revealed-chars {
    padding: 8px;
  }
  .revealed-chars .revealed-portrait {
    width: 90px;
    height: 130px;
  }
  .result-card h2 {
    font-size: 1.25rem;
  }
  .result-card > p {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Multiplayer series + secret character UX */
.series-score{display:flex;align-items:center;justify-content:center;gap:10px;font-size:1.05rem;direction:ltr;margin-top:2px}
.series-score b{min-width:24px;font-size:1.15rem}
#round-label{text-align:center;}
.board-area{position:relative}
.my-secret-panel{justify-content:space-between;}
.my-secret-content{align-items:center;gap:12px}
.my-secret-panel .secret-avatar{transform:none;}
.my-secret-panel strong{display:block;}
.my-secret-panel small{display:block;color:var(--text-muted);}
.secret-choice-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 18px;border:1px solid var(--accent);margin-bottom:16px}
.secret-choice-panel strong{display:block;margin-top:4px}
.secret-picker-modal{max-height:88vh;overflow:auto}
.secret-picker-modal .guess-grid{grid-template-columns:repeat(8,minmax(76px,1fr))}
@media(max-width:900px){
 
 
 .secret-choice-panel{align-items:stretch;flex-direction:column}
 .secret-picker-modal .guess-grid{grid-template-columns:repeat(4,minmax(64px,1fr))}
}


/* === Game UI polish v3: larger cards, clean header, stronger result === */
.match-screen{max-width:1720px}
.match-score{
  
  
  align-items:center;
  
  
  margin-bottom:8px;
  
  
  
}
.match-score>.btn{position:static!important;inset:auto!important;justify-self:end}
.player-tag{
  
  padding:8px 10px;
  border-radius:10px;
  background:var(--bg-elevated);
}
.opponent-tag{justify-content:flex-end}
.match-turn{
  
  
  grid-template-columns:auto auto;
  
  
  
  
  padding:7px 16px;
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--bg);
}
.match-turn #turn-clock{grid-row:1/4;text-align:center;}

.match-turn .series-score{margin:0;font-size:.9rem}
.match-turn #round-label{font-size:.58rem}

/* Secret character is a real card now, not a full-width bar */
.my-secret-panel{
  width:min(330px,100%);
  min-height:142px;
  margin:0 0 14px auto;
  padding:10px 12px;
  display:grid;
  grid-template-columns:128px 1fr;
  grid-template-areas:"avatar label" "avatar info";
  align-items:center;
  gap:5px 14px;
  border:2px solid var(--accent);
  border-radius:14px;
  background:var(--surface-raised);
  box-shadow:var(--shadow-sm);
}
.my-secret-panel>.eyebrow{grid-area:label;align-self:end;font-size:.68rem}
.my-secret-content{display:contents}
.my-secret-panel .secret-avatar{
  grid-area:avatar;
  width:128px;height:128px;aspect-ratio:1;
  border-radius:11px;border:2px solid var(--accent);
  overflow:hidden;background:var(--surface);
}
.my-secret-panel .secret-avatar img{width:100%;height:100%;object-fit:cover;object-position:center 20%}
.my-secret-panel .my-secret-content>div:last-child{grid-area:info;align-self:start}
.my-secret-panel strong{font-size:1.18rem;line-height:1.2}
.my-secret-panel small{font-size:.68rem;line-height:1.45;margin-top:5px}

/* 48 portraits: square and substantially larger on desktop */
.characters-board{
  grid-template-columns:repeat(8,minmax(0,1fr))!important;
  gap:10px!important;
}
.match-screen .char-card,
.solo-screen .char-card,
.char-card{
  aspect-ratio:1/1!important;
  height:auto!important;
  max-height:none!important;
}
.char-avatar{aspect-ratio:1/1}
.char-name{padding:3px 9px;bottom:7px;inset-inline:7px}
.char-card{will-change:transform;contain:layout paint style}



/* Result screen */
#modal-gameover{background:rgba(5,10,12,.82);backdrop-filter:blur(3px)}
#modal-gameover .result-card{
  
  display:flex!important;
  flex-direction:column;
  align-items:center;
  
  
  
  border-width:2px;
  overflow:auto;
}
#modal-gameover .result-card.result-win{border-color:var(--accent)}

#modal-gameover .result-icon{
  
  display:grid;place-items:center;
  border-radius:50%;
  background:var(--bg-elevated);
  margin:0 auto 2px;
}
#modal-gameover .result-icon .icon{width:38px;height:38px}
#modal-gameover .result-win .result-icon{background:color-mix(in srgb,var(--accent) 18%,var(--surface))}
#modal-gameover .result-title,#result-title{font-size:2.2rem!important;line-height:1.1;margin:2px 0}
#modal-gameover .result-win #result-title{color:var(--accent)}

.result-desc{font-size:.95rem!important;margin:0 0 6px!important}
.result-duel{
  width:100%;
  display:grid;
  grid-template-columns:1fr 1fr!important;
  gap:14px!important;
  padding:0;
  background:none!important;
}
.reveal-player{
  position:relative;
  display:grid;
  justify-items:center;
  gap:7px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--bg-elevated);
}
.reveal-player.reveal-winner{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.reveal-owner{font-size:.7rem;color:var(--text-muted);font-weight:700}
.reveal-player .revealed-portrait{
  width:min(180px,100%)!important;
  height:auto!important;
  aspect-ratio:1!important;
  border-radius:12px;
  margin:0!important;
  overflow:hidden;
}
.reveal-player .revealed-portrait img{object-position:center 20%}
.reveal-player>strong{font-size:1.05rem}
.reveal-player>small{
  min-height:24px;
  padding:3px 10px;border-radius:999px;
  background:var(--surface);color:var(--text-muted);font-size:.65rem
}
.reveal-winner>small{background:var(--accent);color:var(--bg);font-weight:900}
#modal-gameover .result-stats{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  border:0;
  margin:4px 0 2px;
  padding:8px 10px;
  background:var(--bg);
  border-radius:10px;
}
.result-series{font-size:1.45rem;direction:ltr}
.result-series span{opacity:.45;margin:0 5px}
#modal-gameover .result-stats i{width:1px;height:20px;background:var(--border)}

#modal-gameover .result-actions{margin-top:4px}

/* Motion/performance: keep interactions crisp without heavy effects */
.btn,.char-card,.guess-card{transition-duration:120ms!important}


@keyframes ui-pop{from{opacity:.5;transform:translateY(5px) scale(.99)}to{opacity:1;transform:none}}

@media(max-width:1200px){
  .characters-board{grid-template-columns:repeat(6,minmax(0,1fr))!important}
  
  .match-score>.btn{grid-column:1/-1;justify-self:center;}
}
@media(max-width:700px){
  
  .match-turn{grid-column:1/-1;grid-row:1;width:100%}
  .player-tag{grid-row:2}
  .match-score>.btn{grid-column:1/-1;grid-row:3}
  .characters-board{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important}
  .my-secret-panel{width:100%;grid-template-columns:92px 1fr;min-height:106px}
  .my-secret-panel .secret-avatar{width:92px;height:92px}
  
  #result-title{font-size:1.7rem}
  .reveal-player{padding:9px}
  .reveal-player .revealed-portrait{width:130px!important}
}

/* Card image preview — shared by every category/mode */
.card-preview-button{
  position:absolute;bottom:7px;inset-inline-end:7px;
  width:27px;height:27px;border-radius:7px;display:grid;place-items:center;
  color:var(--text);background:color-mix(in srgb,var(--bg-elevated) 92%,transparent);
  border:1px solid color-mix(in srgb,var(--border) 78%,transparent);
  box-shadow:var(--shadow-sm);transition:transform 120ms ease,background 120ms ease;
}
.card-preview-button .icon{width:15px;height:15px}
.card-preview-button:hover,.card-preview-button:focus-visible{transform:scale(1.06);background:var(--surface-raised);outline:2px solid var(--accent);outline-offset:1px}
.char-card .char-name,.guess-card .char-name{max-width:calc(100% - 47px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card-dismiss{z-index:3}.card-preview-button{z-index:5}
.object-avatar img{object-fit:contain!important;object-position:center!important;background:#fff}
.card-preview-modal{z-index:1000;background:rgba(5,10,12,.82);backdrop-filter:blur(4px)}
.card-preview-card{position:relative;}
.card-preview-close{inset-inline-end:10px;}
.card-preview-image{border:1px solid var(--border);}
.card-preview-avatar{display:block;width:100%;height:100%;background:#fff;overflow:hidden}
.card-preview-avatar img{width:100%;height:100%;display:block;object-fit:contain;object-position:center}

@media (max-width:700px){.card-preview-button{width:24px;height:24px;bottom:5px;inset-inline-end:5px}.card-preview-button .icon{width:13px;height:13px}.char-card .char-name,.guess-card .char-name{max-width:calc(100% - 40px)}}

/* ======== Lounge look ======== */
/* Reference theme: blue charcoal, warm peach, fine metallic outlines. */







.brand-word small {   margin-top: 1px; }








.input::placeholder, .composer input::placeholder { color: #a5a09b; }
.screen { max-width: 1280px; }
.menu-screen.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  align-content: center;
  
  
  padding: 24px 70px 60px;
}


























.bot-emblem { background: #313033; color: #e3c0a5; border: 1px solid #514a45; }




.setup-form h2 { font-size: 1.4rem; }








.match-screen {  background: #12191eb5; border: 1px solid #655e57; border-radius: 10px; padding: 20px; }
.match-score, .solo-heading {  background: linear-gradient(110deg, #2a2b2df0, #1b2025e8); border: 1px solid #49494a; border-radius: 8px; }




#turn-clock {      text-align: center; }

.characters-board { padding: 12px; background: #24292dcf; border: 1px solid #66615b; border-radius: 9px;   }
.char-card, .guess-card { border: 1px solid #baa28c;  padding: 3px;  }

.char-avatar { border-radius: 4px; }
.char-name { color: #fff3e8; background: #171c21df; border: 1px solid #71605266; font-size: .7rem; }
.char-card:hover:not(.eliminated) { transform: translateY(-2px);   }
.char-card.eliminated {  transform: none; border-color: #7b7470; }
.card-dismiss { background: #24262b80; }
.card-dismiss .icon { background: none; color: #c1b2a8; width: 48px; height: 48px; padding: 3px; }
.secret-avatar { transform: none; border-width: 1px; border-color: #c1a88f; }

.end-turn-btn { background: linear-gradient(120deg, #313236, #22262a); color: var(--text); border-color: #65605a; }
.bot-companion { background: #22272be8;  border: 1px solid #514e4b; border-radius: 8px;  }
.quick-question { background: #252a2e; border-color: #4b4b4d; }
.quick-question:hover { background: #44403b; }







.revealed-chars { background: #21262b; }



@media (min-width: 1001px) {
  
  .characters-board {  margin-inline: auto; }
  
  .solo-screen.active { display: grid;   align-items: start; }
  .solo-heading { grid-column: 1 / -1; }
  .solo-screen .board-area { grid-column: 1; }
  .solo-screen .bot-companion { grid-column: 2; grid-template-columns: 1fr;  }
  
  
  .companion-actions { grid-column: auto; }
}
@media (max-width: 1000px) {
  .menu-screen.active { padding-inline: 32px;  }
  
  
  
  .match-screen { margin: 12px; }
}
@media (max-width: 600px) {
  
  
  
  .menu-screen.active { display: flex; flex-direction: column;    }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  .dock-actions .btn { padding: 10px 6px; font-size: .65rem; }
  
  
}

/* Compact layouts for the 48-character edition. Scroll only when content needs it. */


.site-credits {  bottom: 0; inset-inline: 0;       font-size: 11px;   z-index: 110; }
.site-credits bdi { color: #e1b894; font-size: 10px; letter-spacing: .08em; }
.menu-screen.active { min-height: calc(100dvh - var(--header-height) - var(--credits-height)); padding-block: 15px; gap: 20px 45px; }
.setup-screen.active {  padding-block: 20px;  }


.setup-story .eyebrow { display: none; }

.lobby-screen {  padding-bottom: 12px;  }
.lobby-heading > .eyebrow { display: none; }
.lobby-heading h1 { margin: 8px 0; }
.lobby-seats { margin: 20px 0; gap: 24px; }
.player-seat { padding: 20px; gap: 8px; }
.lobby-floor {  margin-bottom: 12px; gap: 24px; }
.match-screen { margin-top: 0; }
.match-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; padding: 8px 16px; position: relative; }
.match-score > .player-tag { min-width: 0; padding: 7px 12px; border: 1px solid transparent; border-radius: 7px; }
.match-score > .player-tag:first-child { justify-self: start; }
.match-score > .opponent-tag { justify-self: end; }
.match-score > .btn {     transform: translateX(-50%); padding: 6px 10px; font-size: .75rem; }
body:has(#screen-game.active) .header-tools { margin-inline-end: 90px; }
.active-player { border-color: #78ad8355 !important; background: #70c28d0c; }
.active-player strong { color: #a0d5ad; }
.player-tag small:empty { display: none; }
.match-turn { display: grid; place-items: center; gap: 3px;  }
.match-turn #turn-clock { font-size: 1.45rem; min-width: 112px; line-height: 1.3; padding: 3px 15px; direction: ltr; }
.match-turn #turn-indicator { font-size: .7rem; color: #c7b8aa; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.match-turn.my-turn #turn-clock { border-color: #60996d; }
.board-toolbar { padding: 9px 0; }
.board-toolbar h2 { font-size: .92rem; }
.board-toolbar .eyebrow { font-size: .62rem; }


.secret-card small, .space-hint { display: none; }
.secret-avatar { width: 43px; height: 48px; }

.solo-heading { padding: 8px 12px; }
.solo-heading h1 { font-size: 1.1rem; }
.solo-heading .eyebrow, .solo-secret { display: none; }
.solo-heading > .btn { margin-inline-start: auto; }
.bot-companion { gap: 10px; padding: 13px; }
.companion-prompt strong { font-size: .9rem; }
.companion-prompt small { font-size: .68rem; }
.char-avatar img { object-position: center; object-fit: contain; background: #e5e5e3; }


.modal-card:has(.guess-grid) { width: min(1100px, 96vw); padding: 20px; }
.guess-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 7px; }
.guess-card { aspect-ratio: 1/1; }
.guess-search { padding: 8px 12px; margin-bottom: 10px; }
.guess-filter { margin-bottom: 10px; }

#modal-help .modal-card {  text-align: start; }
.rules-intro {  color: #dcc4b0 !important; }
.rules-steps {      counter-reset: step; }


.rules-steps h3 {  color: #efd4bd; }

.rules-bot {     color: #d6b89d; }

.rules-bot > [data-icon] { color: #e3b890; }
@media (min-width: 1001px) {
  .match-screen { width: calc(100% - 48px); max-width: 1600px; padding: 12px 18px; }
  .characters-board { max-width: none; padding: 8px;   }
  
  .solo-screen.active { grid-template-columns: minmax(0, 1fr) 270px; gap: 10px 14px; }
  .solo-screen .characters-board { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  
  .solo-screen .bot-companion { margin-top: 51px; }
  .solo-screen .chat-log { height: clamp(65px, calc(100dvh - 605px), 200px); }
  .companion-actions .btn { padding: 9px 12px; }
  .solo-screen .companion-actions { flex-direction: column; }
  
  
  
  
}
@media (min-width: 601px) and (max-width: 1000px) {
  .match-screen { margin: 0 12px; }
  .characters-board {   padding: 7px; }
  
  
  .bot-companion { margin-top: 10px; }
  .guess-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  
  
  .menu-screen.active { padding: 16px 20px 8px; gap: 14px; min-height: calc(100dvh - 85px); }
  
  
  
  
  
  
  
  
  .setup-story h2 {  margin-block: 0 6px; }
  
  
  
  
  .lobby-seats { margin: 12px 0; gap: 10px; }
  .player-seat { padding: 13px 8px; gap: 6px; }
  .lobby-floor { gap: 12px;  }
  .invite-ticket { padding-bottom: 10px; }
  .lobby-start { gap: 8px; }
  
  .match-screen { margin: 0 6px; padding: 7px; }
  .match-score { gap: 4px; padding: 6px; }
  .match-score > .player-tag { padding: 6px 4px; }
  .match-score .player-tag strong { max-width: 76px; font-size: .75rem; }
  
  .match-turn #turn-clock { font-size: 1.1rem; min-width: 86px; }
  .match-turn #turn-indicator { font-size: .6rem; max-width: 108px; }
  .match-score > .btn {  font-size: 0; }
  body:has(#screen-game.active) .header-tools { margin-inline-end: 35px; }
  .board-toolbar {  padding: 6px 0; }
  .board-toolbar h2 { font-size: .82rem; }
  .board-toolbar .eyebrow { display: none; }
  .board-utilities .btn { padding: 3px 5px; font-size: .65rem; }
  .characters-board {  padding: 5px;  }
  
  .char-name { font-size: .52rem; line-height: 1.3; inset-inline: 1px; bottom: 2px; padding: 1px 2px; border: 0; min-width: 0; }
  
  .secret-avatar { width: 31px; height: 40px; }
  
  
  
  
  .solo-heading { flex-wrap: nowrap; padding: 6px 8px; }
  .solo-heading .bot-emblem { width: 30px; height: 30px; }
  .solo-heading h1 { font-size: .9rem; }
  
  .solo-screen .board-toolbar > div:first-child { display: none; }
  .solo-screen .companion-prompt > strong { display: none; }
  .solo-screen .quick-question:nth-child(n+4) { display: none; }
  .solo-screen .chat-log { height: 36px; }
  .bot-companion { margin-top: 8px; padding: 9px; gap: 8px; }
  .companion-prompt small { display: none; }
  .quick-questions { gap: 4px; margin-top: 5px; }
  .quick-question { font-size: .6rem; padding: 4px 7px; }
  .chat-log { height: 65px; font-size: .7rem; }
  .companion-actions { gap: 6px; }
  .companion-actions .btn { padding: 7px 10px; font-size: .75rem; }
  
  .composer .btn { padding: 8px; }
  .modal-card:has(.guess-grid) { padding: 12px; }
  .guess-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
  .guess-card { aspect-ratio: 1 / 1; padding: 2px; }
  
  
}
/* Match workspace: a single pinned toolbar above the portrait board. */
body:has(#screen-game.active) .masthead { position:sticky; top:0; z-index:120; background:#11181ef5; }

body:has(#screen-game.active) .header-tools { margin:0; }

.header-exit { display:none; }
body:has(.match-screen.active) .header-exit { display:inline-flex; color:#efa9a2; }

#screen-game { max-width:2240px; width:calc(100% - 64px); padding:16px; overflow:visible; }
.match-toolbar { position:sticky; top:var(--header-height); z-index:100; background:#1b2228fa; border:1px solid #716052; border-radius:12px; box-shadow:0 8px 24px #0004; margin-bottom:16px; }
#screen-game .match-score { border:0; border-bottom:1px solid #ffffff12;    }
#screen-game .match-turn {  flex-wrap:wrap; justify-content:center;  }


#screen-game .match-turn #round-label { font-size:.75rem; }

#screen-game .board-toolbar > div:nth-child(2) { grid-column:1; grid-row:1; }
#screen-game .dock-actions { grid-column:2; grid-row:1;    }
#screen-game .dock-actions .btn {  min-width:155px;   }

#screen-game .guess-btn {  border:1px solid #80b899;  }

#screen-game .board-area {    align-items:start; }
#screen-game .my-secret-panel {   width:100%; margin:0;      border:1px solid #e7bd99;   }
#screen-game .my-secret-panel > .eyebrow { align-self:center;   }
#screen-game .my-secret-content {   align-items:center;  }
#screen-game .my-secret-panel .secret-avatar {   border-radius:10px; }
#screen-game .my-secret-panel .secret-avatar img { object-fit:contain; background:#e5e5e3; }

#screen-game .my-secret-panel small {  font-size:.8rem; color:#d0c2b5; margin-top:9px; }
#screen-game .characters-board { grid-template-columns:repeat(8,minmax(0,1fr))!important;  padding:10px; }

#modal-gameover .result-card {  padding:28px 36px;  background:radial-gradient(ellipse at top,#544631 0,transparent 55%),#181f25; }
#modal-gameover .result-card.result-loss { border-color:#ba7773; background:radial-gradient(ellipse at top,#493238 0,transparent 55%),#181f25; }
#modal-gameover .result-loss .result-icon { color:#efa09a; background:#e279761a; }
#modal-gameover .result-loss #result-title { color:#ffc6bd; }
#modal-gameover .result-icon { width:76px; height:76px; border:1px solid #e7bd9955; }
#modal-gameover .result-title,#modal-gameover #result-title { font-size:2.6rem!important; }
#modal-gameover .reveal-player { padding:16px; background:#11191dcc; gap:10px; border-color:#6d6c6b; }
#modal-gameover .reveal-winner { border-color:#e7bd99; background:linear-gradient(150deg,#51433088,#172027); }
#modal-gameover .reveal-owner { font-size:.95rem; color:#e8ded4; }
#modal-gameover .revealed-portrait { width:min(240px,100%)!important; display:block; }
#modal-gameover .revealed-portrait img { width:100%; height:100%; object-fit:contain; background:#e5e5e3; }
#modal-gameover .reveal-player > strong { font-size:1.35rem; }
#modal-gameover .reveal-player > small { font-size:.8rem; }
#modal-gameover .result-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; }

@media(min-width:2200px) {
  
  
  
  #screen-game .char-name { font-size:1rem; }
}
@media(max-width:1400px) and (min-width:901px) {
  
  
  
  #screen-game .board-toolbar > div:nth-child(2) { display:none; }
  #screen-game .dock-actions { grid-column:1; }
}
@media(max-width:900px) {
  #screen-game { width:calc(100% - 12px); padding:8px; }
  
  #screen-game .board-toolbar > div:nth-child(2) { display:none; }
  #screen-game .dock-actions { grid-column:1;  }
  
  
  #screen-game .my-secret-panel {    grid-template-areas:'avatar label' 'avatar info';   }
  
  
  #screen-game .my-secret-panel > .eyebrow { align-self:end; }
  
  
  
}
@media(max-width:600px) {
  
  
  .header-tools .btn { font-size:.7rem; padding:8px 6px; }
  .header-tools .btn span { display:inline; }
  
  
  
  
  #screen-game .dock-actions .btn { min-width:0;   }
  #screen-game .characters-board { grid-template-columns:repeat(4,minmax(0,1fr))!important; }
  #modal-gameover .result-card { padding:18px 12px; }
  #modal-gameover .reveal-player { padding:8px; }
  #modal-gameover .reveal-owner { font-size:.75rem; }
  #modal-gameover .reveal-player > small { font-size:.65rem; }
}

/* Dialogs must sit above both pinned navigation layers. */
.modal { z-index:300; }
.toast { z-index:400; }
/* Keep the unavailable mode visible with a compact maintenance indicator. */





/* Focused category/card/setup refinements */
#screen-create.setup-screen.active{max-width:1040px}

#screen-create .setup-form .input{width:100%;direction:rtl;text-align:right;text-align-last:right}
#screen-create #category-id option{direction:rtl;text-align:right}
#screen-create .setup-form>label{margin-top:2px}

#screen-game .char-card .char-name,
.guess-card .char-name{
  inset-inline:6px 39px;bottom:6px;width:auto;max-width:none;min-width:0;
  min-height:27px;padding:3px 7px;display:flex;align-items:center;justify-content:center;
  text-align:center;white-space:normal;overflow:hidden;text-overflow:clip;
  line-height:1.05;font-size:clamp(.58rem,.72vw,.78rem);
}
#screen-game .card-preview-button,
.guess-card .card-preview-button{bottom:6px;inset-inline-end:6px;width:27px;height:27px}

.site-credits .credits-discord{display:grid;place-items:center;margin-inline-start:4px;border:1px solid #a78a6a55;border-radius:6px;text-decoration:none;transition:background 120ms ease,color 120ms ease,border-color 120ms ease}
.site-credits .credits-discord svg{width:13px;height:13px;display:block}
.site-credits .credits-discord:hover,.site-credits .credits-discord:focus-visible{color:#f3d1b2;background:#2a2522;border-color:#c59b77;outline:none}

/* Card captions live below the image card, one compact row in every category. */
#screen-game .characters-board{gap:12px 10px!important;overflow-x:hidden}
.card-item{min-width:0;display:flex;flex-direction:column;gap:4px}
.card-item>.char-card,.card-item>.guess-card{width:100%;aspect-ratio:1/1!important;min-height:0}
.card-meta{min-width:0;display:flex;padding-inline:2px}
.card-meta .char-name{position:static!important;inset:auto!important;bottom:auto!important;width:auto!important;max-width:none!important;min-width:0!important;flex:1;}
.card-meta .card-preview-button{position:static!important;inset:auto!important;bottom:auto!important;}

/* The image itself stays clean: no caption or preview control overlays. */
.card-item>.char-card>.char-name,.card-item>.char-card>.card-preview-button,.card-item>.guess-card>.char-name,.card-item>.guess-card>.card-preview-button{display:none!important}
@media(min-width:1500px){#screen-game .characters-board{grid-template-columns:repeat(12,minmax(0,1fr))!important}}

/* Card caption alignment + desktop no-page-scroll refinement */
.card-meta{
  height:28px!important;
  min-height:28px!important;
  gap:5px!important;
  padding:0!important;
  align-items:center!important;
  direction:rtl!important;
}
.card-meta .char-name{
  height:28px!important;
  min-height:28px!important;
  line-height:1!important;
  padding:0 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  background:#1b2024!important;
  border:1px solid #555352!important;
  border-radius:6px!important;
  box-shadow:none!important;
  font-size:.58rem!important;
  font-weight:700!important;
}
.card-meta .card-preview-button{
  flex:0 0 28px!important;
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  min-height:28px!important;
  border-radius:6px!important;
  box-shadow:none!important;
}
.card-meta .card-preview-button .icon{width:12px!important;height:12px!important}

/* The desktop match must fit inside the viewport; the page itself never scrolls. */
@media(min-width:901px){
  html:has(#screen-game.active),
  body:has(#screen-game.active){
    width:100%;
    height:100dvh!important;
    min-height:100dvh!important;
    max-height:100dvh!important;
    overflow:hidden;
    overscroll-behavior:none;
  }
  body:has(#screen-game.active){padding-bottom:0}
  body:has(#screen-game.active) .site-credits{display:none}
  body:has(#screen-game.active) .masthead{
    position:relative;
    top:auto!important;
    height:var(--header-height)!important;
    min-height:var(--header-height);
  }
  #screen-game.active{
    box-sizing:border-box;
    
    height:calc(100dvh - var(--header-height))!important;
    min-height:0;
    max-height:calc(100dvh - var(--header-height))!important;
    margin:0 auto;
    
    overflow:hidden;
    display:flex;
    
  }
  #screen-game .match-toolbar{
    position:relative;
    
    
    margin-bottom:6px!important;
  }
  
  
  
  
  #screen-game .board-area{
    
    min-height:0;
    height:auto!important;
    overflow:hidden;
    align-items:stretch;
  }
  #screen-game .characters-board{
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
    
    
    
    
  }
  
  #screen-game .card-item>.char-card,
  #screen-game .card-item>.guess-card{
    height:calc(100% - 31px)!important;
    min-height:0!important;
    aspect-ratio:auto!important;
  }
  
  
  
}

/* Shared footer: keep the community link beside the copyright. */

.site-credits{height:auto;grid-template-columns:1fr auto 1fr;text-align:center}
.site-credits .legal-links{justify-self:start;display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap}
.site-credits .legal-links a{text-decoration:none;}
.site-credits .legal-links a:hover{color:#f3d1b2}
.site-credits .credits-identity{grid-column:2;display:flex;align-items:center;justify-content:center;gap:8px}

.site-credits .credits-discord{flex:none;margin:0;}
.site-credits a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.site-credits .footer-team{grid-column:3;justify-self:end;position:relative;margin-left:16px;text-align:left;direction:ltr}
.footer-team summary{display:flex;align-items:center;gap:10px;padding:4px 8px;min-height:28px;color:var(--accent);font-size:12px;cursor:pointer;list-style:none;border-radius:6px}
.footer-team summary::-webkit-details-marker{display:none}
.footer-team summary:hover,.footer-team[open] summary{background:#dfb99a12}
.footer-team summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.footer-team .team-chevron{font-size:14px;transition:transform 160ms ease}
.footer-team[open] .team-chevron{transform:rotate(180deg)}
.footer-team .team-card{position:absolute;bottom:calc(100% + 12px);left:0;width:230px;max-width:calc(100vw - 48px);padding:20px;background:linear-gradient(135deg,#25272b,#161e24);border:1px solid #a78a6a66;border-radius:10px;box-shadow:0 12px 36px #0007;text-align:left;color:#d2cbc4}
.footer-team .team-card h2{margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid #a78a6a33;font-size:15px;line-height:1.5;color:var(--accent);letter-spacing:0}
.footer-team .team-role+.team-role{margin-top:14px}
.footer-team .team-role h3{margin:0 0 4px;font-size:12px;line-height:1.6;font-weight:700;color:#efd4bd}
.footer-team .team-role p{margin:0;font-size:13px;line-height:1.9;color:#d2cbc4}
@media(max-width:900px){
  
  .site-credits{grid-template-columns:1fr;}
  .site-credits .legal-links{justify-self:center}
  .site-credits .credits-identity{grid-column:1}
  .site-credits .footer-team{grid-column:1;justify-self:end;margin-left:8px}
}

/* ======== Mystery look ======== */
/* Game-ready case-file theme. Decorative treatment never recolors game artwork. */
:root{color-scheme:dark;--bg:#101a23;--bg-elevated:#192936;--surface:#203342;--surface-hover:#294253;--text:#f0eee6;--text-muted:#aabac5;--primary:#dfb36c;--primary-hover:#efc680;--accent:#dfb36c;--secondary:#243a49;--border:#3f5666;--success:#72c0a5;--warning:#e6b971;--danger:#e79b91;--shadow-sm:0 4px 14px #0003;--shadow-md:0 18px 55px #0006;--header-height:76px;--credits-height:42px;--radius-sm:6px;--radius-md:9px;--radius-lg:12px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{display:flex;flex-direction:column;min-height:100dvh;padding-bottom:0;background:radial-gradient(ellipse at 10% 15%,#244a6640,transparent 50%),radial-gradient(ellipse at 85% 70%,#1e5e5530,transparent 45%),#101a23;color:var(--text)}
body:before{content:"";position:fixed;inset:0;background:url('/images/case-grain.svg');opacity:.23;mix-blend-mode:soft-light;pointer-events:none;z-index:0}
body>.masthead,body>#app,body>.site-credits{position:relative;z-index:1}
#app{flex:1;min-width:0}
[hidden]{display:none!important}
button,input,select{transition:background 160ms ease,border-color 160ms ease,transform 160ms ease}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #76cab8;outline-offset:4px}
.masthead{flex-direction:row;font-family:var(--font-body)}
.brand{color:var(--text);flex-shrink:0;}
.brand-mark{position:relative;display:grid;}
.brand-mark:before{content:"";position:absolute;top:-8px;right:3px;width:19px;height:7px;border:2px solid #dfb36c;border-bottom:0;border-radius:4px 4px 0 0}


.home-nav{display:flex;margin-inline:auto}
.home-nav button{position:relative;background:none;border:0;}
.home-nav button:first-child{color:#f5eee0;font-weight:800}
.home-nav button:first-child:after{content:"";position:absolute;inset-inline:0;height:2px;}

.header-tools{flex-direction:row;gap:12px;margin-inline-start:auto}
.header-tools .header-join{display:inline-flex;background:none;border:1px solid #6e8491;color:#eff2ee;min-height:38px;padding:6px 16px;font-size:14px}
.header-tools [data-action='help']{display:none}
body:not(:has(#screen-home.active)) .header-tools [data-action='help']{display:inline-flex}
body:not(:has(#screen-home.active)) .header-join{display:none}
.header-tools #sound-toggle{width:37px;height:37px;padding:8px;border:1px solid #40576a;border-radius:6px}
.header-tools #sound-toggle span:last-child{display:none}

.header-tools .text-btn{font-size:12px;color:var(--text-muted)}
.btn{border-radius:6px;min-height:42px;padding:10px 20px;font-size:14px;font-weight:700;box-shadow:none}
.primary-btn,.guess-btn,.mode-actions .primary-btn{background:linear-gradient(140deg,#edc681,#c7954c);border:1px solid #f0cb86;color:#17212b;box-shadow:inset 0 1px #fff3,0 5px 15px #0002}
.primary-btn:hover:not(:disabled),.guess-btn:hover:not(:disabled){background:linear-gradient(140deg,#f6d798,#dbab60)}
.secondary-btn,.icon-btn{background:#203443;color:var(--text);border:1px solid #455f72;box-shadow:none}
.text-btn{color:var(--text-muted)}
.eyebrow{letter-spacing:0;font-weight:500;}
/* A focused landing page: two compact game files, no permanent demo sidebar. */
#screen-home.menu-screen.active{display:grid;grid-template-columns:1.15fr 1fr;grid-template-rows:auto auto;align-items:center;align-content:start;max-width:none;min-height:0;margin:0 auto}















































/* Menu and creation are working dialogs, not a mockup column. */
.reference-rail{display:none;position:fixed;inset:0;z-index:45;background:#060f18bd;backdrop-filter:blur(7px);padding:22px;place-items:center;overflow:auto}
body.quick-is-open .reference-rail,body.menu-is-open .reference-rail{display:grid}
.rail-create,.rail-menu{width:min(390px,100%);border:1px solid #607c8d;border-radius:11px;padding:24px;box-shadow:0 22px 70px #0008}
.rail-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}
.rail-head h2{font-size:25px;font-weight:800;color:#f0eadc}
.rail-head>button{background:none;border:0;color:#d9e1df;font-size:28px;line-height:1;width:28px;height:30px;padding:0}
.rail-create{display:flex;flex-direction:column;gap:11px}
.rail-create label{font-size:13px;color:#d0dce0}
.rail-create .input{min-height:45px;font-size:16px}
.rail-create .primary-btn{font-family:inherit;font-size:18px;margin-top:9px;min-height:48px;width:100%}
.quick-options{margin-top:7px}
.quick-options summary{cursor:pointer;list-style:none;border:1px solid #425e70;border-radius:5px;padding:10px 12px;font-size:15px;}
.quick-options summary:after{content:'⌄';float:left;color:#7ec7b5}
.quick-options[open] summary:after{content:'⌃'}
.quick-options>div{display:flex;flex-direction:column;gap:9px;padding-top:12px}
.rail-menu nav{display:flex;flex-direction:column}
.rail-menu nav button,.rail-menu nav a{display:flex;align-items:center;text-decoration:none;text-align:right;}


.rail-menu nav a:last-child{border-bottom:0}
/* Shared surfaces and game geometry. */
.input,.composer input{background:#152b39;border:1px solid #4d6b7e;border-radius:5px;padding:11px 13px;color:#ecf1eb;font-size:14px}
.setup-screen.active{min-height:0;max-width:900px;padding:35px 30px 45px;gap:64px}

.setup-story h2 em{font-style:normal}



.setup-form,#screen-create .setup-form{width:100%}
#screen-create .setup-form .input{min-height:44px}


.lobby-screen{max-width:760px;padding-top:35px}
.lobby-heading h1{font-size:29px}
.player-seat,.player-seat.ready{background:none;border:0;border-bottom:1px solid #426176;border-radius:0;box-shadow:none}
.player-seat.ready{border-color:#72bda6}

.lobby-floor{background:none;border:0;border-top:1px solid #426176;border-radius:0;box-shadow:none;padding:24px 0}
.room-code-box{border:1px dashed #6f97aa;border-radius:5px;}
.secret-choice-panel{border-radius:6px}


.modal-card h2,.modal-card h3{color:#f2ebdc}
#modal-help .modal-card{width:min(630px,100%)}
.modal-card.confirm-card{width:min(430px,100%)}
.secret-picker-modal{width:min(960px,94vw)}

#modal-help .rules-steps{gap:0}
#modal-help .rules-steps li{background:none;border:0;border-bottom:1px solid #4b687977;border-radius:0;padding:12px 0;box-shadow:none}
#modal-help .rules-bot{background:none;border:0;padding:12px 0 0}

#screen-game.match-screen{background:none;border:0;border-radius:0}
#screen-game .match-score,#screen-game .board-toolbar{box-shadow:none}
#screen-game .characters-board{background:none;border:0}
#screen-game .my-secret-panel{box-shadow:none}
#screen-game .guess-btn{background:linear-gradient(140deg,#edc681,#c7954c);border-color:#e8c282;color:#14212b}
#screen-game .end-turn-btn{color:#e4f3eb}
.char-card,.guess-card{border-color:#acaa98;border-radius:4px;background:#d1ccbe}
.card-meta .char-name{color:#d0dee4}
.char-card.eliminated{opacity:.27;filter:grayscale(.7)}
.char-card:hover:not(.eliminated){border-color:#eac27a;box-shadow:0 0 0 1px #eac27a77}

.site-credits{position:static;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;width:min(1080px,calc(100% - 64px));max-width:none;padding:13px 0;min-height:42px;border-top:1px solid #3c596d66}
.site-credits .legal-links a,.site-credits .copyright{color:#a6bac6;}
.site-credits .credits-discord{color:#8fbea9;border-color:#416477;}
.site-credits .footer-team{display:none}




@media(min-width:901px){body:has(#screen-game.active) .masthead{width:calc(100% - 64px);max-width:none}}
@media(max-width:1000px){.header-tools .header-join{display:none}.setup-screen.active{gap:35px;padding-inline:25px}}
@media(max-width:600px){:root{--header-height:66px}.home-nav{display:none}.header-tools{gap:8px}.header-tools [data-action='help']{display:inline-flex}.header-tools [data-action='help'] span:last-child{display:none}.header-tools .text-btn{padding:6px}.header-tools #sound-toggle{width:33px;height:33px}#screen-home.menu-screen.active{display:flex;flex-direction:column;align-items:stretch}.reference-rail{padding:17px}.rail-create,.rail-menu{padding:22px 19px}.rail-head h2{font-size:23px}.setup-screen.active{display:block;padding:25px 22px 32px}.setup-story{margin-bottom:25px}.setup-story h2 br{display:none}.setup-story .setup-cards{display:none}.lobby-screen{padding:26px 20px}.lobby-floor{padding:20px 0}.site-credits{width:calc(100% - 36px);justify-content:center;gap:10px}}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Open investigation desk. All decoration is scoped to the landing page. */
#screen-home.menu-screen.active{position:relative;width:min(1030px,calc(100% - 64px));padding:49px 0 27px;gap:24px 34px;background:none;border:0;box-shadow:none;border-radius:0}



































@media(max-width:1000px) and (min-width:601px){#screen-home.menu-screen.active{width:calc(100% - 48px);padding-top:37px;gap:20px 14px}}
@media(max-width:600px){#screen-home.menu-screen.active{width:calc(100% - 36px);padding:30px 0 19px;gap:20px}}

/* ======== Info and legal pages ======== */
/* Informational pages use the game's shared lounge palette and typography. */
.info-page { display: flex; flex-direction: column; padding-bottom: 0; }
.info-page .masthead { width: min(1120px, 100%); padding-inline: 28px; flex: none; }
.info-page .brand { text-decoration: none; }
.info-page .brand-word { font-size: 22px; }
.info-page .back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; text-decoration: none; padding: 8px 0; }
.info-page a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.info-page .back:hover { color: var(--accent); }
.info-main {   flex: 1; }
.info-nav { display: flex; flex-wrap: wrap;       }
.info-nav a { flex: 1;  border-radius: 6px; text-align: center; text-decoration: none;   white-space: nowrap; }
.info-nav a:hover { background: #dfb99a0d; color: var(--text); }

.legal-card {   border-radius: 12px;   }
.info-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;   border-bottom: 1px solid #a78a6a33; }
.legal-card h1 {  font-weight: 800;  line-height: 1.5; letter-spacing: 0; }
.legal-card h2 {  font-weight: 700;  margin: 24px 0 7px; line-height: 1.6; }

.legal-card .updated { color: var(--text-muted);  }
.legal-card ul { margin: 8px 0; padding-inline-start: 22px; }
.legal-card li { padding-inline-start: 4px; margin-block: 4px; }
.legal-card li::marker { color: var(--accent); }
.legal-card a {  text-underline-offset: 4px; }
.legal-card a:hover { color: #f5d9c2; }
.contact-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px;  margin-top: 12px;    font-size: 14px; }
.contact-row strong { min-width: 72px;  font-weight: 500; }
.contact-row a { direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.info-page .site-credits { position: static; flex: none; }
@media (max-width: 600px) {
  .info-page .masthead { padding-inline: 20px; }
  .info-main {  margin-block: 16px 28px; }
  
  
  
  
  .contact-row {  gap: 6px 12px; }
}

/* ---- Theme alignment (matches the home page / in-game look) ---- */
html body.cinema-site .masthead a.header-account{font-family:inherit;color:#c9b384;text-decoration:none;white-space:nowrap;border-inline-end:1px solid #b3ae9a35;padding-inline-end:14px;margin-inline-end:5px}
html body.cinema-site .masthead a.header-account:hover{color:#f0d9a3}
html body.cinema-site .info-main .legal-card{box-sizing:border-box;border:1px solid #a492714f;background:linear-gradient(145deg,#2b3036,#14181d 75%)!important;box-shadow:inset 0 1px #ffffff12,0 24px 70px #000a}
html body.cinema-site .info-main .legal-card h1{margin:0;padding:0;border:0;text-shadow:none;filter:none}
html body.cinema-site .info-main .legal-card h2{color:#e9d7ae;text-shadow:none}
html body.cinema-site .info-main .legal-card a{color:#d7b474;text-decoration-color:#d7b47466}
html body.cinema-site .info-main .legal-card a:hover{color:#f0d9a3}
html body.cinema-site .info-main .legal-card .contact-row{padding:12px 0}
html body.cinema-site .info-heading :is(h1,h2){text-shadow:none;filter:none}

/* ---- Site-wide polish: nav spacing, trust strip, refund note ---- */
html body.cinema-site .home-nav{gap:6px}
html body.cinema-site .home-nav :is(a,button){min-width:0;padding-inline:20px}
.site-credits .trust-strip{display:none}
body.info-page .site-credits{row-gap:10px}
body.info-page .site-credits .trust-strip{display:flex;grid-column:1/-1;order:-1;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 22px;padding-bottom:10px;border-bottom:1px solid #b8a17b26}
.trust-strip .trust-cert{display:inline-flex;align-items:center;gap:7px;color:#cfc6b3;line-height:1.6}
.trust-strip .trust-cert svg{width:17px;height:17px;flex:none;color:#d7b474}
.trust-strip .trust-cert small{color:#a9a396;}
.trust-strip .trust-cert bdi{color:#e0c187;letter-spacing:.4px}
.pay-methods{display:flex;align-items:center;gap:6px;margin:0;padding:0;list-style:none}
.pay-methods li{text-align:center;color:#d6cfbd;font:700 11px/1.5 Arial,sans-serif;letter-spacing:.3px}
html body.cinema-site .info-main .legal-card .refund-timeline{margin-top:16px;padding:12px 16px;border-radius:12px;border:1px solid #c4a8704d;border-inline-start:3px solid #d7b474;background:#d7b4741a;color:#e6dcc4}
html body.cinema-site .info-main .legal-card .refund-timeline strong{color:#f0d9a3}

/* official brand logos */
.trust-strip .trust-cert img{width:auto;border-radius:8px;background:#fff;display:block}
.trust-strip .trust-cert small{border-inline-start:0;padding-inline-start:0}
.pay-methods li{display:grid;place-items:center;min-width:0;border:0;border-radius:8px;background:#fff}
.pay-methods li img{width:auto;display:block}





/* footer logos: smaller */
.trust-strip .trust-cert img{height:26px;padding:3px 9px}
.pay-methods li{height:26px;padding:0 9px}
.pay-methods li img{height:12px}
.pay-methods li:last-child img{height:16px}
.trust-strip .trust-cert,.trust-strip .trust-cert small{font-size:10.5px}
/* sticky footer: always at the bottom of the viewport */
body.cinema-site.info-page{min-height:100vh;min-height:100dvh}
body.cinema-site.info-page #app{flex:1 0 auto}
body.cinema-site.info-page .site-credits{margin-top:auto;flex:none}
/* ===== site scrollbar ===== */
@supports (-moz-appearance:none){html,body,*{scrollbar-width:thin;scrollbar-color:#8e7d5b #11151a}}
html::-webkit-scrollbar,body.cinema-site *::-webkit-scrollbar{width:11px;height:11px}
html::-webkit-scrollbar-track,body.cinema-site *::-webkit-scrollbar-track{background:#0f1317;border-inline-start:1px solid #b8a17b1a}
html::-webkit-scrollbar-thumb,body.cinema-site *::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#a68d5e,#6f6244);border:3px solid #0f1317;border-radius:999px;min-height:36px}
html::-webkit-scrollbar-thumb:hover,body.cinema-site *::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#d7b474,#9c8553)}
html::-webkit-scrollbar-corner,body.cinema-site *::-webkit-scrollbar-corner{background:#0f1317}

/* ======== Cinema look: charcoal, silver and brass ======== */
/* Cinematic homepage. Gameplay markup and card geometry are unchanged. */

body.cinema-site:before{display:none}
body.cinema-site .masthead{width:100%;max-width:none;padding:0 4%;border:1px solid #6c6d6f35;border-top:0;background:linear-gradient(115deg,#171b20d9,#26282c8c 55%,#14171bd9);box-shadow:0 8px 28px #0003;z-index:5}

body.cinema-site .brand-word{font-family:Arial,sans-serif;line-height:1;font-weight:900;letter-spacing:1px;background:linear-gradient(#fff,#9b9c9e);background-clip:text;color:transparent;text-shadow:0 2px 2px #fff1}
body.cinema-site .brand-word small{display:block;font-family:var(--font-body);letter-spacing:0;line-height:1.4;color:#c3c0bd;text-align:center}
body.cinema-site .brand-mark{transform:rotate(18deg);border:2px solid #cac6bf;border-radius:5px;color:#d7b474;background:linear-gradient(135deg,#2b2d30,#101317);box-shadow:inset 0 0 0 3px #0b0d0f,0 4px 8px #0006}
body.cinema-site .brand-mark:before{display:none}

body.cinema-site .home-nav button{color:#d3d2d3;}
body.cinema-site .home-nav button:first-child{background:linear-gradient(#36393e88,#171a1d);border:1px solid #9fa4ac36;border-radius:18px;box-shadow:inset 0 1px #ffffff30}
body.cinema-site .home-nav button:first-child:after{left:25%;right:25%;background:#e5c570;bottom:-1px;box-shadow:0 0 9px #e5c57045}
body.cinema-site .header-join,body.cinema-site .header-tools #sound-toggle{display:none}
body.cinema-site .menu-toggle{display:grid;border:1px solid #9fa3aa28;color:#bfc3c8;}
#screen-home.cinema-home.active{position:relative;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;isolation:isolate;max-width:none;gap:0;background:#0d1014;overflow:hidden;border:0;border-radius:0;box-shadow:none}
.cinema-scene{position:absolute;inset:0;z-index:-3;pointer-events:none;}
.cinema-scene:after{content:"";position:absolute;inset:0;}
.cinema-content{z-index:2;text-align:center}
.cinema-heading h1{font-family:var(--font-body);font-size:clamp(90px,9vw,142px);font-weight:900;letter-spacing:-8px;line-height:1.75;margin:0;background:linear-gradient(125deg,#a6a6a7 10%,#f6f3ed 27%,#bcbab7 42%,#f7f6f0 49%,#969593 67%,#e3ded5 85%);background-clip:text;color:transparent;filter:drop-shadow(0 4px 1px #000b) drop-shadow(0 1px 0 #fff6)}
.cinema-heading h1 span{display:inline-block;background:linear-gradient(125deg,#f5dd9c,#b28c48 50%,#e9c77c 70%,#9a743d);background-clip:text;color:transparent;margin-inline-start:10px}
.cinema-english{display:block;font:600 19px/1.6 Arial,sans-serif;padding-inline-start:11px;text-shadow:0 2px 4px #000}
.cinema-heading p{text-shadow:0 2px 4px #0008}
.cinema-play{border:1px solid #92949870;backdrop-filter:blur(9px)}
.cinema-players{display:block;margin:0 auto 9px;color:#c9cacc;filter:drop-shadow(0 2px 2px #0008)}
.cinema-players .icon{stroke-width:2.3}
.cinema-play h2{font:700 29px/1.6 var(--font-body);text-shadow:0 2px 3px #0007}
.cinema-actions{display:grid;grid-template-columns:1fr 1fr;position:relative;align-items:center}
.cinema-actions:after{content:"";position:absolute;top:10px;bottom:10px;left:50%;width:1px;background:linear-gradient(transparent,#a99a80,transparent)}
.cinema-actions .btn{display:flex;justify-content:center;align-items:center;font:700 23px/1.4 var(--font-body);white-space:nowrap}
.cinema-actions .icon{flex-shrink:0}
.cinema-actions .cinema-create{color:#17140e;background:linear-gradient(125deg,#f0d9a3 0%,#c7a16b 27%,#9c7b50 65%,#e8ca95 100%);border:1px solid #efd9a5;box-shadow:inset 0 1px 2px #fff9,inset 0 -2px 3px #7b5836,0 0 19px #e0ba6a26,0 6px 12px #0005}
.cinema-actions .cinema-create:hover{background:linear-gradient(125deg,#fce6b7,#d2af7b 50%,#efcf95);transform:translateY(-2px)}
.cinema-actions .cinema-join{color:#e6e6e6;background:linear-gradient(145deg,#3c4148aa,#1b1e22);border:1px solid #9fa4a993;box-shadow:inset 0 1px 2px #ffffff40,0 4px 10px #0005;}
.cinema-actions .cinema-join:hover{background:#3b4148;transform:translateY(-2px)}
















body.cinema-site .site-credits{margin:0 auto;padding-block:12px;color:#999}

@media(max-width:1100px){.cinema-heading h1{font-size:111px}body.cinema-site .home-nav button{padding-inline:12px}}
@media(max-width:700px){body.cinema-site .masthead{padding:0 20px;}body.cinema-site .header-tools [data-action='help']{display:none}.cinema-heading h1{font-size:88px;letter-spacing:-5px;line-height:1.8}.cinema-english{padding-inline-start:7px}}
@media(prefers-reduced-motion:reduce){.cinema-actions .btn:hover{transform:none}}
body.cinema-site .brand{flex-direction:row-reverse}
body.cinema-site .rail-create,body.cinema-site .rail-menu{background:linear-gradient(145deg,#2d3035,#15191e);border-color:#77736b;color:#e6e3de}
body.cinema-site .rail-create .input{background:#14181e;border-color:#65666a;color:#eee9e0}
body.cinema-site .rail-create .primary-btn{background:linear-gradient(120deg,#ebd29e,#b49362);border-color:#e8c992;color:#17140f}
body.cinema-site .quick-options summary{border-color:#5f6062;color:#cbc7c1}

/* Reference art: brushed steel logo and physical mystery-card stands. */
.cinema-scene{background:linear-gradient(#080b0f0d,#080b0f00 70%,#080b0f0d),url('/images/cinema-mystery-stands.webp') center center / cover no-repeat}
.cinema-scene:after{background:none}
#screen-home .cinema-logo{background:none;filter:none;letter-spacing:0;font-size:0;line-height:1;margin:0 auto 12px;padding:0}
.cinema-logo img{width:100%;height:auto;display:block;object-fit:contain;filter:drop-shadow(0 6px 5px #0005)}

.cinema-english{margin-top:0;font-weight:400;color:#d4d2d3}

.cinema-play{background:linear-gradient(130deg,#393d4480,#24272bcc 60%,#4b474171);border-color:#a4a4a266;box-shadow:inset 0 1px #ffffff19,0 16px 45px #0004}


@media(max-width:700px){.cinema-scene{background-image:linear-gradient(#0b0e12,#0b0e1200 60%),url('/images/cinema-mystery-stands.webp');background-position:center,center bottom;background-repeat:no-repeat;background-color:#0b0e12}}
/* Centered navigation, balanced stage, and an anchored menu. */
body.cinema-site .masthead{display:grid;direction:ltr;position:relative}
body.cinema-site .masthead .brand{grid-column:1;grid-row:1;justify-self:start;direction:rtl}
body.cinema-site .home-nav{grid-column:2;grid-row:1;justify-self:center;margin:0;direction:rtl;}
body.cinema-site .header-tools{grid-column:3;grid-row:1;justify-self:end;margin:0;direction:rtl}
body.cinema-site .home-nav button{font-family:var(--font-body);font-size:16px;font-weight:600;min-width:125px;padding:11px 17px}
body.cinema-site .menu-toggle{background:#20232888;border-color:#8a8b8d42;transition:background 180ms,border-color 180ms,box-shadow 180ms}
body.cinema-site .menu-toggle:hover,body.menu-is-open .menu-toggle{background:#34383e;border-color:#b8a27d;box-shadow:0 0 0 3px #dfb36c0c}
.menu-toggle .icon{transition:transform 180ms ease}
body.menu-is-open .menu-toggle .icon{transform:rotate(90deg)}

.cinema-content{position:relative;display:block}
.cinema-heading{position:absolute;left:0;right:0}
.cinema-heading p{font-family:var(--font-body);font-weight:500;color:#d7d5d1}
.cinema-play{position:absolute;left:0;right:0;transform:translateY(-50%);}
.cinema-play h2,.cinema-actions .btn{font-family:var(--font-body);font-weight:800}
.cinema-play h2{background:linear-gradient(#faf8f1,#bdbbb6);background-clip:text;color:transparent}


.rail-menu,.rail-create{font-family:var(--font-body)}
body.menu-is-open .reference-rail,body.menu-is-closing .reference-rail{display:block;padding:0;overflow:visible;}

body.menu-is-open .rail-menu,body.menu-is-closing .rail-menu{transform-origin:top right;}
.rail-menu:before{content:"";position:absolute;right:-1px;top:-11px;width:45px;height:12px;border:1px solid #78786e8c;border-bottom:0;border-radius:8px 8px 0 0;background:#303339}
body.menu-is-closing .rail-menu{pointer-events:none}
@starting-style{body.menu-is-open .rail-menu{opacity:0;transform:translateY(-9px) scale(.97)}}

.rail-menu .rail-head h2{font:700 18px/1.6 var(--font-body);}

.rail-menu .rail-head>button:hover{color:#fff}

.rail-menu nav button,.rail-menu nav a{font:600 14px/1.7 var(--font-body);transition:background 140ms,transform 140ms}
.rail-menu nav button:hover,.rail-menu nav a:hover{background:#ffffff09;}
.rail-menu nav .selected{border-radius:8px}

@media(max-width:1100px) and (min-width:701px){body.cinema-site .home-nav button{font-size:13px;min-width:99px;padding-inline:12px}}
@media(max-width:700px){body.cinema-site .header-tools{grid-column:2}.rail-menu:before{width:38px}}
@media(prefers-reduced-motion:reduce){.rail-menu,.menu-toggle .icon{transition:none!important}}
/* Integrated right-side navigation drawer. */
body.menu-is-open .reference-rail,body.menu-is-closing .reference-rail{background:#05080d70;backdrop-filter:blur(3px);z-index:7}
body.menu-is-open .masthead,body.menu-is-closing .masthead{z-index:6}
body.menu-is-open .rail-menu,body.menu-is-closing .rail-menu{position:absolute;top:0;right:0;bottom:0;height:100%;max-height:100dvh;margin:0;border:0;border-radius:0;overflow-y:auto;transform:translateX(0);opacity:1;transition:transform 220ms cubic-bezier(.2,.7,.3,1),opacity 180ms ease}
.rail-menu:before{display:none}




body.menu-is-closing .rail-menu{transform:translateX(100%);opacity:0}
@starting-style{body.menu-is-open .rail-menu{transform:translateX(100%);opacity:0}}
@media(prefers-reduced-motion:reduce){body.menu-is-open .rail-menu,body.menu-is-closing .rail-menu{transition:none}}
/* Brushed charcoal drawer with restrained brass details. */
body.menu-is-open .rail-menu,body.menu-is-closing .rail-menu{display:flex;flex-direction:column;background:radial-gradient(ellipse at 90% 8%,#c5a36e10,transparent 45%),linear-gradient(155deg,#25282d,#12171c 70%);border-left:1px solid #b8a17b66;box-shadow:inset 1px 0 #ffffff0a,-20px 0 60px #0008;isolation:isolate}
.rail-menu:after{content:"";position:absolute;inset:0;background:url('/images/case-grain.svg');opacity:.1;pointer-events:none;z-index:-1}
.rail-menu .rail-head{padding:0 0 16px;margin:0;border-bottom:1px solid #c8b28c24;align-items:center}
.rail-menu .rail-head h2{font-weight:600;letter-spacing:0;color:#c8c6c0}
.rail-menu .rail-head>button{display:grid;place-items:center;border:1px solid #bfc0be28;border-radius:9px;background:#ffffff04;color:#cfcbc2;transition:background 150ms,border-color 150ms,transform 150ms}
.rail-menu .rail-head>button:hover{background:#d7b47412;border-color:#c9ad77;transform:rotate(90deg)}
.drawer-identity{text-align:center;border-bottom:1px solid #c8b28c24;}
.drawer-identity img{display:block;max-width:85%;height:auto;margin:0 auto;filter:drop-shadow(0 5px 5px #0006)}
.drawer-identity p{font:500 12px/1.8 var(--font-body);margin:13px 0 0;color:#a5a5a2}
.rail-menu nav{flex-shrink:0}
.rail-menu nav button,.rail-menu nav a{position:relative;border:1px solid transparent;color:#cececb;font-weight:600;background:transparent}
.rail-menu nav .selected{background:linear-gradient(100deg,#d5b47508,#d5b47514);border:1px solid #b89d6c36;border-right:2px solid #dbc18c;color:#eddfc3;box-shadow:inset 0 1px #ffffff04}
.rail-menu nav .icon{stroke-width:1.6;flex-shrink:0}
.rail-menu nav .selected .icon{color:#dec18a}
.rail-menu nav [data-action='create-screen']{background:linear-gradient(115deg,#c7a26b,#e3c58e);border-color:#eed3a0;color:#191815;font-weight:800;box-shadow:inset 0 1px #fff5,0 3px 12px #0002}
.rail-menu nav [data-action='create-screen'] .icon{color:#292419}
.rail-menu nav [data-action='create-screen']:hover{background:linear-gradient(115deg,#d6b17a,#f0d5a3);color:#14130f}
.rail-menu nav [data-action='sound']{margin-top:13px}
.rail-menu nav [data-action='sound']:before{content:"";position:absolute;top:-11px;left:12px;right:12px;height:1px;background:linear-gradient(90deg,transparent,#b8a17b3d,transparent)}
.rail-menu nav button:hover,.rail-menu nav a:hover{background-color:#ffffff06;border-color:#b7a78233;color:#f0e9da;transform:translateX(-2px)}
.drawer-signature{display:flex;flex-direction:column;align-items:center;gap:5px;margin-top:auto;color:#8f8e88;flex-shrink:0}
.drawer-signature:before{content:"";width:40px;height:1px;background:linear-gradient(90deg,transparent,#c3a877,transparent);margin-bottom:10px}
.drawer-signature>span{font:800 16px/1.2 Arial,sans-serif;color:#bdb8ab}
.drawer-signature small{font:500 8px/1.5 Arial,sans-serif;letter-spacing:2px;color:#767979}
@media(max-height:720px){.rail-menu nav button,.rail-menu nav a{padding-block:8px}.drawer-signature:before{display:none}}
@media(prefers-reduced-motion:reduce){.rail-menu .rail-head>button:hover,.rail-menu nav button:hover,.rail-menu nav a:hover{transform:none}}
/* A single cinematic design system for every page. */
body.cinema-site{--bg:#101317;--bg-elevated:#202328;--surface:#25282d;--surface-hover:#30353b;--primary:#d7b474;--primary-hover:#ebce97;--accent:#d7b474;--secondary:#252a30;--border:#686868;--text:#e9e7e1;--text-muted:#aaa9a4;background:radial-gradient(ellipse at 90% 0,#b99a6220,transparent 45%),linear-gradient(#13181de8,#101418f5),url('/images/case-grain.svg') fixed;}
body.cinema-site .brand{text-decoration:none}
body.cinema-site .home-nav a{position:relative;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;font:600 16px/1.7 var(--font-body);color:#c6c5c3;text-decoration:none;transition:background 160ms,color 160ms,border-color 160ms}
body.cinema-site .home-nav a:hover{color:#f2e7ce;background:#ffffff05}
body.cinema-site .home-nav a[aria-current='page']{color:#e8e4dc;background:linear-gradient(#36393e88,#171a1d);border-color:#9fa4ac36;box-shadow:inset 0 1px #ffffff24}
body.cinema-site .home-nav a[aria-current='page']:after{content:"";position:absolute;bottom:-1px;left:25%;right:25%;height:2px;background:#dfc27e;box-shadow:0 0 8px #dfc27e33}
.rail-menu nav .drawer-play{background:linear-gradient(115deg,#c7a26b,#e3c58e);border-color:#eed3a0;color:#191815;font-weight:800;box-shadow:inset 0 1px #fff5,0 3px 12px #0002}

.rail-menu nav .drawer-play:hover{background:linear-gradient(115deg,#d6b17a,#f0d5a3);color:#14130f}
body.cinema-site .rail-menu nav .icon{color:#c6b18c}
body.cinema-site .rail-menu nav .drawer-play .icon{color:#292419}
body.cinema-site .primary-btn,body.cinema-site .guess-btn{background:linear-gradient(120deg,#ecd5a1,#ba955f);border-color:#e6c68b;color:#1b1812;box-shadow:inset 0 1px #fff6,0 4px 12px #0003}
body.cinema-site .primary-btn:hover:not(:disabled){background:linear-gradient(120deg,#f7e1af,#d0ad75)}
body.cinema-site .input{font-family:inherit;color:#e9e7df;background:#151a20;border:1px solid #6e6c665e;min-height:48px;border-radius:9px}
body.cinema-site .input:focus{border-color:#c5ab77;box-shadow:0 0 0 3px #c5ab7712;outline:0}
body.cinema-site :focus-visible{outline-color:#d8bb81}
body.cinema-site .site-credits{font-family:var(--font-body);background:transparent;border-color:#b8a17b27}

body.cinema-site .toast{border-inline-start-color:#d7b474}
body.cinema-site #screen-create.active,body.cinema-site #screen-join.active{display:grid;grid-template-columns:1fr 1fr;align-items:center;max-width:none;margin:0 auto}
body.cinema-site .setup-story h2{font-family:var(--font-body);font-weight:800;color:#e8e5dd;letter-spacing:-1px}
body.cinema-site .setup-story h2 em{color:#ddc28e}
body.cinema-site .setup-story p{max-width:340px;font-family:inherit;color:#b4b2ad;line-height:2}
body.cinema-site .eyebrow{font-family:inherit;color:#c4ae84;font-size:11px;margin-bottom:12px}

body.cinema-site .setup-cards img,body.cinema-site .mystery-card{border:1px solid #a49b89;background:linear-gradient(135deg,#33373c,#141a20);color:#dbc18a;border-radius:9px}
body.cinema-site .setup-form,body.cinema-site #screen-create .setup-form{background:linear-gradient(140deg,#2d313747,#1d23296e);border:1px solid #8b827145;box-shadow:inset 0 1px #ffffff07;}
body.cinema-site .setup-form label{color:#ccc7bb}
body.cinema-site .setup-form small{color:#9f9f99;}
body.cinema-site .setup-form>.primary-btn{font-family:inherit;border-radius:9px}
body.cinema-site .setup-form>.text-btn{align-self:start;padding:0;color:#bfb8aa}
body.cinema-site .setup-form>.eyebrow{color:#e9dfc9;font-weight:700;}
body.cinema-site .room-code-box,body.cinema-site .secret-choice-panel{background:#23292f;border-color:#8e8065;color:#e5dcc7}
body.cinema-site .lobby-floor,body.cinema-site .player-seat{border-color:#8a7c6055}
body.cinema-site #screen-game .match-score,body.cinema-site #screen-game .board-toolbar,body.cinema-site #screen-game .my-secret-panel{background:#232a31;border-color:#66645b}
body.cinema-site #screen-game .end-turn-btn{background:#2a4841;border-color:#6d8d79}

.guide-main{width:min(1060px,calc(100% - 64px));margin:0 auto;padding:57px 0 65px;flex:1}
.page-intro{max-width:660px;border-bottom:1px solid #b8a17b2b;}
.page-eyebrow{display:block;font-size:12px;color:#c9af7b;margin-bottom:13px}
.page-intro h1{font-family:var(--font-body);font-size:39px;line-height:1.7;font-weight:800;letter-spacing:-1px;color:#e6e2d9;margin:0 0 12px}
.page-intro p{color:#b6b4ad;margin-bottom:22px}
.page-intro .btn{display:inline-flex;gap:14px;align-items:center;text-decoration:none;border-radius:9px;font-family:inherit;}
.guide-layout{display:grid;grid-template-columns:1fr 280px;gap:72px;align-items:start}
.guide-steps{list-style:none;padding:0;margin:0;display:grid}
.guide-steps li{display:flex;border-bottom:1px solid #b8a17b23}

.step-number{flex-shrink:0;min-width:35px;font:500 25px/1.7 Arial,sans-serif;color:#d5b880}
.guide-steps h2{font:700 19px/1.9 var(--font-body);color:#e2dfd4;margin:0 0 7px}
.guide-steps p{font-size:13px;line-height:2.1;color:#aaa9a4;margin:0}
.guide-example{border-right:1px solid #b8a17b3b;padding:14px 25px 8px 0}
.guide-example>.icon{width:30px;height:30px;color:#d7bc87;margin-bottom:12px}
.guide-example h2{font-size:22px;color:#e6dfcf;margin-bottom:18px}
.guide-example p{color:#b3b0a8;}
.guide-example .example-question{color:#d9be88;font-weight:700;}
.guide-example small{display:block;color:#999b98;font-size:11px;line-height:2;margin-top:23px}
.guide-thumbs{display:flex;gap:9px;}


body.cinema-site .info-main{width:min(840px,calc(100% - 64px));margin:42px auto 60px}
body.cinema-site .info-nav{gap:5px;background:none;border:0;border-bottom:1px solid #b8a17b2b;padding:0 0 18px;border-radius:0;}
body.cinema-site .info-nav a{font-family:inherit;color:#b7b4ad;font-size:12px;}
body.cinema-site .info-nav a[aria-current='page']{background:#d1b58012;color:#e1c998;box-shadow:inset 0 0 0 1px #d1b58033}
body.cinema-site .legal-card{padding:0;border:0;background:none;box-shadow:none}
body.cinema-site .info-heading{border-color:#b8a17b2b;}
body.cinema-site .legal-card h1{font-family:var(--font-body);font-size:30px;color:#e8e2d5}
body.cinema-site .legal-card h2{font-family:inherit;font-size:17px;color:#dbc18c;}
body.cinema-site .legal-card p,body.cinema-site .legal-card li{font-family:inherit;font-size:13px;color:#b7b4ac;line-height:2.1}
body.cinema-site .legal-card a{color:#dcc18c}
body.cinema-site .contact-row{padding:20px 0;background:none;border:0;border-bottom:1px solid #b8a17b2b;border-radius:0;font-family:inherit}
body.cinema-site .contact-row strong{color:#d6c5a6}

@media(max-width:700px){body.cinema-site .home-nav{display:none}body.cinema-site .setup-story p{max-width:none}body.cinema-site .setup-cards{display:none}.guide-main{width:calc(100% - 40px);padding:32px 0 40px}.page-intro h1{font-size:28px}.guide-layout{display:flex;flex-direction:column;gap:30px}.guide-steps h2{font-size:17px}.guide-steps p{font-size:12px}.guide-example{border:0;border-top:1px solid #b8a17b2b;padding:26px 0 0;width:100%}body.cinema-site .info-main{width:calc(100% - 40px);margin:27px auto 40px}body.cinema-site .legal-card h1{font-size:25px}body.cinema-site .info-nav a{font-size:11px;}}
/* Secret selection is its own gallery; match-board cards remain unchanged. */
#modal-secret-choice{background:#05080dd9;backdrop-filter:blur(7px);padding:25px}
#modal-secret-choice .secret-picker-modal{max-height:89svh;background:radial-gradient(ellipse at 100% 0,#c9ab7210,transparent 45%),linear-gradient(140deg,#252a30,#151a20 70%);border:1px solid #a492714f;border-radius:19px;box-shadow:inset 0 1px #ffffff0e,0 26px 90px #0009;font-family:var(--font-body)}
.secret-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;padding:25px 27px 19px;margin:0;border-bottom:1px solid #c8b28c20;flex-shrink:0}
.secret-picker-head .eyebrow{display:flex;align-items:center;gap:8px;margin-bottom:9px;font-size:11px;color:#cbb383}
.secret-picker-head .eyebrow .icon{width:15px;height:15px}
#secret-choice-title{font:800 26px/1.7 var(--font-body);letter-spacing:-.5px;color:#eae5da;margin:0}
.secret-picker-head p{margin:8px 0 0;font-size:12px;line-height:1.9;color:#aaa9a2;max-width:690px}
.secret-picker-head>.icon-btn{display:grid;place-items:center;width:35px;height:35px;min-height:35px;padding:8px;border:1px solid #a49b8938;border-radius:10px;background:#ffffff04;color:#c6c5c0;flex-shrink:0}
.secret-picker-head>.icon-btn:hover{background:#cfb37b12;border-color:#c6ab77;color:#f0e4ca}
.secret-picker-tools{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 27px;flex-shrink:0}
.secret-picker-tools label{display:flex;align-items:center;gap:10px;border:1px solid #9b927d40;background:#10161c88;border-radius:9px;padding:0 12px;width:min(310px,75%);height:40px}
.secret-picker-tools label:focus-within{border-color:#cfb47b;box-shadow:0 0 0 3px #cfb47b0b}
.secret-picker-tools label .icon{width:17px;height:17px;color:#a9a293}
.secret-picker-tools input{min-width:0;outline:0;box-shadow:none;font:500 12px var(--font-body)}
.secret-picker-tools input::placeholder{color:#8e918e}
.secret-picker-tools>span{font-size:11px;color:#a4a49e;white-space:nowrap}
.secret-picker-tools b{font:500 15px Arial,sans-serif;color:#d9c18e;margin-left:4px}
#secret-choice-grid{min-height:0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#8e7d5b #171d23;align-content:start}
#secret-choice-grid .card-item{gap:0;padding:5px;background:linear-gradient(145deg,#42474b,#242b32 60%);border:1px solid #9d958448;border-radius:11px;box-shadow:inset 0 1px #ffffff0c,0 5px 13px #0002;transition:background 150ms,border-color 150ms,transform 150ms}
#secret-choice-grid .card-item:hover,#secret-choice-grid .card-item:focus-within{border-color:#ccb17b;background:linear-gradient(145deg,#66583e,#292e33 75%);transform:translateY(-2px)}
#secret-choice-grid .card-item>.guess-card{border:1px solid #bdb4a35e;border-radius:7px;aspect-ratio:1/1!important;padding:0;background:#d4cfc4;box-shadow:none}
#secret-choice-grid .guess-card:hover{transform:none;box-shadow:none}
#secret-choice-grid .guess-card .avatar-media,#secret-choice-grid .guess-card .avatar{width:100%;height:100%;overflow:hidden}
#secret-choice-grid .guess-card img{width:100%;height:100%;object-fit:cover;filter:none}
#secret-choice-grid .card-meta{height:36px!important;min-height:36px!important;gap:5px!important;padding:4px 2px 0!important}
#secret-choice-grid .card-meta .char-name{font-family:var(--font-body)!important;font-weight:600!important;height:30px!important;min-height:30px!important;padding:0 3px!important;border:0!important;border-radius:0!important;background:none!important;color:#e0ddd4;justify-content:flex-start!important;text-align:right!important}
#secret-choice-grid .card-meta .card-preview-button{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;flex:0 0 30px!important;border-radius:8px!important;background:#11181f88;border:1px solid #ae9c7830;color:#d8c18f}
#secret-choice-grid .card-meta .card-preview-button .icon{width:16px!important;height:16px!important}
#secret-choice-grid .card-meta .card-preview-button:hover{background:#c8aa701a;outline-color:#cfb47b}
.secret-picker-empty{text-align:center;padding:15px 25px 28px;color:#bfb6a5;font-size:14px}
body.cinema-site .card-preview-card{border:1px solid #b29e754d;background:linear-gradient(145deg,#2a2f35,#151b21);border-radius:17px;box-shadow:0 25px 80px #0009}
body.cinema-site .card-preview-image{border-color:#aaa18c70;}
body.cinema-site .card-preview-title{font:700 19px/1.8 var(--font-body);}

@media(max-width:600px){#modal-secret-choice{padding:12px}#modal-secret-choice .secret-picker-modal{max-height:92svh;border-radius:15px}.secret-picker-head{padding:19px 16px 15px;gap:10px}#secret-choice-title{font-size:20px}.secret-picker-head p{font-size:11px;line-height:1.9}.secret-picker-tools{padding:14px 16px;gap:10px}.secret-picker-tools label{height:39px;max-width:75%}#secret-choice-grid .card-item{padding:4px;border-radius:9px}#secret-choice-grid .card-meta .card-preview-button{width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;flex-basis:28px!important}}
@media(prefers-reduced-motion:reduce){#secret-choice-grid .card-item:hover,#secret-choice-grid .card-item:focus-within{transform:none}}
/* Compact navigation and setup controls. */
body.cinema-site .masthead{gap:20px}
body.cinema-site .brand{gap:11px}




body.cinema-site .home-nav a{line-height:1.6}

body.menu-is-open .rail-menu,body.menu-is-closing .rail-menu{width:min(292px,84vw);padding:20px 18px 18px}
.rail-menu .rail-head{padding-bottom:12px}
.rail-menu .rail-head h2{font-size:13px}
.rail-menu .rail-head>button{width:30px;height:30px;font-size:22px}
.drawer-identity{padding:20px 0 17px;margin-bottom:13px}
.drawer-identity img{width:158px}
.drawer-identity p{font-size:11px;margin-top:10px}
.rail-menu nav{gap:5px}
.rail-menu nav button,.rail-menu nav a{min-height:43px;padding:9px 11px;font-size:12px;gap:11px;border-radius:8px}
.rail-menu nav .icon{width:17px;height:17px}
.drawer-signature{padding-top:22px}
.drawer-signature>span{font-size:13px;letter-spacing:2px}

body.cinema-site .setup-story h2{line-height:1.65}

body.cinema-site .setup-form,body.cinema-site #screen-create .setup-form{border-radius:13px}
body.cinema-site .setup-form .input{border-radius:7px}




@media(max-width:700px){body.cinema-site .masthead{gap:10px}.rail-menu nav button,.rail-menu nav a{min-height:44px;font-size:13px}}
/* Viewport-sized start screens: header + content + footer share one screen. */
body.cinema-site:has(#screen-home.active),body.cinema-site:has(#screen-create.active),body.cinema-site:has(#screen-join.active){height:100dvh;min-height:0;display:grid;grid-template-rows:64px minmax(0,1fr) 30px;padding:0;overflow:hidden}
body.cinema-site:has(#screen-home.active) #app,body.cinema-site:has(#screen-create.active) #app,body.cinema-site:has(#screen-join.active) #app{min-height:0;min-width:0;overflow:hidden}
body.cinema-site .masthead{height:64px;border-radius:0 0 15px 15px;padding-inline:3%;min-width:0}
body.cinema-site .brand-word{font-size:27px}
body.cinema-site .brand-word small{font-size:11px}
body.cinema-site .brand-mark{width:25px;height:34px;font-size:24px}
body.cinema-site .home-nav a{min-width:92px;padding:7px 11px;font-size:12px;border-radius:10px}
body.cinema-site .menu-toggle{width:33px;height:33px;padding:8px;border-radius:9px}
body.cinema-site:has(#screen-home.active) .site-credits,body.cinema-site:has(#screen-create.active) .site-credits,body.cinema-site:has(#screen-join.active) .site-credits{height:30px;min-height:0;margin:0 auto;padding:4px 0;flex-wrap:nowrap;gap:10px;overflow:hidden}
body.cinema-site .site-credits .copyright,body.cinema-site .site-credits .legal-links a{line-height:1.5}

#screen-home.cinema-home.active{height:100%;min-height:0;width:100%;padding:0;margin:0}
.cinema-content{height:100%;min-height:0;padding:0}
.cinema-heading{top:clamp(20px,8vh,80px)}
#screen-home .cinema-logo{margin-bottom:9px}
.cinema-english{line-height:1.5}
.cinema-heading p{margin:13px 0 0;line-height:1.7}
.cinema-play{top:57%;}
.cinema-players{margin-bottom:6px}

.cinema-play h2{line-height:1.6;margin:0 0 13px;letter-spacing:0}

.cinema-actions .btn{min-width:0;gap:9px;}


body.cinema-site #screen-create.active,body.cinema-site #screen-join.active{height:100%;min-height:0;width:min(820px,calc(100% - 44px));padding:14px 0;gap:42px;overflow:hidden}
body.cinema-site .setup-story h2{font-size:28px}
body.cinema-site .setup-story p{font-size:11px}
body.cinema-site .setup-cards{margin-top:20px}
body.cinema-site .setup-cards img,body.cinema-site .mystery-card{width:74px;height:102px}
body.cinema-site .setup-form,body.cinema-site #screen-create .setup-form{gap:7px;padding:16px;min-height:0}
body.cinema-site .setup-form .input{min-height:38px;padding:7px 9px;font-size:12px;line-height:1.5}
body.cinema-site .setup-form label{font-size:10px;line-height:1.5}
body.cinema-site .setup-form>.eyebrow{font-size:14px;line-height:1.5;margin:0 0 4px}
body.cinema-site .setup-form>.text-btn{min-height:20px;font-size:11px}
body.cinema-site .setup-form>.primary-btn{min-height:39px;font-size:13px;margin-top:4px;padding:7px 10px}
body.cinema-site .setup-form small{font-size:10px;line-height:1.6}
@media(max-height:740px) and (min-width:701px){.cinema-heading{top:22px}.cinema-heading p{margin-top:9px}.cinema-play{top:64%;}body.cinema-site .setup-form,body.cinema-site #screen-create .setup-form{gap:5px;padding:13px 16px}body.cinema-site .setup-form .input{min-height:34px;padding:6px 9px}body.cinema-site .setup-form small{font-size:9px}body.cinema-site .setup-form>.primary-btn{min-height:36px}}
@media(max-width:700px){body.cinema-site:has(#screen-home.active),body.cinema-site:has(#screen-create.active),body.cinema-site:has(#screen-join.active){grid-template-rows:58px minmax(0,1fr) 27px}body.cinema-site .masthead{height:58px;padding-inline:15px}body.cinema-site .brand-word{font-size:24px}body.cinema-site .brand-word small{font-size:10px}body.cinema-site .brand-mark{width:23px;height:31px;font-size:22px}body.cinema-site .menu-toggle{width:33px;height:33px}.cinema-content{height:100%}.cinema-heading{top:5vh}.cinema-heading p{margin-top:12px}.cinema-play{top:56%;}.cinema-actions .btn{gap:6px}body.cinema-site:has(#screen-home.active) .site-credits,body.cinema-site:has(#screen-create.active) .site-credits,body.cinema-site:has(#screen-join.active) .site-credits{height:27px;justify-content:center;width:calc(100% - 30px);padding:3px 0}body.cinema-site .site-credits .credits-identity{display:none}body.cinema-site #screen-create.active,body.cinema-site #screen-join.active{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:13px;width:min(400px,calc(100% - 30px));height:100%;min-height:0;padding:10px 0}body.cinema-site .setup-story{margin:0}body.cinema-site .setup-story .eyebrow,body.cinema-site .setup-story p{display:none}body.cinema-site .setup-story h2{font-size:20px;line-height:1.5;margin:0;text-align:center}body.cinema-site .setup-story h2 br{display:none}body.cinema-site .setup-story h2 em{margin-inline-start:6px}body.cinema-site .setup-form,body.cinema-site #screen-create .setup-form{gap:6px;padding:13px 14px;flex-shrink:0}body.cinema-site .setup-form .input{min-height:38px;padding:7px 9px;font-size:13px}body.cinema-site .setup-form>.primary-btn{min-height:40px;font-size:14px}body.cinema-site .setup-form small{font-size:9px;line-height:1.5}body.cinema-site .setup-form>.eyebrow{font-size:13px}body.cinema-site .setup-form label{font-size:10px}body.cinema-site .setup-form>.text-btn{min-height:18px}.cinema-scene{background-size:100% 100%,auto 310px}}
@media(max-width:700px) and (max-height:700px){body.cinema-site .setup-story{display:none}body.cinema-site .setup-form,body.cinema-site #screen-create .setup-form{gap:4px;padding:10px 12px}body.cinema-site .setup-form .input{min-height:34px;padding:6px 8px;font-size:12px}body.cinema-site .setup-form small{display:none}.cinema-heading{top:18px}.cinema-play{top:61%}}
@media(max-height:620px) and (min-width:701px){body.cinema-site .setup-form small{display:none}body.cinema-site .setup-form,body.cinema-site #screen-create .setup-form{padding:12px 15px;gap:4px}body.cinema-site .setup-form .input{min-height:32px;padding:5px 8px;line-height:1.4}body.cinema-site .setup-story .setup-cards{display:none}}
@media(max-height:620px){body.menu-is-open .rail-menu,body.menu-is-closing .rail-menu{padding:14px 16px}.drawer-identity{padding:13px 0;margin-bottom:10px}.drawer-identity img{width:115px}.drawer-identity p,.drawer-signature{display:none}.rail-menu .rail-head{padding-bottom:10px}.rail-menu nav button,.rail-menu nav a{min-height:35px;padding:7px 10px;font-size:11px}.rail-menu nav{gap:4px}}
/* A lighter scale for the cinematic home controls. */
.cinema-content{width:min(420px,calc(100% - 34px))}
#screen-home .cinema-logo{width:min(315px,82%)}
.cinema-english{font-size:11px;letter-spacing:7px}
.cinema-heading p{font-size:14px}
.cinema-play{padding:14px 17px 17px;border-radius:18px}
.cinema-players,.cinema-players .icon{width:23px;height:19px}
.cinema-play h2{font-size:18px;margin-bottom:11px}
.cinema-actions{gap:18px}
.cinema-actions .btn{min-height:42px;padding:8px 9px;font-size:16px;border-radius:10px}
.cinema-actions .cinema-join{font-size:13px}
.cinema-actions .icon{width:17px;height:17px}
@media(max-height:740px) and (min-width:701px){#screen-home .cinema-logo{width:260px}.cinema-play{padding:12px 16px 14px}.cinema-play h2{font-size:17px}.cinema-actions .btn{min-height:39px;font-size:15px}.cinema-actions .cinema-join{font-size:12px}}
@media(max-width:700px){.cinema-content{width:min(330px,calc(100% - 32px))}#screen-home .cinema-logo{width:min(240px,80%)}.cinema-heading p{font-size:13px}.cinema-play{padding:13px 11px 15px}.cinema-play h2{font-size:17px}.cinema-actions{gap:13px}.cinema-actions .btn{min-height:42px;font-size:14px;padding:8px 6px}.cinema-actions .cinema-join{font-size:11px}.cinema-actions .icon{width:15px;height:15px}}
.bot-entry{position:absolute;top:calc(100% + 14px);left:50%;transform:translateX(-50%);display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;border:1px solid #a78d5b55;border-radius:8px;padding:8px 13px;background:#171c22dc;color:#dac395;font:500 11px var(--font-body)}
.bot-entry .icon{width:17px;height:17px}
.bot-entry:hover{background:#353331;border-color:#c4aa77}
/* Inset dropdown chevrons, independent of native select chrome. */
body.cinema-site select.input{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d6c29b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:left 14px center;background-size:15px;padding-left:40px!important}
#screen-solo .bot-companion{background:linear-gradient(150deg,#282e34,#151b21);border:1px solid #a28d6540;box-shadow:inset 0 1px #ffffff08;font-family:var(--font-body)}
#screen-solo .companion-prompt>strong{color:#e2d4b8}
#screen-solo .companion-prompt>small{color:#a4a49e;line-height:1.8}

#screen-solo .quick-question{font:500 10px var(--font-body);}
#screen-solo .quick-question:hover{background:#c4a57112;border-color:#b6a17a;color:#ebdfc5}
#screen-solo .chat-log{overflow:hidden;}
#screen-solo .chat-msg{border:1px solid #ad99712d;background:#10171d85;border-radius:10px;padding:11px 12px;color:#d8d7ce;font-size:11px;line-height:1.8;margin:0;overflow-wrap:anywhere}
#screen-solo .chat-msg.system{color:#b5b5a9;}
#screen-solo .question-group>small{margin-bottom:4px}

#screen-solo .question-group>.positive{background:#69b39417;color:#99cfb3;border:1px solid #78ac8c38}
#screen-solo .question-group>.negative{background:#d6ab7515;color:#dfbd8e;border:1px solid #cba16a38}

#screen-solo .question-group>.bot-reply{color:#d3bd94;}



.bot-question-status{font-size:10px;color:#c4ad7f}

#screen-solo .composer input{font:500 11px var(--font-body);min-width:0;}
#screen-solo .composer button{font:700 11px var(--font-body);border-radius:8px}

/* Solo uses a fixed viewport; small screens page cards instead of shrinking 48 faces. */
body.cinema-site:has(#screen-solo.active){height:100dvh;min-height:0;overflow:hidden;display:grid;grid-template-rows:64px minmax(0,1fr)}
body:has(#screen-solo.active) .site-credits{display:none}
body:has(#screen-solo.active) #app{height:100%;min-height:0;width:100%;max-width:none;padding:10px 16px;overflow:hidden}
body #screen-solo.active{height:100%;min-height:0;max-width:1720px;margin:0 auto;padding:0;border:0;background:none;overflow:hidden}


#screen-solo .solo-heading .eyebrow,#screen-solo .solo-secret{display:none}
body:has(#screen-solo.active) .solo-heading>.btn{display:inline-flex;margin-inline-start:auto;padding:4px 8px;min-height:28px;font-size:11px}
#screen-solo .board-area{min-width:0;}




#screen-solo .board-utilities .btn{min-height:26px;padding:3px 7px;font-size:10px}
#screen-solo .remaining-chip{padding:3px 7px;white-space:nowrap}
#screen-solo #solo-characters-board{min-height:0;}
#screen-solo .card-item{min-height:0;min-width:0;display:grid;grid-template-rows:minmax(0,1fr) 21px;gap:3px}
#screen-solo .char-card{height:100%!important;min-height:0!important;max-height:100%!important;aspect-ratio:auto!important;padding:1px}
#screen-solo .char-avatar{height:100%;width:100%;aspect-ratio:auto;display:block}
#screen-solo .char-avatar img{height:100%;width:100%;object-fit:contain}
#screen-solo .card-meta{height:21px;min-height:0;padding:0 4px;gap:2px}
#screen-solo .card-meta .char-name{max-width:calc(100% - 22px);padding:0}
#screen-solo .card-meta .card-preview-button{position:static;width:21px;height:19px;min-width:21px}
#screen-solo .card-meta .icon{width:12px;height:12px}



#screen-solo .companion-actions{flex-direction:column;margin:0}

.solo-board-pages{display:none;align-items:center;justify-content:center;gap:18px;font-size:11px}
.solo-board-pages button{border:1px solid #a78d5b55;background:#171c22;color:#dac395;border-radius:6px;padding:3px 12px;font:inherit}
.solo-board-pages button:disabled{opacity:.3}

#screen-solo.choosing-guess .char-card.eliminated{opacity:.65;filter:none}
@media(max-width:900px){
 body.cinema-site:has(#screen-solo.active){grid-template-rows:58px minmax(0,1fr)}
 body:has(#screen-solo.active) #app{padding:6px 10px}
 
 
 
 
 
 
 #screen-solo .board-utilities{width:100%;justify-content:space-between}
 
 .solo-board-pages{display:flex}
 #screen-solo .bot-companion{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);grid-template-rows:minmax(0,1fr) 32px;}
 #screen-solo .companion-prompt{min-width:0;overflow:hidden}
 
 #screen-solo .companion-prompt>small{line-height:1.5;margin:3px 0}
 
 #screen-solo .quick-question:nth-child(n+4){display:none}
 
 
 #screen-solo .chat-msg{padding:5px 7px;font-size:10px;line-height:1.5}
 #screen-solo .question-group>small{margin:0}
 
 
 
 
 #screen-solo .companion-actions{grid-column:1/-1;flex-direction:row}
 #screen-solo .companion-actions>.btn{flex:1;min-height:30px;font-size:11px;padding:4px}
 
 
}
@media(max-width:900px) and (max-height:739px){
 
 
 #screen-solo .companion-prompt>small{display:none}
}
@media(max-height:520px) and (max-width:900px){
 body.cinema-site:has(#screen-solo.active){grid-template-rows:40px minmax(0,1fr)}
 body:has(#screen-solo.active) .masthead{height:40px;min-height:40px}
 
 
 
 #screen-solo .companion-actions{flex-direction:row}
}

body #screen-solo.active{align-items:stretch}
#screen-solo .board-area{align-self:stretch}
#screen-solo #solo-characters-board{align-self:stretch}

#screen-solo .char-card,#screen-solo .char-avatar,#screen-solo .char-avatar img{background:#111820}




#screen-solo .question-group>div{-webkit-line-clamp:2;-webkit-box-orient:vertical;}


#solo-board-page,#bot-chat-page,#solo-remaining-count{direction:ltr;unicode-bidi:isolate;display:inline-block}


/* Wide solo boards use the available horizontal space: 12 columns, four rows. */
@media(min-width:1200px){
 body #screen-solo.active{max-width:none;width:100%;}
 #screen-solo .board-area{width:100%;max-width:none;justify-self:stretch}
 #screen-solo #solo-characters-board{justify-self:stretch;}
 
 
 #screen-solo .card-meta .char-name{font-weight:700;max-width:calc(100% - 27px)}
 
 #screen-solo .bot-companion{width:100%;}
}

/* A portrait card stays square: the photograph and border grow together. */
@media(min-width:901px){
 
 #screen-solo .card-item{height:auto;align-self:start;grid-template-rows:auto 25px;}
 #screen-solo .char-card{height:auto!important;max-height:none!important;aspect-ratio:1!important;width:100%;}
 #screen-solo .char-avatar{height:100%;width:100%;aspect-ratio:1;}
 #screen-solo .char-avatar img{display:block;width:100%;height:100%;object-fit:contain;}
}


@media(min-width:901px) and (max-width:1199px){#screen-solo .card-item{justify-self:center}}


#screen-solo #solo-characters-board{border:0;background:transparent;box-shadow:none;border-radius:0}



@media(min-width:1200px){
 body:has(#screen-solo.active) #app{padding-block:6px}
 
 #screen-solo .solo-heading{padding-block:2px}
 
 
 
 
 
 
}

/* Complete solo rows with separated names and square, comfortably sized portraits. */
@media(min-width:1200px){
 
 
 #screen-solo .card-item{width:min(100%,calc((100dvh - 146px - 48px)/4 - 28px));grid-template-rows:auto 25px;gap:5px;align-self:start;justify-self:center}
 
 
 
}
@media(min-width:901px) and (max-width:1199px){
 
 #screen-solo .card-item{width:min(100%,calc((100dvh - 180px - 50px)/6 - 28px));grid-template-rows:auto 23px;gap:4px}
}

/* A full-height conversation with readable, separate message bubbles. */

body.cinema-site button,body.cinema-site input,body.cinema-site select,body.cinema-site textarea{font-family:inherit}





#screen-solo .card-meta .char-name{line-height:23px}
#screen-solo .bot-companion{align-self:stretch;}

#screen-solo .companion-prompt>small{margin-block:6px 10px}



#screen-solo .chat-log>.chat-msg{flex-shrink:0}


#screen-solo .question-group>div{-webkit-line-clamp:unset;}
#screen-solo .question-group>strong,#screen-solo .question-group>.bot-reply{display:block;align-self:flex-end;max-width:92%;margin:0;border-radius:3px 12px 12px 12px;background:#30383d;border:1px solid #ffffff10;font-weight:500;line-height:1.8}
#screen-solo .chat-msg.system{align-self:center;text-align:center;padding:8px 10px;font-size:11px;background:none;border:0}
#screen-solo .composer{flex-direction:column;}

#screen-solo .composer button{align-self:flex-end;min-width:86px;min-height:36px;padding:7px 15px}
#screen-solo .companion-actions{padding-top:5px;border-top:1px solid #ffffff0d}

@media(max-width:900px) and (min-height:521px){
 
 #screen-solo .bot-companion{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);grid-template-rows:minmax(0,1fr) 34px;}
 
 
 
 
 #screen-solo .composer button{min-height:30px;padding:4px 12px}
 
 
 
 #screen-solo .companion-actions{padding:0;border:0;grid-column:1/-1;flex-direction:row}
 
 
}
@media(max-width:900px) and (max-height:520px){#screen-solo .composer button{min-height:28px;padding:3px 10px}}

/* Local refinement: restrained typography and breathing room beneath the chat. */
body.cinema-site .site-credits .copyright,body.cinema-site .site-credits .legal-links a{font-size:10px}
.bot-entry{font-size:12px}

body.cinema-site .card-meta .char-name,#screen-solo .card-meta .char-name{font-size:12px}
#secret-choice-grid .card-meta .char-name{font-size:12px!important}

#screen-solo .companion-prompt>strong{font-size:13px}
#screen-solo .companion-prompt>small{font-size:10px}

#screen-solo .question-group>div,#screen-solo .question-group>strong,#screen-solo .question-group>.bot-reply{font-size:12px;padding:8px 11px}
#screen-solo .composer input,#screen-solo .composer button{font-size:12px}

/* Challenge studio: a compact two-player table and a clean, grouped setup. */
body.cinema-site #screen-create.challenge-studio.active{display:flex;flex-direction:column;justify-content:center;align-items:stretch;width:min(880px,calc(100% - 48px));gap:24px;padding:18px 0;height:100%;box-sizing:border-box}
.challenge-intro{text-align:center}
.challenge-intro .eyebrow{display:block;font-size:10px;letter-spacing:.5px;margin:0 0 5px}
.challenge-intro h1{font-size:30px;line-height:1.5;margin:0;color:#eee9df;font-weight:800}
.challenge-intro h1 span{color:#d7b474}
.challenge-intro p{font-size:12px;color:#929b9e;margin:8px 0 0}
.challenge-workspace{display:grid;grid-template-columns:.9fr 1.1fr;gap:44px;align-items:center}
.challenge-preview{padding:18px 12px;text-align:center}
.challenge-duel{height:126px;display:flex;align-items:center;justify-content:center;gap:18px;margin-bottom:22px;perspective:600px}
.duel-card{display:grid;place-items:center;width:84px;height:112px;border:1px solid #bca98390;border-radius:10px;background:linear-gradient(145deg,#363b3e,#151b20);box-shadow:inset 0 0 0 5px #151a1d,0 14px 24px #0006;color:#d6bc87;font-size:55px;transform:rotate(-10deg)}
.duel-card:last-child{transform:rotate(10deg);color:#cecac1;border-color:#b0b0a875}
.duel-vs{font-size:10px;color:#807a6d;letter-spacing:2px}
.challenge-preview h2{font-size:23px;line-height:1.8;font-weight:700;margin:0;color:#e9e5dc}
.challenge-preview h2 em{font-style:normal;color:#d3b67f}
.challenge-preview p{font-size:11px;color:#929b9e;line-height:1.9;margin:12px 0 22px}
.challenge-join{background:none;border:0;border-top:1px solid #b6a07930;padding:15px 4px 0;color:#9c9f9c;font:inherit;font-size:11px;cursor:pointer}
.challenge-join span{display:block;color:#ddc18a;font-size:12px;margin-top:6px}
.challenge-join:hover span{color:#f8e1ae}
body.cinema-site #screen-create .challenge-form{display:grid;grid-template-columns:1fr 1fr;background:linear-gradient(135deg,#292e3288,#191f2488);border:1px solid #a99b7d38;border-radius:14px;box-shadow:0 16px 50px #0002}
.challenge-form-title{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ffffff0c;padding-bottom:14px;margin-bottom:2px}
.challenge-form-title h2{font-size:15px;margin:0;font-weight:700;color:#e8dfcf}
.challenge-form-title>span{font-size:9px;color:#8e9697}
.challenge-field{display:flex;flex-direction:column;gap:7px;min-width:0}
.challenge-wide{grid-column:1/-1}
body.cinema-site .challenge-form label{font-size:11px;color:#c2c1b9}
body.cinema-site .challenge-form .input{width:100%;min-width:0;min-height:42px;font-size:12px;padding:9px 11px;border-radius:7px;background-color:#12191e;border-color:#a0957c30;box-sizing:border-box}
body.cinema-site .challenge-form small{font-size:9px;color:#8d9595;line-height:1.8}
body.cinema-site .challenge-form>.primary-btn{margin:4px 0 0;min-height:42px;font-size:13px;justify-content:space-between;padding:9px 16px;border-radius:8px}
.challenge-footnote{text-align:center;margin-top:-7px}
@media(max-width:700px){
 body.cinema-site #screen-create.challenge-studio.active{width:min(430px,calc(100% - 28px));gap:16px;padding:10px 0}
 .challenge-intro h1{font-size:23px}.challenge-intro p{font-size:10px}
 .challenge-workspace{display:flex;flex-direction:column-reverse;gap:12px;align-items:stretch}
 .challenge-preview{padding:0}.challenge-duel,.challenge-preview h2,.challenge-preview>p{display:none}
 .challenge-join{border:0;padding:0;font-size:10px}.challenge-join span{display:inline;margin-inline-start:8px;font-size:11px}
 
 
 
}
@media(max-height:650px) and (min-width:701px){body.cinema-site #screen-create.challenge-studio.active{gap:12px}.challenge-intro h1{font-size:24px}.challenge-intro p{display:none}.challenge-duel{height:95px;margin-bottom:12px}.duel-card{height:90px;width:68px;font-size:44px}.challenge-preview h2{font-size:20px}}

/* Short, compositor-friendly motion. No loops, scroll handlers or animated filters. */
@keyframes cinema-arrive{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes cinema-fade{from{opacity:0}to{opacity:1}}
@keyframes cinema-gold-pass{from{transform:translateX(140%) skewX(-18deg)}to{transform:translateX(-180%) skewX(-18deg)}}
@media(prefers-reduced-motion:no-preference){
 body.cinema-site #screen-create.active .challenge-intro,
 body.cinema-site #screen-join.active .setup-story,
 body.cinema-site .page-intro{animation:cinema-arrive 380ms cubic-bezier(.2,.7,.25,1) both}
 body.cinema-site #screen-create.active .challenge-preview{animation:cinema-arrive 420ms 50ms cubic-bezier(.2,.7,.25,1) both}
 body.cinema-site #screen-create.active .challenge-form,
 body.cinema-site #screen-join.active .setup-form{animation:cinema-arrive 420ms 100ms cubic-bezier(.2,.7,.25,1) both}
 #screen-home.active .cinema-logo{animation:cinema-fade 550ms ease-out both}
 #screen-home.active .cinema-heading p{animation:cinema-fade 450ms 80ms ease-out both}
 #screen-home.active .cinema-play{animation:cinema-fade 450ms 140ms ease-out both}
 #screen-solo.active .solo-heading,#screen-solo.active .bot-companion{animation:cinema-fade 220ms ease-out both}
 body.menu-is-open .rail-menu nav>*{animation:cinema-arrive 220ms 40ms ease-out both}
 body.cinema-site .modal:not(.hidden) .modal-card{animation:cinema-arrive 180ms ease-out both}
 body.cinema-site .btn,body.cinema-site .input,body.cinema-site .home-nav a{transition:background-color 160ms,border-color 160ms,color 160ms,opacity 160ms,transform 160ms}
 body.cinema-site .input:focus{transition:border-color 160ms}
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 body.cinema-site .primary-btn{position:relative;overflow:hidden;isolation:isolate}
 body.cinema-site .primary-btn::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(100deg,transparent 28%,#fff3 49%,transparent 70%);transform:translateX(140%) skewX(-18deg)}
 body.cinema-site .primary-btn:hover:not(:disabled)::after{animation:cinema-gold-pass 600ms ease-out}
 body.cinema-site .primary-btn:hover:not(:disabled){transform:translateY(-1px)}
 body.cinema-site .primary-btn:active:not(:disabled){transform:translateY(0)}
 body.cinema-site .challenge-join span{display:block;transition:color 160ms,transform 160ms}
 body.cinema-site .challenge-join:hover span{transform:translateX(-3px)}
}
@media(max-width:700px) and (prefers-reduced-motion:no-preference){
 body.cinema-site #screen-create.active .challenge-intro,
 body.cinema-site #screen-create.active .challenge-preview,
 body.cinema-site #screen-create.active .challenge-form,
 body.cinema-site #screen-join.active .setup-story,
 body.cinema-site #screen-join.active .setup-form,
 body.cinema-site .page-intro{animation-name:cinema-fade;animation-duration:220ms;animation-delay:0ms}
 #screen-home.active .cinema-logo,#screen-home.active .cinema-heading p,#screen-home.active .cinema-play{animation-duration:250ms;animation-delay:0ms}
}
@media(prefers-reduced-motion:reduce){
 body.cinema-site *,body.cinema-site *::before,body.cinema-site *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* ======== Identity: fonts, panels, setup screens ======== */
/* Shared identity, sampled from the home page. Layout and type sizes stay local. */
body.cinema-site{
 --identity-font:var(--font-body);
 --identity-silver:linear-gradient(#faf8f1,#bdbbb6);
 --identity-panel:linear-gradient(130deg,#393d4480,#24272bcc 60%,#4b474171);
 --identity-panel-border:#a4a4a266;
 --identity-panel-shadow:inset 0 1px #ffffff19,0 16px 45px #0004;
 --identity-gold:linear-gradient(125deg,#f0d9a3 0%,#c7a16b 27%,#9c7b50 65%,#e8ca95 100%);
 --identity-gold-shadow:inset 0 1px 2px #fff9,inset 0 -2px 3px #7b5836,0 0 19px #e0ba6a26,0 6px 12px #0005;
 --identity-dark:linear-gradient(145deg,#3c4148aa,#1b1e22);
 --identity-dark-shadow:inset 0 1px 2px #ffffff40,0 4px 10px #0005;
 font-family:var(--identity-font);
}
body.cinema-site :is(h1,h2,h3,h4,p,label,input,select,textarea,button,.eyebrow,.char-name,.legal-links,.copyright){font-family:var(--identity-font)}
/* The home title's silver face and engraved shadow, at each page's existing size. */
body.cinema-site :is(.cinema-play h2,.challenge-intro h1,.challenge-preview h2,.challenge-form-title h2,.setup-story h2,.setup-form h2,.page-intro h1,.legal-card h1,.legal-card h2,.rail-head h2,.modal-card h2,.modal-card h3,.lobby-heading h1,.guide-steps h2,.guide-example h2,.solo-heading h1,.board-toolbar h2,.companion-prompt>strong){
 font-weight:800;letter-spacing:-.5px;background:var(--identity-silver);background-clip:text;-webkit-background-clip:text;color:transparent;text-shadow:0 2px 3px #0007;
}
body.cinema-site :is(.challenge-preview h2 em,.setup-story h2 em){font-style:normal;color:#d7bd87;text-shadow:0 2px 3px #0007}
/* One panel material for setup, support, dialogs and both game modes. */
body.cinema-site :is(.cinema-play,#screen-create .challenge-form,.setup-form,.legal-card,.rail-menu,.modal-card,#modal-secret-choice .secret-picker-modal,#screen-solo .bot-companion,.secret-choice-panel,.invite-ticket,.player-seat,#screen-game .match-score,#screen-game .board-toolbar,#screen-game .my-secret-panel){
 background:var(--identity-panel);border:1px solid var(--identity-panel-border);box-shadow:var(--identity-panel-shadow);
}
/* Drawers and dialogs need an opaque base above page content. */
body.cinema-site :is(.rail-menu,.modal-card,#modal-secret-choice .secret-picker-modal){background-color:#171c21}
body.cinema-site :is(.btn.primary-btn,.btn.guess-btn,.cinema-actions .cinema-create,.rail-menu nav .drawer-play){
 color:#17140e;background:var(--identity-gold);border:1px solid #efd9a5;box-shadow:var(--identity-gold-shadow);font-weight:800;text-shadow:0 1px #fff2;
}
body.cinema-site :is(.btn.primary-btn,.btn.guess-btn,.cinema-actions .cinema-create,.rail-menu nav .drawer-play):hover:not(:disabled){background:linear-gradient(125deg,#fce6b7,#d2af7b 50%,#efcf95);color:#17140e}
body.cinema-site :is(.btn,.quick-question):not(.primary-btn,.guess-btn,.text-btn){color:#e6e6e6;background:var(--identity-dark);border:1px solid #9fa4a993;box-shadow:var(--identity-dark-shadow);font-weight:700}
body.cinema-site :is(.btn,.quick-question):not(.primary-btn,.guess-btn,.text-btn):hover:not(:disabled){background:#3b4148;border-color:#b7b6ae}
body.cinema-site .btn.text-btn{background:none;box-shadow:none;border-color:transparent;color:#bcbab4}
body.cinema-site .btn.text-btn:hover{color:#eee6d5}
body.cinema-site :is(.input,#screen-solo .composer input){background-color:#12191e;color:#e4e0d5;border:1px solid #9c9b914c;box-shadow:inset 0 2px 5px #0003}
body.cinema-site :is(.input,#screen-solo .composer input):focus{border-color:#d5b779;outline:none;box-shadow:inset 0 2px 5px #0003,0 0 0 2px #d5b77916}
body.cinema-site :is(.challenge-form-title,.page-intro,.guide-step,.contact-row){border-color:#a4a4a233}
body.cinema-site :is(.challenge-intro p,.page-intro p,.legal-card p,.legal-card li,.setup-story p){color:#b4b3af;text-shadow:0 1px 2px #0005}
body.cinema-site :is(.challenge-form label,.setup-form label){color:#ceccc5;font-weight:600}
/* Readability wins over decorative gradients in high-contrast display modes. */
@media(forced-colors:active){body.cinema-site :is(h1,h2,h3,.companion-prompt>strong){background:none;color:CanvasText;text-shadow:none}}

/* Utility buttons stay quiet; the main action owns the gold highlight. */
body.cinema-site :is(.quick-question,.card-preview-button,.card-preview-button.btn,.board-utilities .btn,.bot-companion .text-btn){box-shadow:inset 0 1px #ffffff12;background-color:transparent}
body.cinema-site :is(.result-desc,.secret-picker-head p,.lobby-start p,.player-seat small){font-family:var(--identity-font);color:#b8b7b0}
body.cinema-site :is(.result-icon,.bot-emblem){color:#d8bd86}
body.cinema-site .btn:disabled{cursor:default;opacity:.55;transform:none}
body.cinema-site .btn[aria-busy=true]{cursor:progress}
@media(max-width:700px){
 body.cinema-site.soft-keyboard{height:var(--usable-height,100dvh);min-height:0;grid-template-rows:48px minmax(0,1fr)}
 body.soft-keyboard .masthead{height:48px;min-height:48px}
 body.soft-keyboard .site-credits{display:none}
 body.soft-keyboard #screen-create.challenge-studio.active,body.soft-keyboard #screen-join.active{padding:6px 0;gap:6px;justify-content:center}
 body.soft-keyboard .challenge-intro,body.soft-keyboard .challenge-preview,body.soft-keyboard #screen-join .setup-story{display:none}
 body.soft-keyboard #screen-create .challenge-form{padding:10px;gap:5px 9px}
 body.soft-keyboard .challenge-form .input{min-height:32px;padding-block:5px}
 body.soft-keyboard .challenge-form-title,body.soft-keyboard #category-note,body.soft-keyboard .challenge-footnote{display:none}
 body.soft-keyboard #screen-solo.active{grid-template-areas:"heading" "chat";grid-template-rows:28px minmax(0,1fr)}
 body.soft-keyboard #screen-solo .board-area,body.soft-keyboard #screen-solo .companion-prompt{display:none}
 body.soft-keyboard #screen-solo .bot-companion{display:flex;margin:0 0 6px;padding:8px;gap:6px}
 body.soft-keyboard #screen-solo .companion-actions{display:none}
 body.soft-keyboard #screen-solo .chat-log{min-height:35px}
}

/* Waiting room shares the home material and fits within the page viewport. */
body.cinema-site:has(#screen-waiting.active){height:100dvh;min-height:0;display:grid;overflow:hidden}
body:has(#screen-waiting.active) #app{min-height:0;overflow:hidden;padding-block:8px}
body #screen-waiting.active{height:100%;min-height:0;width:min(760px,100%);margin:auto;padding:0;box-sizing:border-box}



body.cinema-site .seat-avatar,body.cinema-site .player-seat.ready .seat-avatar{width:48px;height:48px;background:var(--identity-dark);color:#d8bd86;border:1px solid #a4a4a244;box-shadow:inset 0 1px #ffffff20}





#screen-waiting .invite-ticket{border-radius:12px;padding:12px}



#screen-waiting>.text-btn{min-height:28px;padding:3px 8px;font-size:11px}



body:has(#screen-waiting.active) #app{width:100%;box-sizing:border-box;padding:8px 16px}
body:has(#screen-waiting.active) .site-credits{height:30px;min-height:0;margin:0 auto;padding:4px 0;box-sizing:border-box;flex-wrap:nowrap;overflow:hidden}
body:has(#screen-waiting.active) .footer-team{display:none}
@media(max-width:700px){body:has(#screen-waiting.active) .site-credits{height:27px}body:has(#screen-waiting.active) #app{padding:6px 12px}}

body.cinema-site :is(#secret-choice-title,#guess-title,#result-title,#solo-result-title,#error-title,#lobby-title){font-family:var(--identity-font);font-weight:800;background:var(--identity-silver);background-clip:text;-webkit-background-clip:text;color:transparent;text-shadow:0 2px 3px #0007}

/* Guide examples reuse the active game artwork with square, edge-to-edge frames. */
body.cinema-site .guide-thumbs img{width:75px;height:75px;aspect-ratio:1;display:block;object-fit:contain;object-position:center;padding:0;box-sizing:border-box;background:#111820;border:1px solid #b8aa8c90;border-radius:7px;box-shadow:inset 0 1px #ffffff15,0 3px 8px #0003}
body.cinema-site .guide-thumbs.objects img{padding:0;background:#f7f6f2;object-fit:contain}

#modal-solo-category .solo-category-card{width:min(480px,calc(100vw - 28px));padding:22px;box-sizing:border-box;border-radius:16px}
#solo-category-title{font-size:23px;margin:5px 0 0;background:var(--identity-silver);background-clip:text;color:transparent;text-shadow:0 2px 3px #0007}
.solo-category-options{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:20px 0 10px}
.solo-category-options .btn{display:flex;flex-direction:column;gap:10px;padding:16px 10px;border-radius:11px;white-space:normal}
.solo-category-options img{width:74px;height:74px;object-fit:contain;border-radius:8px;border:1px solid #ad9b7666;background:#f4f1e9}
.solo-category-options strong{font-size:15px}.solo-category-options small{font-size:10px;font-weight:400;color:#bbbcb6}
#solo-resume-choice{width:100%;font-size:11px;margin-top:10px}
#solo-switch-category{font-size:10px;min-height:24px;padding:2px}

/* Match geometry follows the actual board space, never stretches the photograph. */
@media(min-width:901px){
 body.cinema-site:has(#screen-game.active){--header-height:64px;display:flex;flex-direction:column}
 body:has(#screen-game.active) #app{flex:1;min-height:0;width:100%;max-width:none;padding:0;box-sizing:border-box}
 body.cinema-site #screen-game.active{width:100%;}
 
 body.cinema-site #screen-game .characters-board{box-sizing:border-box;grid-template-columns:repeat(var(--match-columns,12),var(--match-card-size,72px))!important;grid-template-rows:repeat(var(--match-rows,4),max-content)!important;gap:10px!important;align-content:start!important;justify-content:center;padding:6px!important}
 
 
 
 
 
 
 
 
 
 
 
 body.cinema-site #screen-game .match-score{font-size:12px}
}

.match-board-pages{display:flex;align-items:center;justify-content:center;gap:16px;grid-column:1/-1;font-size:11px}
.match-board-pages[hidden]{display:none!important}.match-board-pages button{font:inherit;padding:3px 12px;border:1px solid #9fa4a960;background:var(--identity-dark);color:#e3d8c1;border-radius:6px}
@media(min-width:901px){body:has(#screen-game.active) .board-area:has(.match-board-pages:not([hidden])){grid-template-rows:minmax(0,1fr) 28px}body:has(#screen-game.active) .board-area:has(.match-board-pages:not([hidden])) .my-secret-panel{grid-row:1}}
@media(max-width:900px){
 html:has(#screen-game.active),body.cinema-site:has(#screen-game.active){height:100dvh;min-height:0;overflow:hidden}
 body.cinema-site:has(#screen-game.active){display:flex;flex-direction:column;--header-height:48px}
 body:has(#screen-game.active) .masthead{height:48px;min-height:48px}
 body:has(#screen-game.active) .site-credits{display:none}
 body:has(#screen-game.active) #app{flex:1;min-height:0;width:100%;padding:0;overflow:hidden}
 body.cinema-site #screen-game.active{width:100%;height:100%;min-height:0;margin:0;box-sizing:border-box;overflow:hidden}
 body.cinema-site #screen-game .match-toolbar{position:static;flex:none;margin:0}
 
 
 body.cinema-site #screen-game .player-tag strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #screen-game .player-tag small,#screen-game #round-label{display:none}
 
 
 
 body.cinema-site #screen-game .board-toolbar{justify-content:center;}
 #screen-game .board-toolbar>div:last-child{display:none}
 
 body.cinema-site #screen-game .board-utilities{gap:4px}
 
 
 body.cinema-site #screen-game .my-secret-panel{justify-content:center;}
 
 
 
 
 
 body.cinema-site #screen-game .characters-board{height:100%;min-height:0;box-sizing:border-box;grid-template-columns:repeat(var(--match-columns,4),var(--match-card-size,65px))!important;grid-template-rows:repeat(var(--match-rows,3),max-content)!important;gap:10px!important;align-content:start;justify-content:center;padding:6px!important;overflow:hidden}
 
 
 
 
 
 
 
}
/* Short zoomed windows keep form controls compact and inside their container. */
@media(max-height:600px){body.cinema-site #screen-create.challenge-studio.active{gap:8px;padding:6px 0}.challenge-intro p{display:none}.challenge-form-title{padding-bottom:6px}.challenge-form .input{min-height:32px!important;padding-block:5px!important}.challenge-footnote{display:none}}

body.cinema-site #screen-game .characters-board{width:100%!important;min-width:0!important;max-width:none!important;justify-self:stretch!important}


@media(max-width:900px){
 
 
 body.cinema-site #screen-game .my-secret-content>*{grid-area:auto!important}
 body.cinema-site #screen-game .match-turn{flex-wrap:wrap;min-height:0;}
 
}

#match-board-page{direction:ltr;unicode-bidi:isolate;display:inline-block}

/* Round clarity and a compact control strip aligned with the actual board. */

body.cinema-site #screen-game .match-toolbar{width:var(--board-control-width,100%);max-width:100%;box-sizing:border-box;border-radius:12px}



body.cinema-site #turn-card{border-radius:9px;padding:5px 12px;gap:9px;min-height:36px;box-sizing:border-box}
body.cinema-site #turn-indicator{font-weight:800;font-size:14px!important;}

body.cinema-site #screen-game.opponent-turn #turn-card{background:linear-gradient(120deg,#3a3023,#25231f);border:1px solid #be9d65}

body.cinema-site #screen-game .active-player:after{content:'يلعب الآن';font-size:9px;color:#d8c292;white-space:nowrap}
body.cinema-site #toggle-secret{align-self:center}

.secret-is-hidden{position:relative}.secret-is-hidden:before{content:'؟';position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);font-size:46px;color:#c4ae80;pointer-events:none}
#modal-leave-match .leave-match-card{width:min(420px,calc(100vw - 28px));text-align:center;border-radius:14px;padding:24px} .leave-match-card h2{font-size:23px}
body.cinema-site :is(#modal-gameover,#modal-solo-result) .result-card{width:min(640px,calc(100vw - 28px));padding:24px;border-radius:18px;box-sizing:border-box}
body.cinema-site :is(#modal-gameover,#modal-solo-result) .result-icon{width:45px;height:45px;margin:0 auto 9px}
body.cinema-site :is(#result-title,#solo-result-title){font-size:27px;margin:8px 0}
body.cinema-site .result-desc{line-height:1.8;}
.result-comparison{display:grid!important;grid-template-columns:1fr 1fr;gap:14px;margin:15px 0}.result-comparison[hidden]{display:none!important}
.comparison-card{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;padding:14px;border:1px solid #bc9b6970;border-radius:12px;background:linear-gradient(145deg,#32363b77,#171f23)}
.comparison-guess{border-color:#c4818160}.comparison-actual{border-color:#d0b279;background:linear-gradient(145deg,#8e744622,#171f23)}
.comparison-card>span:first-child{font-size:11px;color:#c3c1b9}.comparison-card>strong{font-size:16px;color:#e4dfd2}.comparison-card>small{font-size:9px;color:#c7af7d}
.comparison-portrait{width:min(170px,100%,24dvh);aspect-ratio:1;display:block;background:#f7f6f2;border:1px solid #a9987966;border-radius:8px;overflow:hidden}
.comparison-portrait img{display:block;width:100%;height:100%;object-fit:contain}
body.cinema-site #result-stats{font-size:10px;line-height:1.8;margin:12px 0;padding:9px;border-radius:8px;background:#11171ba6;flex-wrap:wrap}
body.cinema-site #rematch-players{margin:10px 0;gap:10px}body.cinema-site #rematch-players .player-seat{padding:7px;border-radius:8px;font-size:10px}
body.cinema-site .result-actions .btn{min-height:34px;font-size:11px;padding:6px 12px}
@media(max-width:900px){body.cinema-site #screen-game .match-toolbar{width:100%}body.cinema-site #toggle-secret{margin-inline-start:auto;white-space:nowrap}body.cinema-site #turn-indicator{font-size:11px}.active-player:after{display:none}}
@media(max-width:600px){.comparison-card{padding:9px;gap:7px}.result-comparison{gap:9px}.comparison-card>strong{font-size:13px}body.cinema-site :is(#modal-gameover,#modal-solo-result) .result-card{padding:17px}.comparison-card>span:first-child{font-size:10px}body.cinema-site :is(#result-title,#solo-result-title){font-size:23px}}

#solo-reveal[hidden],#solo-result-name[hidden],#solo-result-caption[hidden]{display:none!important}

/* Native document transitions retain navigation while the page changes beneath it. */
@view-transition{navigation:auto}
body.cinema-site .masthead{view-transition-name:site-navigation}
::view-transition-group(root){animation-duration:180ms}
::view-transition-old(root){animation:page-away 120ms ease-out both}
::view-transition-new(root){animation:page-enter 180ms ease-out both}
::view-transition-group(site-navigation),::view-transition-old(site-navigation),::view-transition-new(site-navigation){animation:none}
::view-transition{pointer-events:none}
@keyframes page-away{to{opacity:0}}
@keyframes page-enter{from{opacity:0}to{opacity:1}}
/* Avoid stacking decorative entry animation on top of the navigation transition. */
html.page-transition-active body.cinema-site :is(.challenge-intro,.challenge-preview,.challenge-form,.setup-story,.setup-form,.page-intro,.cinema-logo,.cinema-heading p,.cinema-play){animation:none!important}
@media(max-width:700px){::view-transition-group(root),::view-transition-new(root){animation-duration:140ms}}
@media(prefers-reduced-motion:reduce){@view-transition{navigation:none}::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}

#app[hidden]{display:none!important}
#route-page:focus,#app:focus{outline:none}
@media(prefers-reduced-motion:no-preference){#route-page{animation:cinema-fade 130ms ease-out both}#route-page .page-intro{animation:none!important}}

html.client-routing body.cinema-site :is(.challenge-intro,.challenge-preview,.challenge-form,.setup-story,.setup-form,.page-intro,.cinema-logo,.cinema-heading p,.cinema-play){animation:none!important}
/* Keep the shared shell usable when desktop browser zoom reduces the viewport. */
body.cinema-site .masthead{box-sizing:border-box;flex-shrink:0;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
body.cinema-site :is(.home-nav,.header-tools,.challenge-workspace,.challenge-form,.account-profile,.board-toolbar,.match-score)>*{min-width:0}
body.cinema-site :is(input,select,textarea){max-width:100%;box-sizing:border-box}
body.cinema-site .home-nav{flex-wrap:nowrap}
body.cinema-site .home-nav a{white-space:nowrap}
body.cinema-site .board-toolbar{flex-wrap:wrap;gap:8px}
body.cinema-site :is(.dock-actions,.board-utilities,.result-actions){flex-wrap:wrap;justify-content:center}
body.cinema-site .player-tag{min-width:0;overflow:hidden}
body.cinema-site .player-tag strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.cinema-site .match-turn{min-width:0;flex-wrap:wrap;justify-content:center}
body.cinema-site .modal{overscroll-behavior:contain}

body.cinema-site .rail-menu{box-sizing:border-box;max-height:calc(100dvh - 76px);overflow-y:auto;overscroll-behavior:contain}
body.cinema-site .account-heading{flex-wrap:wrap}
@media(min-width:701px) and (max-height:650px){
 body.cinema-site:has(#screen-create.active) #app,body.cinema-site:has(#screen-join.active) #app{overflow-y:auto}
 body.cinema-site #screen-create.challenge-studio.active,body.cinema-site #screen-join.active{height:auto;min-height:100%;overflow:visible;justify-content:flex-start;padding-block:12px}
 body.cinema-site .challenge-workspace{gap:20px;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
 
 body.cinema-site .challenge-intro .eyebrow,body.cinema-site .challenge-footnote{display:none}
 body.cinema-site .challenge-intro h1{font-size:21px}
 body.cinema-site .challenge-form-title{padding-bottom:6px}
 body.cinema-site .challenge-form .input{min-height:32px;padding-block:5px}
 body.cinema-site .challenge-field{gap:3px}
 body.cinema-site #screen-home .cinema-content{display:flex;flex-direction:column;justify-content:center;gap:12px}
 body.cinema-site #screen-home .cinema-heading,body.cinema-site #screen-home .cinema-play{position:relative;inset:auto;transform:none;flex:none;width:100%;box-sizing:border-box}
 body.cinema-site #screen-home .cinema-logo{width:min(245px,50vh);margin:0 auto 5px}
 body.cinema-site #screen-home .cinema-heading p{margin-top:5px}
 body.cinema-site #screen-home .cinema-play{padding:10px 15px}
 body.cinema-site #screen-home .cinema-players{display:none}
 
}
@media(min-width:701px) and (max-width:1050px){
 body.cinema-site .masthead{gap:10px;padding-inline:16px}
 
 body.cinema-site .home-nav a{min-width:0;padding:7px 10px}
 body.cinema-site .match-score{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
 body.cinema-site #screen-game .board-toolbar>div:last-child{display:none}
}

/* /css/account.css */
body.cinema-site .account-main{margin:clamp(32px,7vh,72px) auto 48px;color:#d2d2ce;line-height:1.9}
.account-main [hidden]{display:none!important}.account-kicker{font-size:10px;letter-spacing:1px;color:#c4a66e;margin-bottom:24px}.account-loading{padding:35px 0;color:#bbb}
#account-guest{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center;min-height:330px}.account-welcome{position:relative;padding:12px 0}.account-emblem{display:inline-grid;place-items:center;width:51px;height:67px;border:1px solid #c4b99f;border-radius:7px;transform:rotate(-12deg);font-size:45px;font-weight:800;color:#d7b77b;background:linear-gradient(135deg,#34383a,#11171b);box-shadow:4px 6px 0 #0003;margin-bottom:14px}.account-main h1,.account-main h2{font-family:inherit;font-weight:800;background:var(--identity-silver);background-clip:text;-webkit-background-clip:text;color:transparent;text-shadow:0 2px 3px #0007;line-height:1.6}.account-main h1{font-size:30px;}.account-main h2{font-size:19px;}.account-welcome>p{font-size:14px;color:#aaa;line-height:2.1}.account-benefits{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:24px;color:#c4b28f;font-size:10px}.account-benefits span+span{border-inline-start:1px solid #b8aa8c44;padding-inline-start:14px}.account-entry{padding:24px 30px 24px 0;border-inline-start:1px solid #b9b9a82b}.account-entry>p{font-size:12px;color:#aaa;margin-bottom:20px}.account-main .account-google{width:100%;min-height:44px;background:linear-gradient(145deg,#f0efeb,#cecdc8);color:#202326;border:1px solid #fff9;font-size:13px;font-weight:700;box-shadow:inset 0 1px 1px #fff8,0 4px 12px #0003}.account-main .btn:disabled{opacity:.5;cursor:not-allowed}.account-entry .account-availability{font-size:11px;color:#c2ae89;margin:10px 0}.account-guest-link{display:flex;justify-content:center;gap:16px;color:#d6bb87;padding:13px 0;text-decoration:none}.account-entry small{display:block;font-size:10px;line-height:1.9;color:#8f9697;margin-top:14px}.account-policy{display:flex;gap:12px;margin-top:13px;font-size:10px;color:#8f9697}.account-policy a{color:inherit}.account-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.account-heading h1{font-size:27px;margin:0}.account-heading p{font-size:12px;color:#aeb2b2;margin:8px 0 0}.account-main .btn{font-family:inherit;border-radius:8px;min-height:38px;padding:9px 17px}.account-heading a{text-decoration:none}.account-tabs{display:flex;gap:28px;border-bottom:1px solid #bcc4c329;margin:28px 0}.account-tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:0 3px 12px;color:#aeb0ae;font:inherit;cursor:pointer}.account-tabs button[aria-current]{color:#e0c187;border-bottom-color:#d5b774}.account-profile{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:start}.account-fields>label:first-child,.account-avatars legend{display:block;font-weight:700;font-size:13px;margin-bottom:10px}.account-fields .input{font-size:13px;width:100%;min-height:42px}.account-hint{font-size:10px;color:#929c9e;margin:9px 0 18px}.account-sound{display:flex;gap:10px;align-items:center;margin:22px 0;font-size:12px}.account-sound input{accent-color:#c6a365;width:16px;height:16px}.account-avatars{border:0;padding:0;min-width:0}.account-avatars legend{padding:0}#account-avatar-options{display:grid;grid-template-columns:repeat(3,64px);gap:12px}.account-avatar-choice{position:relative;display:block;cursor:pointer}.account-avatar-choice input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.account-avatar-choice img{width:64px;height:64px;object-fit:cover;border-radius:9px;border:2px solid #ffffff25;background:#171f23;display:block;transition:border-color .15s,box-shadow .15s}.account-avatar-choice input:checked+img{border-color:#d6b779;box-shadow:0 0 0 3px #cfac6f24}.account-avatar-choice input:focus-visible+img{outline:2px solid #e0c48a;outline-offset:4px}.account-description{font-size:12px;color:#a1a8a7}#account-library{margin:22px 0}.account-empty{padding:25px 0;border-block:1px solid #b7c0bf25;color:#a1a8a7;font-size:12px}.account-library-item{display:flex;justify-content:space-between;gap:16px;padding:15px 0;border-bottom:1px solid #ffffff20}.account-library-item span{color:#c5ae83;font-size:11px}.account-security-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid #bbc4c324}.account-security-row strong{font-size:12px}.account-security-row p{font-size:11px;color:#9ca7a7;margin-top:5px;overflow-wrap:anywhere}.account-security-row small,.account-connected{font-size:10px;color:#bea77f}.account-security-row>div{min-width:0}.account-exit{display:block;background:none;border:0;color:#d9a59e;font:inherit;font-size:12px;padding:16px 0;cursor:pointer}#account-status{min-height:24px;margin-top:16px;color:#dfc48e;font-size:12px}#account-status[data-error="true"]{color:#e0a5a0}.account-main button:focus-visible,.account-main a:focus-visible{outline:2px solid #d4b676;outline-offset:4px}.header-tools .header-account{font-family:inherit;font-size:11px;color:#c9b384;text-decoration:none;white-space:nowrap;border-inline-end:1px solid #b3ae9a35;padding-inline-end:14px;margin-inline-end:5px}
@media(max-width:700px){body.cinema-site .account-main{margin:26px auto 32px}.account-kicker{margin-bottom:14px}#account-guest{display:block;min-height:0}.account-welcome{padding:0 0 20px}.account-main h1{font-size:25px}.account-emblem{float:left;width:40px;height:54px;font-size:35px;margin:8px 8px 0 0}.account-welcome>p{font-size:12px}.account-benefits{margin-top:16px;font-size:9px}.account-entry{padding:23px 0 0;border-inline-start:0;border-top:1px solid #ffffff25}.account-main h2{font-size:17px}.account-heading .btn{font-size:10px;padding:8px 11px}.account-profile{gap:24px;grid-template-columns:1fr}.account-avatars{grid-row:1}#account-avatar-options{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.account-avatar-choice img{width:100%;height:auto;aspect-ratio:1}.account-tabs{margin:22px 0;gap:24px}.account-security-row{gap:12px;flex-wrap:wrap}.header-tools .header-account{font-size:10px;padding-inline-end:9px}.account-fields .input{font-size:16px}}
@media(prefers-reduced-motion:reduce){.account-avatar-choice img{transition:none}}

body.cinema-site .store-main [hidden]{display:none!important}
#store-price{color:#e0c187}
#store-availability{margin-top:10px}










.admin-pager{display:flex;align-items:center;gap:10px;margin-block:10px 20px}
.case-store-link{display:block;color:#dec18a;font-size:12px;line-height:1.55;margin-top:4px}


.checkout-consent{display:flex;align-items:flex-start;gap:8px;margin-block:8px;color:#d6d0c5;font-size:12px;line-height:1.65}
.checkout-consent input{flex:0 0 auto;margin:4px 0 0;accent-color:#c4a872}
.checkout-consent a{color:#e0c187;text-decoration:underline}
.account-main .checkout-consent span{font-size:inherit;color:inherit}

/* ================= Account, library & store polish ================= */
html body.cinema-site .account-main{width:min(840px,calc(100% - 64px))}
html body.cinema-site .account-main :is(.account-policy a,.store-main .account-policy a){color:#d7b474;text-decoration:none}
html body.cinema-site .account-main .account-policy a:hover{color:#f0d9a3}
/* themed checkboxes */
html body.cinema-site .account-main input[type=checkbox]{-webkit-appearance:none;appearance:none;flex:none;width:19px;height:19px;margin:3px 0 0;border:1px solid #b8a17b8c;border-radius:6px;background:#12161b;cursor:pointer;display:inline-grid;place-content:center;transition:background-color .15s,border-color .15s}
html body.cinema-site .account-main input[type=checkbox]::after{content:"";width:9px;height:5px;border:2px solid #1a1409;border-width:0 0 2px 2px;transform:rotate(-45deg) translate(1px,-1px) scale(0);transition:transform .12s}
html body.cinema-site .account-main input[type=checkbox]:checked{background:linear-gradient(#f0d9a3,#b8924f);border-color:#f0d9a3}
html body.cinema-site .account-main input[type=checkbox]:checked::after{transform:rotate(-45deg) translate(1px,-1px) scale(1)}
html body.cinema-site .account-main input[type=checkbox]:focus-visible{outline:2px solid #d7b474;outline-offset:3px}
html body.cinema-site .account-main .checkout-consent a{color:#e0c187;text-decoration:underline;text-decoration-color:#e0c18755}
/* library: paid games + orders */

html body.cinema-site .account-main :is(.paid-games,.paid-orders)>h3{margin:0 0 12px;font-size:16px;color:#e9d7ae}
html body.cinema-site .account-main .paid-balance{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 18px;border:1px solid #a492714f;border-radius:14px;background:linear-gradient(145deg,#2b3036,#171b20)}
html body.cinema-site .account-main .paid-balance p{margin:0;color:#d8d2c4}
html body.cinema-site .account-main .paid-balance a{color:#e0c187;text-decoration:underline;text-decoration-color:#e0c18766;text-underline-offset:4px}
html body.cinema-site .account-main .paid-balance strong{font-size:15px;color:#ece6d6}
html body.cinema-site .account-main .paid-left{padding:3px 12px;border-radius:999px;border:1px solid #d7b47466;background:#d7b4741a;color:#f0d9a3;font-weight:700;font-size:12px}
html body.cinema-site .account-main .paid-info{list-style:none;margin:12px 0 0;display:grid;}
html body.cinema-site .account-main .paid-info li{position:relative;padding-inline-start:20px;line-height:1.8}
html body.cinema-site .account-main .paid-info li::before{content:"";position:absolute;inset-inline-start:2px;top:.72em;width:7px;height:7px;border-radius:50%;background:#c4a66e;box-shadow:0 0 0 3px #c4a66e22}
html body.cinema-site .account-main .paid-order{display:flex;align-items:center;gap:12px;padding:11px 14px;margin-bottom:8px;border:1px solid #ffffff12;border-radius:12px;background:#ffffff05}
html body.cinema-site .account-main .paid-order-detail{flex:1;color:#d8d2c4;font-size:13px}
html body.cinema-site .account-main .paid-order .btn{min-height:34px;padding:4px 14px;font-size:12px}
html body.cinema-site .account-main .paid-order-status{padding:2px 11px;border-radius:999px;font-size:11.5px;white-space:nowrap;border:1px solid #ffffff22;color:#cfc9ba}
html body.cinema-site .account-main .paid-order-status.is-paid{border-color:#d7b47466;background:#d7b4741a;color:#f0d9a3}
html body.cinema-site .account-main .paid-order-status.is-pending{border-color:#c9a45a55;color:#d9bd83}
html body.cinema-site .account-main .paid-order-status.is-failed{border-color:#d9897d66;background:#d9897d17;color:#f4b7af}
/* admin summary: even grid */

/* payment result screen */
html body.cinema-site .account-main .payment-result{display:grid;justify-items:center;text-align:center;gap:10px;max-width:520px;margin:0 auto 24px;padding:20px;border:1px solid #a492714f;border-radius:22px;background:linear-gradient(145deg,#2b3036,#14181d 75%);box-shadow:inset 0 1px #ffffff12,0 12px 30px #0005}
html body.cinema-site .account-main .payment-result h1{margin:6px 0 0;font-size:clamp(22px,3.4vw,28px)}
html body.cinema-site .account-main .payment-result p{margin:0;max-width:40ch;color:#c9c4b6;font-size:13.5px;line-height:1.9}
html body.cinema-site .account-main .payment-result-icon{display:grid;place-items:center;width:62px;height:62px;border-radius:50%;border:1px solid #d7b47488;background:radial-gradient(circle at 50% 35%,#3a3f46,#171b20);box-shadow:0 0 0 7px #d7b47412}
html body.cinema-site .account-main .payment-result-icon::before{content:"";width:22px;height:12px;border:3px solid #f0d9a3;border-width:0 0 3px 3px;transform:rotate(-45deg) translate(2px,-2px)}
html body.cinema-site .account-main .payment-result[data-state=failed] .payment-result-icon::before{content:"×";width:auto;height:auto;border:0;transform:none;font:400 38px/1 Arial,sans-serif;color:#d7b474}
html body.cinema-site .account-main .payment-result:is([data-state=pending],[data-state=checking],[data-state=unavailable]) .payment-result-icon::before{content:"…";width:auto;height:auto;border:0;transform:none;font:700 34px/1 Arial,sans-serif;color:#d7b474;padding-bottom:10px}
html body.cinema-site .account-main .payment-result-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:12px}
html body.cinema-site .account-main .payment-result-actions .btn{min-width:150px}
@media(max-width:700px){html body.cinema-site .account-main{width:calc(100% - 36px)}html body.cinema-site .account-main .paid-order{flex-wrap:wrap}}
html body.cinema-site .account-main .payment-result-actions .btn{text-decoration:none}
html body.cinema-site .account-main .paid-balance p a{color:#e8c98c !important;font-weight:700}
/* ===== v9: calmer account, admin, store ===== */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
html body.cinema-site .account-main .account-heading{padding-bottom:4px}
html body.cinema-site .account-main .account-tabs{display:inline-flex;gap:4px;margin:22px 0 26px;padding:4px;border:1px solid #ffffff14;border-radius:12px;background:#ffffff06;max-width:100%;overflow-x:auto}
html body.cinema-site .account-main .account-tabs button{padding:8px 20px;border:0;border-radius:9px;font-size:13px;white-space:nowrap;transition:background-color .15s,color .15s}
html body.cinema-site .account-main .account-tabs button:hover{color:#eadfc6}
html body.cinema-site .account-main .account-tabs button[aria-current]{background:#d7b4741f;color:#f0d9a3;box-shadow:inset 0 0 0 1px #d7b4743d}
/* profile as two quiet cards */
html body.cinema-site .account-main .account-profile{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:18px;align-items:stretch}
html body.cinema-site .account-main :is(.account-fields,.account-avatars){padding:22px;border:1px solid #ffffff12;border-radius:16px;background:linear-gradient(160deg,#ffffff08,#ffffff03)}
html body.cinema-site .account-main .account-fields{display:grid;align-content:start;gap:0}
html body.cinema-site .account-main .account-hint{margin:8px 0 0;font-size:11.5px;color:#9aa3a4}
html body.cinema-site .account-main .account-sound{margin:18px 0 20px;padding:12px 14px;border-radius:12px;background:#ffffff06;border:1px solid #ffffff0d;font-size:13px;cursor:pointer}
html body.cinema-site .account-main .account-fields .btn{justify-self:start;min-width:150px}
html body.cinema-site .account-main #account-avatar-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:260px}
html body.cinema-site .account-main .account-avatar-choice img{width:100%;height:auto;aspect-ratio:1}
/* library */
html body.cinema-site .account-main [data-account-panel=library]>h2{margin-bottom:4px}
html body.cinema-site .account-main #account-library{margin:18px 0 0;display:grid;gap:0}
html body.cinema-site .account-main #account-library>.account-library-item{order:2;align-items:center;padding:13px 16px;margin-top:10px;border:1px solid #ffffff12;border-radius:12px;background:#ffffff05}
html body.cinema-site .account-main .paid-games{order:0;margin-top:0}
html body.cinema-site .account-main .paid-orders{order:3;margin-top:28px}
html body.cinema-site .account-main .paid-info{margin-top:12px;padding:12px 16px;border-radius:12px;background:#ffffff05;gap:4px}
html body.cinema-site .account-main .paid-info li{font-size:12.5px;color:#aab1b1}
/* security rows as cards */
html body.cinema-site .account-main [data-account-panel=security]{display:grid;gap:10px}
html body.cinema-site .account-main .account-security-row{padding:15px 18px;border:1px solid #ffffff12;border-radius:14px;background:#ffffff05}
html body.cinema-site .account-main .account-exit{justify-self:start;padding:10px 4px}
/* ---- admin ---- */



















html body.cinema-site .account-main .admin-pager{margin-top:12px;}









/* ---- store ---- */
html body.cinema-site .account-main.store-main{width:min(980px,calc(100% - 64px))}
@media(max-width:860px){
 html body.cinema-site .account-main.store-main{width:calc(100% - 36px)}
}
@media(max-width:700px){
 html body.cinema-site .account-main .account-profile{grid-template-columns:1fr}
 
 
 
 
 html body.cinema-site .account-main :is(.account-fields,.account-avatars){padding:16px}
}
html body.cinema-site .account-main .account-avatars{display:block}
html body.cinema-site .account-main .account-avatars legend{float:inline-start;width:100%;padding:0;margin:0 0 14px}
html body.cinema-site .account-main .account-avatars legend+*{clear:both}
html body.cinema-site .account-main .paid-order a.btn{text-decoration:none}
/* ===== v10: toolbar, store grid ===== */
html body.cinema-site .account-main #account-member .account-heading{justify-content:center;text-align:center}
html body.cinema-site .account-main .account-toolbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin:20px 0 26px}
html body.cinema-site .account-main .account-toolbar .account-tabs{grid-column:2;margin:0;justify-self:center}
html body.cinema-site .account-main .account-toolbar .account-play{grid-column:3;justify-self:end;min-height:38px;padding:7px 16px;white-space:nowrap}

html body.cinema-site .account-main .store-consent{display:flex;align-items:flex-start;gap:10px;border:1px solid #ffffff12;border-radius:12px;background:#ffffff05;color:#b4b9ba}
html body.cinema-site .account-main .store-consent[hidden]{display:none}
html body.cinema-site .account-main .store-availability{color:#c9b384}
html body.cinema-site .account-main .store-grid{display:grid;}
html body.cinema-site .account-main .store-card{display:flex;overflow:hidden;border:1px solid #a492714f;background:linear-gradient(160deg,#2b3036,#14181d 85%);box-shadow:inset 0 1px #ffffff12,0 14px 36px #0007;transition:transform .18s,border-color .18s}
html body.cinema-site .account-main .store-card:hover{transform:translateY(-2px);border-color:#d7b47488}
html body.cinema-site .account-main .store-media{position:relative;background:#0d1013}
html body.cinema-site .account-main .store-media img{display:block;width:100%;object-fit:cover;border:0;border-radius:0}
html body.cinema-site .account-main .store-media::after{content:"";position:absolute;inset:0;}
html body.cinema-site .account-main .store-tag{position:absolute;z-index:1;top:12px;inset-inline-start:12px;padding:3px 12px;border-radius:999px;border:1px solid #d7b47488;background:#14181dcc;color:#f0d9a3;font-size:11.5px;font-weight:700}
html body.cinema-site .account-main .store-card-body{display:flex;flex-direction:column;flex:1;}
html body.cinema-site .account-main .store-card-body h2{margin:0;}
html body.cinema-site .account-main .store-lead{margin:0;color:#d2ccbe}
html body.cinema-site .account-main .store-points{list-style:none;margin:0;padding:0;display:grid;gap:5px}
html body.cinema-site .account-main .store-points li{position:relative;padding-inline-start:22px;color:#a9afb0}
html body.cinema-site .account-main .store-points li::before{content:"";position:absolute;inset-inline-start:2px;top:.5em;width:9px;height:5px;border:2px solid #d7b474;border-width:0 0 2px 2px;transform:rotate(-45deg)}
html body.cinema-site .account-main .store-card-foot{display:grid;margin-top:auto;border-top:1px solid #ffffff12}
html body.cinema-site .account-main .store-price-row{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
html body.cinema-site .account-main .store-price{line-height:1.2;color:#f0d9a3;background:none;-webkit-text-fill-color:currentColor}
html body.cinema-site .account-main .store-rounds{font-size:12px;color:#aab1b1}
html body.cinema-site .account-main .store-card-foot .btn{width:100%;text-decoration:none;display:inline-grid;place-items:center;text-align:center}
html body.cinema-site .account-main .store-card-foot .btn[hidden]{display:none}
html body.cinema-site .account-main .store-card-soon{align-items:center;justify-content:center;border-style:dashed;background:#ffffff04;box-shadow:none}
html body.cinema-site .account-main .store-card-soon:hover{transform:none;border-color:#a492714f}
html body.cinema-site .account-main .store-soon{display:grid;justify-items:center;gap:6px;text-align:center}
html body.cinema-site .account-main .store-soon span{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;border:1px solid #d7b47466;color:#d7b474;font-size:24px;font-weight:800}
html body.cinema-site .account-main .store-soon h2{margin:6px 0 0;font-size:16px}
html body.cinema-site .account-main .store-soon p{margin:0;max-width:26ch;font-size:12px;line-height:1.8;color:#9aa1a2}



@media(max-width:700px){
 html body.cinema-site .account-main .account-toolbar{grid-template-columns:1fr;justify-items:center}
 html body.cinema-site .account-main .account-toolbar .account-tabs,html body.cinema-site .account-main .account-toolbar .account-play{grid-column:1}
 html body.cinema-site .account-main .account-toolbar .account-play{justify-self:stretch;text-align:center}
 
}
html body.cinema-site .account-main .account-toolbar .account-play{text-decoration:none}

/* ===== v11: tighter top, compact one-screen store ===== */
html body.cinema-site .account-main{margin-top:clamp(14px,2.8vh,28px);margin-bottom:28px}
.account-main .account-kicker{margin-bottom:12px}
html body.cinema-site .account-main.store-main .account-heading h1{font-size:var(--t-h1)}
html body.cinema-site .account-main.store-main .account-heading p{margin:4px 0 0}
html body.cinema-site .account-main .store-consent{margin:14px 0 0;padding:9px 14px;font-size:11.5px;line-height:1.7}
html body.cinema-site .account-main .store-availability{margin:8px 2px 0;}
html body.cinema-site .account-main .store-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));gap:14px;margin-top:12px}
html body.cinema-site .account-main .store-card{flex-direction:row;min-height:0;border-radius:16px}
html body.cinema-site .account-main .store-media{flex:0 0 40%;aspect-ratio:auto;min-height:100%}
html body.cinema-site .account-main .store-media img{position:absolute;inset:0;height:100%}
html body.cinema-site .account-main .store-media::after{background:linear-gradient(90deg,#14181d 0,transparent 45%)}
html body.cinema-site .account-main .store-card-body{gap:6px;min-width:0}

html body.cinema-site .account-main .store-lead{font-size:12.5px;line-height:1.7}
html body.cinema-site .account-main .store-points li{font-size:11.5px;line-height:1.6}
html body.cinema-site .account-main .store-card-foot{gap:8px;padding-top:10px}
html body.cinema-site .account-main .store-price{font-size:20px}
html body.cinema-site .account-main .store-card-foot .btn{min-height:38px;font-size:12.5px}
html body.cinema-site .account-main .store-card-soon{flex-direction:column;min-height:170px}
html body.cinema-site .account-main .store-soon{padding:14px}
@media(max-width:700px){
 html body.cinema-site .account-main .store-card{flex-direction:column}
 html body.cinema-site .account-main .store-media{flex:none;aspect-ratio:16/9;min-height:0}
 html body.cinema-site .account-main .store-media::after{background:linear-gradient(0deg,#14181d 0,transparent 45%)}
}
html body.cinema-site .account-main .paid-report{display:inline-block;margin-top:10px;font-size:12.5px;color:#e0c187;text-decoration:underline;text-decoration-color:#e0c18755;text-underline-offset:4px}
html body.cinema-site .account-main .paid-report:hover{color:#f0d9a3}

/* ---- store cart ---- */
html body.cinema-site .account-main .store-heading-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
html body.cinema-site .account-main .store-cart-open{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:40px}
html body.cinema-site .account-main :is(.store-cart-open,.store-add-cart,.store-cart-head,.store-cart-stepper,.store-cart-remove) .icon{width:18px;height:18px}
html body.cinema-site .account-main .store-cart-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--pl-gold,#d7b474);color:#17140e;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
html body.cinema-site .account-main .store-cart-count[hidden]{display:none}
html body.cinema-site .account-main .store-card-foot .store-add-cart{display:inline-flex;align-items:center;justify-content:center;gap:8px}
html body.cinema-site .account-main .store-card-foot .store-add-cart[hidden]{display:none}

html body.cinema-site .account-main .store-cart{width:min(460px,calc(100% - 32px));max-height:min(640px,calc(100dvh - 32px));margin:auto;padding:18px;border:1px solid #a492714f;border-radius:18px;background:linear-gradient(160deg,#2b3036,#14181d 85%);color:var(--pl-ink,#ebe9e6);box-shadow:0 24px 60px #000a}
html body.cinema-site .account-main .store-cart::backdrop{background:#05070acc}
html body.cinema-site .account-main .store-cart-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
html body.cinema-site .account-main .store-cart-head h2{display:flex;align-items:center;gap:8px;margin:0;font-size:18px}
html body.cinema-site .account-main .store-cart-close{display:grid;place-items:center;width:40px;height:40px;border:1px solid #ffffff1f;border-radius:10px;background:#ffffff08;color:inherit;font-size:22px;line-height:1;cursor:pointer}
html body.cinema-site .account-main .store-cart-empty{margin:8px 0;padding:18px;border:1px dashed #ffffff1f;border-radius:12px;text-align:center;font-size:13px;line-height:1.8;color:#a9afb0}
html body.cinema-site .account-main .store-cart-empty[hidden],html body.cinema-site .account-main .store-cart-foot[hidden]{display:none}
html body.cinema-site .account-main .store-cart-items{list-style:none;margin:0;padding:0;display:grid;gap:8px}
html body.cinema-site .account-main .store-cart-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid #ffffff12;border-radius:12px;background:#ffffff05}
html body.cinema-site .account-main .store-cart-info{display:grid;gap:2px;min-width:0}
html body.cinema-site .account-main .store-cart-info strong{font-size:14px}
html body.cinema-site .account-main .store-cart-info small{font-size:12px;color:#a9afb0}
html body.cinema-site .account-main .store-cart-stepper{display:inline-flex;align-items:center;border:1px solid #ffffff1f;border-radius:10px;overflow:hidden}
html body.cinema-site .account-main .store-cart-stepper button{display:grid;place-items:center;width:36px;height:40px;padding:0;border:0;background:#ffffff08;color:#f0d9a3;cursor:pointer}
html body.cinema-site .account-main .store-cart-stepper button:disabled{color:#ffffff40;cursor:default}
html body.cinema-site .account-main .store-cart-stepper input{width:44px;height:40px;padding:0;border:0;border-inline:1px solid #ffffff1f;background:transparent;color:inherit;font:inherit;font-size:15px;font-weight:700;text-align:center;font-variant-numeric:tabular-nums}
html body.cinema-site .account-main .store-cart-sum{min-width:72px;text-align:end;font-size:14px;color:#f0d9a3;font-variant-numeric:tabular-nums}
html body.cinema-site .account-main .store-cart-remove{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:10px;background:none;color:#c9b8a6;cursor:pointer}
html body.cinema-site .account-main .store-cart-remove:hover{background:#ffffff0d;color:#eba79c}
html body.cinema-site .account-main .store-cart-foot{display:grid;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid #ffffff12}
html body.cinema-site .account-main .store-cart-total{display:flex;align-items:baseline;justify-content:space-between;font-size:14px}
html body.cinema-site .account-main .store-cart-total strong{font-size:20px;color:#f0d9a3;font-variant-numeric:tabular-nums}
html body.cinema-site .account-main .store-cart .store-consent{margin:0}
html body.cinema-site .account-main .store-cart-foot .btn{width:100%;min-height:44px;font-size:14px;display:inline-grid;place-items:center;text-decoration:none}
html body.cinema-site .account-main .store-cart-foot .btn[hidden]{display:none}
@media (max-width:480px){
  html body.cinema-site .account-main .store-cart-line{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"info remove" "stepper sum"}
  html body.cinema-site .account-main .store-cart-info{grid-area:info}
  html body.cinema-site .account-main .store-cart-remove{grid-area:remove}
  html body.cinema-site .account-main .store-cart-stepper{grid-area:stepper;justify-self:start}
  html body.cinema-site .account-main .store-cart-sum{grid-area:sum}
}

/* admin activity log */









/* Link to the admin section, shown to admins on «حسابي» */
/* It sits at the start of the tabs row (right in Arabic), opposite «ابدأ التحدّي». */
html body.cinema-site .account-main .account-admin-link{grid-column:1;grid-row:1;justify-self:start;display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:7px 16px;font-size:13px;white-space:nowrap;text-decoration:none;color:#f0d9a3;border:1px solid #d7b47455;background:#d7b47412}
html body.cinema-site .account-main .account-admin-link:hover{border-color:#d7b474aa;background:#d7b47420}
html body.cinema-site .account-main .account-admin-link .icon{width:16px;height:16px}
html body.cinema-site .account-main .account-admin-link[hidden]{display:none}
@media (max-width:700px){html body.cinema-site .account-main .account-admin-link{grid-column:1;grid-row:auto;justify-self:stretch;justify-content:center}}

/* Store products: every card shares the same layout (picture, text, price, two buttons). */
html body.cinema-site .store-food-card .store-media img{object-fit:contain;background:white}
html body.cinema-site .account-main .store-streamer-art{display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at 50% 55%,#b08a4940,transparent 68%),#10151a}
html body.cinema-site .account-main .store-streamer-art::after{display:none}
html body.cinema-site .account-main .store-streamer-symbol{display:grid;place-items:center;width:78px;height:104px;transform:rotate(-8deg);border:2px solid #d9bd83;border-radius:12px;font-size:64px;line-height:1.4;font-weight:800;color:#e2c185;box-shadow:8px 7px 0 #c7aa6833,16px 14px 0 #c7aa6817}
html body.cinema-site .account-main .store-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}
html body.cinema-site .account-main .store-buttons[hidden]{display:none}
html body.cinema-site .account-main .store-buttons .btn{width:100%;min-height:38px;padding-inline:8px;font-size:12.5px;white-space:nowrap}
html body.cinema-site .account-main .store-owned{display:flex;align-items:center;justify-content:center;min-height:38px;margin:0;border:1px solid #d7b47466;border-radius:10px;background:#d7b4741a;color:#f0d9a3;font-size:13px;font-weight:700}
html body.cinema-site .account-main .store-owned[hidden]{display:none}
html body.cinema-site .account-main .store-food-card .store-owned{min-height:0;padding:4px 10px;border:0;background:none;justify-content:flex-start;font-weight:600;font-size:12px}
html body.cinema-site .account-main .store-cart-line-single{grid-template-columns:minmax(0,1fr) auto auto}
html body.cinema-site .account-main .store-cart-note{margin:0;padding:8px 12px;border-radius:10px;background:#d9897d17;color:#f4b7af;font-size:12px;line-height:1.7}
html body.cinema-site .account-main .store-cart-note[hidden]{display:none}
@media(max-width:560px){html body.cinema-site .account-main .store-cart-line-single{grid-template-areas:none;grid-template-columns:minmax(0,1fr) auto auto}html body.cinema-site .account-main .store-cart-line-single>*{grid-area:auto}}
/* Tickets («تذاكر»): the gold cost shown next to a paid game, and the store's ticket card. */
.ticket-cost{display:inline-flex;align-items:center;gap:4px;margin-inline-start:8px;font-size:12px;font-weight:700;color:#e3c88f;vertical-align:middle;white-space:nowrap}
.ticket-cost[hidden]{display:none}
.ticket-cost .icon{width:15px;height:15px}
html body.cinema-site .account-main .store-ticket-art{display:grid;place-items:center;background:radial-gradient(circle at 50% 40%,#2f2a1f,#121416 72%)}
html body.cinema-site .account-main .store-ticket-art .store-ticket{display:flex;align-items:center;gap:14px;padding:18px 30px;border-radius:14px;color:#1b1406;background:linear-gradient(125deg,#f5dd9c,#c9a45e 50%,#e9c77c 70%,#a98245);box-shadow:0 18px 40px #000a,inset 0 1px #fff8;transform:rotate(-6deg);font:800 26px/1 var(--font-head)}
html body.cinema-site .account-main .store-ticket-art .store-ticket .icon{width:34px;height:34px;stroke-width:2}
html body.cinema-site .account-main .store-games-list{margin:0;padding:0;list-style:none;display:grid;gap:6px}
html body.cinema-site .account-main .store-games-list li{display:flex;justify-content:space-between;gap:10px;padding:8px 12px;border-radius:10px;background:#ffffff08;border:1px solid #ffffff12;font-size:14px}

/* Game picker (game.js enhanceSelect): the site's own dropdown, so a paid game shows its gold ticket cost beside its name. */
.pick{position:relative;width:100%}
.pick-button{display:flex;align-items:center;gap:8px;width:100%;cursor:pointer;text-align:start}
.pick-button:after{content:"";flex:none;margin-inline-start:auto;width:7px;height:7px;border:solid #a9a49a;border-width:0 0 2px 2px;transform:translateY(-2px) rotate(-45deg);transition:transform 160ms}
.pick.open .pick-button:after{transform:translateY(2px) rotate(135deg)}
.pick-value{display:flex;align-items:center;gap:10px;min-width:0}
.pick-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pick .ticket-cost{margin:0}
.pick-list{position:absolute;inset-inline:0;top:calc(100% + 6px);z-index:40;margin:0;padding:6px;list-style:none;background:#14181e;border:1px solid #6e6c665e;border-radius:10px;box-shadow:0 18px 40px #000a;max-height:260px;overflow:auto}
.pick-list[hidden]{display:none}
.pick-list:focus{outline:none}
.pick-list li{display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:10px 12px;border-radius:7px;cursor:pointer;color:#e9e7df;font-size:15px;line-height:1.4}
.pick-list li.active{background:#ffffff10;box-shadow:inset 0 0 0 1px #d7b47455}
.pick-list li[aria-selected=true]{color:#f6e6c2;background:#d7b47414}
.pick-list li[aria-disabled=true]{opacity:.5;cursor:default}

/* /css/partners.css */
/* /partners — public partners list: one wide banner per partner (same width as the empty-state box).
   With a banner image (1600×400) the image fills, cropped to a 6:1 strip, the card and the text sits on a dark fade on the right. */
html body.cinema-site .partners-main{max-width:980px}
html body.cinema-site .partners-grid{list-style:none;margin:18px 0 0;padding:0;display:grid;grid-template-columns:1fr;gap:10px}
html body.cinema-site .partner-card{position:relative;overflow:hidden;display:flex;align-items:center;min-height:96px;border:1px solid #a4927150;border-radius:14px;background:linear-gradient(145deg,#262b31,#14181d 80%);box-shadow:inset 0 1px #ffffff0d}
html body.cinema-site .partner-card.has-banner{aspect-ratio:6/1;min-height:118px}
html body.cinema-site .partner-banner{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
/* Dark fade from the right (RTL start) so the name and links stay readable over any picture. */
html body.cinema-site .partner-card.has-banner::after{content:"";position:absolute;inset:0;background:linear-gradient(270deg,#0c0f12f2 0%,#0c0f12b3 38%,#0c0f1200 72%);pointer-events:none}
html body.cinema-site .partner-body{position:relative;z-index:1;display:flex;flex-direction:column;gap:5px;max-width:min(420px,100%);padding:12px 18px}
html body.cinema-site .partner-head{display:flex;align-items:center;gap:10px;min-width:0}
html body.cinema-site .partner-avatar{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;font-weight:800;font-size:14px;color:#17140e;background:linear-gradient(145deg,#ecd29b,#b8955a)}
html body.cinema-site .partner-card h2{margin:0;font-size:15px;line-height:1.5;overflow-wrap:anywhere;text-shadow:0 1px 3px #000a}
html body.cinema-site .partner-body>p{margin:0;font-size:12px;line-height:1.7;color:#d5d0c6;overflow-wrap:anywhere;text-shadow:0 1px 3px #000a}
html body.cinema-site .partner-links{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
html body.cinema-site .partner-links a{display:inline-flex;align-items:center;min-height:26px;padding:1px 10px;border-radius:999px;font-size:11.5px;font-weight:600;text-decoration:none;color:var(--pl-gold-hi,#ecd29b);background:#14181dcc;border:1px solid #d7b47466}
html body.cinema-site .partner-links a:hover{background:#2a2418e6}
html body.cinema-site .partner-links a:focus-visible{outline:2px solid var(--pl-gold,#d7b474);outline-offset:2px}
html body.cinema-site .partners-empty{margin:18px 0;padding:22px 14px;text-align:center;font-size:13px;color:var(--pl-mute,#b9b2a4);border:1px dashed #a4927150;border-radius:14px}
html body.cinema-site .partners-contact{margin-top:16px;font-size:12.5px;color:var(--pl-mute,#b9b2a4)}
html body.cinema-site :is(.partners-contact,[data-admin-panel="partners"] .admin-hint) a{color:var(--pl-gold-hi,#ecd29b);text-underline-offset:3px}
@media(max-width:600px){
  /* Phones: the 4:1 picture would be too thin; keep a taller banner and crop the sides. */
  html body.cinema-site .partner-card.has-banner{aspect-ratio:auto;min-height:140px}
  html body.cinema-site .partner-card.has-banner::after{background:linear-gradient(0deg,#0c0f12f7 0%,#0c0f12e0 62%,#0c0f1280 100%)}
  html body.cinema-site .partner-card.has-banner{align-items:flex-end}
  html body.cinema-site .partner-body{padding:12px 14px}
  html body.cinema-site .partner-links a{min-height:36px;padding:4px 12px}
}

/* /css/cases.css */
/* Cases inherit the shared room, card, picker and result design. */
.case-pack-field[hidden],.challenge-field[hidden]{display:none!important}
.case-pack-field{display:grid;gap:8px}
.case-avatar{position:relative}
.case-art-pending::after{content:'صورة مؤقتة';position:absolute;inset:auto 0 0;background:#101619cc;color:#dfd7c8;font-size:10px;padding:3px;text-align:center;pointer-events:none}
.case-inspector{width:min(1100px,94vw);max-width:94vw;max-height:94dvh;margin:auto;overflow:hidden}
.case-inspector::backdrop{background:#05080dd9;backdrop-filter:blur(7px)}
.case-inspector header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.case-inspector h2{font-size:18px;margin:0}
.case-inspect-stage{position:relative;aspect-ratio:16/9;width:min(100%,calc((94dvh - 190px)*16/9));margin:auto;overflow:hidden;border-radius:8px}
.case-inspect-stage>img{display:block;width:100%;height:100%;object-fit:contain;cursor:zoom-in}
.case-hotspots{position:absolute;inset:0;pointer-events:none;direction:ltr}.case-hotspots[hidden]{display:none}
.case-hotspots button{position:absolute;transform:translate(-50%,-50%);border:1px solid #bda06c;border-radius:50%;width:30px;height:30px;background:#20262c;color:#e4c994;pointer-events:auto;cursor:pointer;font-size:20px}
.case-inspector nav{display:flex;gap:7px;justify-content:center;flex-wrap:wrap;margin-top:10px}
.case-inspector nav [aria-pressed=true]{border-color:#d4b879}
.case-inspector p{font-size:11px;text-align:center;margin:8px 0 0}

/* Landscape evidence fits its frame; shared controls retain the site identity. */
body.cinema-site.case-mode #screen-game .board-area{grid-template-columns:230px minmax(0,1fr);gap:16px}
body.cinema-site.case-mode #screen-game .characters-board{gap:14px!important}
body.cinema-site.case-mode #screen-game .card-item>.char-card{aspect-ratio:16/9!important;height:auto!important;padding:0;overflow:hidden;border-radius:7px}
body.cinema-site.case-mode #screen-game .char-avatar{width:100%;height:100%;aspect-ratio:16/9!important;background:#191e22!important}
body.cinema-site.case-mode #screen-game .char-avatar img{width:100%;height:100%;object-fit:contain!important;background:#191e22!important}
body.cinema-site.case-mode #screen-game .card-meta{height:32px!important;min-height:32px!important;gap:6px!important}
body.cinema-site.case-mode #screen-game .card-meta .char-name{height:32px!important;min-height:32px!important;font-size:12px!important}
body.cinema-site.case-mode #screen-game .card-preview-button{height:32px!important;width:34px!important;min-width:34px!important}
body.cinema-site.case-mode #screen-game .case-art-pending::after{inset:8px auto auto 8px;padding:3px 6px;border-radius:4px;font-size:9px;background:#111820aa}
body.cinema-site.case-mode #screen-game #secret-char-avatar{width:100%!important;height:auto!important;aspect-ratio:16/9!important;background:#191e22!important}
body.cinema-site.case-mode #screen-game #secret-char-avatar .avatar-media{display:block;width:100%;height:100%;aspect-ratio:16/9}
body.cinema-site.case-mode #screen-game #secret-char-avatar img{display:block;width:100%;height:100%;object-fit:contain;background:#191e22}
body.cinema-site.case-mode #screen-game .my-secret-panel{padding:12px}
body.cinema-site.case-mode #screen-game .my-secret-panel strong{font-size:17px}
/* One aligned desktop composition: controls and evidence share a column. */
@media(min-width:901px){
body.cinema-site.case-mode #screen-game.active{display:grid;grid-template-columns:210px minmax(0,var(--case-board-width,1fr));grid-template-rows:auto minmax(0,1fr);justify-content:center;gap:12px 16px;padding:12px 24px 24px;box-sizing:border-box}
body.cinema-site.case-mode #screen-game .board-area{display:contents}
body.cinema-site.case-mode #screen-game .match-toolbar{grid-column:2;grid-row:1;width:100%;margin:0;position:static;align-self:stretch}
body.cinema-site.case-mode #screen-game .characters-board{grid-column:2;grid-row:2;height:100%;padding:0!important;align-content:start!important}
body.cinema-site.case-mode #screen-game .my-secret-panel{grid-column:1;grid-row:1 / 3;align-self:start;margin:0;padding:12px;gap:10px}
body.cinema-site.case-mode #screen-game .card-item{gap:0!important;border:1px solid #a8987566;border-radius:8px;overflow:hidden;background:#1d2429;box-sizing:border-box}
body.cinema-site.case-mode #screen-game .card-item>.char-card{border:0!important;border-radius:0!important;box-shadow:none!important}
body.cinema-site.case-mode #screen-game .card-meta{gap:0!important;border-top:1px solid #a8987533;padding:0!important;background:#1d2429}
body.cinema-site.case-mode #screen-game .card-meta .char-name{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-size:12px!important}
body.cinema-site.case-mode #screen-game .card-meta .card-preview-button{border:0!important;border-inline-end:1px solid #a8987533!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;width:38px!important;flex-basis:38px!important}
body.cinema-site.case-mode #screen-game .match-score{padding:5px 8px!important}
body.cinema-site.case-mode #screen-game .board-toolbar{padding:6px 8px!important}
}
@media(min-width:901px){
body.cinema-site.case-mode #screen-game .board-utilities{flex-shrink:0;gap:10px}
body.cinema-site.case-mode #screen-game .board-utilities .btn,body.cinema-site.case-mode #screen-game .remaining-chip{white-space:nowrap}
body.cinema-site.case-mode #screen-game .dock-actions{gap:10px}
body.cinema-site.case-mode #screen-game .dock-actions .btn{padding-inline:14px!important;min-width:0}
}

/* /css/play.css */
/* ==========================================================================
   play.css — in-game UI: waiting room, multiplayer round, solo round, dialogs.
   Loaded last. Same cinematic material as the home page (charcoal, brushed
   steel, warm gold). Hard rules:
     • gameplay pages never scroll horizontally and the page itself never scrolls
     • only dialog bodies / the chat log may scroll, vertically
   ========================================================================== */

body.cinema-site{
  --pl-gold:#d7b474;--pl-gold-hi:#f0d9a3;--pl-gold-deep:#9c7b50;
  --pl-line:#a4a4a244;--pl-ink:#ebe9e6;--pl-mute:#a9a8a6;
  --pl-glass:linear-gradient(135deg,#3d41488c,#202328d9 58%,#4a463f73);
  --pl-solid:linear-gradient(150deg,#2b3036,#14181d 72%);
  --pl-steel:linear-gradient(135deg,#9a9da2,#464a50 38%,#2b2e33 62%,#9b968c);
  --pl-gold-fill:linear-gradient(125deg,#f0d9a3 0%,#c7a16b 27%,#9c7b50 65%,#e8ca95 100%);
  --pl-shadow:inset 0 1px #ffffff17,0 14px 38px #0006;
  --pl-ease:cubic-bezier(.2,.7,.3,1);
  --pl-gap:10px;
}
@keyframes pl-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes pl-fade{from{opacity:0}to{opacity:1}}
@keyframes pl-pop{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}
@keyframes pl-glow{0%,100%{box-shadow:0 0 0 1px #d7b47455,0 0 12px #d7b47420}50%{box-shadow:0 0 0 1px #d7b474aa,0 0 24px #d7b47440}}
@keyframes pl-beat{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
@keyframes pl-ring{from{opacity:.6;transform:scale(.7)}to{opacity:0;transform:scale(1.7)}}
@keyframes pl-tick{0%{opacity:0;transform:scale(1.35)}60%{opacity:1}100%{opacity:1;transform:scale(1)}}
@keyframes pl-fade{from{opacity:0}to{opacity:1}}
@keyframes pl-sheen{from{background-position:-200% 0}to{background-position:200% 0}}

/* ---------- 1. Shell ------------------------------------------------------ */
body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active){
  height:100vh;height:100dvh;min-height:0;max-width:100vw;display:grid;grid-template-rows:56px minmax(0,1fr);
  padding:0;overflow:hidden;position:relative;isolation:isolate;background:#0d1014;
}
body.cinema-site:has(#screen-waiting.active){grid-template-rows:56px minmax(0,1fr) 30px}
body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active)::before{
  display:block;content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse at 50% 0,#5a5f682e,transparent 62%),radial-gradient(ellipse at 50% 55%,transparent 30%,#05070a99 100%),linear-gradient(#0b0e12e6,#0b0e12f5),url('/images/cinema-table.webp') center bottom/cover no-repeat;
}
body.cinema-site:has(:is(#screen-game,#screen-solo).active) .site-credits{display:none}
body.cinema-site:has(#screen-waiting.active) .site-credits{height:30px;min-height:0;margin:0 auto;padding:4px 0;box-sizing:border-box;flex-wrap:nowrap;overflow:hidden;background:none;border:0}
body.cinema-site:has(#screen-waiting.active) .footer-team{display:none}

body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active) .masthead{
  height:56px;width:100%;max-width:none;margin:0;padding:0 clamp(12px,2.6vw,36px);border-radius:0 0 22px 22px;box-shadow:0 6px 22px #0004;
}
body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active) .brand-word{font-size:30px}
body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active) .brand-word small{font-size:12px}
body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active) .brand-mark{width:28px;height:38px;font-size:25px}
body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active) .home-nav :is(a,button){min-width:0;padding:8px 18px;font-size:14px}
body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active) .menu-toggle{width:38px;height:38px;padding:8px}

body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active) #app{
  width:100%;max-width:none;min-width:0;min-height:0;height:100%;box-sizing:border-box;position:relative;z-index:1;
  padding:clamp(8px,1.4vh,14px) clamp(10px,1.6vw,24px) clamp(8px,1.6vh,16px);overflow:hidden;
}
body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active) #app>.screen.active{
  box-sizing:border-box;width:100%;max-width:1560px;min-width:0;height:100%;min-height:0;margin:0 auto;padding:0;
  border:0;border-radius:0;background:none;box-shadow:none;overflow:hidden;animation:pl-in 320ms var(--pl-ease) both;
}
body.cinema-site :is(#screen-waiting,#screen-game,#screen-solo) *{min-width:0}

body.cinema-site :is(#screen-game .match-score,#screen-game .board-toolbar,#screen-game .my-secret-panel,#screen-waiting .player-seat,#screen-waiting .invite-ticket,#screen-waiting .lobby-start,#screen-waiting .secret-choice-panel,#screen-solo .solo-heading,#screen-solo .bot-companion){
  background:var(--pl-glass);border:1px solid var(--pl-line);box-shadow:var(--pl-shadow);backdrop-filter:blur(8px)
}

/* ---------- 2. Waiting room ---------------------------------------------- */
body.cinema-site #screen-waiting.active{display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:clamp(10px,2vh,20px);max-width:820px}
#screen-waiting .lobby-heading{text-align:center;display:grid;gap:2px}
#screen-waiting .lobby-heading .eyebrow{color:var(--pl-gold);font-size:12px}
#screen-waiting .lobby-heading h1{font-size:clamp(26px,4.4vh,38px);margin:0;line-height:1.5}
#screen-waiting .lobby-seats{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:stretch;gap:clamp(8px,1.6vw,18px);margin:0}
#screen-waiting .seat-vs{align-self:center;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;font:800 12px/1 Arial,sans-serif;letter-spacing:1px;color:var(--pl-gold);border:1px solid #d7b47466;background:#12161bcc}
body.cinema-site #screen-waiting .player-seat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:clamp(12px,2.4vh,22px) 12px;border-radius:18px;text-align:center}
body.cinema-site #screen-waiting .seat-avatar{display:grid;place-items:center;width:clamp(46px,8vh,64px);height:clamp(46px,8vh,64px);border-radius:50%;font:800 clamp(20px,3.6vh,28px)/1 var(--font-body);color:var(--pl-gold-hi);background:radial-gradient(circle at 35% 25%,#3d4249,#14181d 70%);border:2px solid #9fa4a966;box-shadow:inset 0 1px #ffffff30,0 6px 14px #0007}
body.cinema-site #screen-waiting .player-seat strong{font-size:clamp(15px,2.4vh,19px);color:var(--pl-ink);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.cinema-site #screen-waiting .player-seat small{font-size:12px;color:var(--pl-mute)}
body.cinema-site #screen-waiting .player-seat.ready{border-color:#d7b474aa;animation:pl-glow 3s ease-in-out infinite}
body.cinema-site #screen-waiting .player-seat.ready .seat-avatar{border-color:var(--pl-gold);background:var(--pl-gold-fill);color:#17140e}
body.cinema-site #screen-waiting .player-seat.ready small{color:var(--pl-gold-hi)}
body.cinema-site #screen-waiting .player-seat.empty-seat{border-style:dashed;opacity:.85}
body.cinema-site #screen-waiting .player-seat.empty-seat .seat-avatar{color:var(--pl-mute);animation:pl-beat 2.4s ease-in-out infinite}
#screen-waiting .secret-choice-panel{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:12px 16px;border-radius:16px}
#screen-waiting .secret-choice-panel.hidden{display:none}
#screen-waiting .secret-choice-panel .eyebrow{color:var(--pl-gold)}
#screen-waiting .secret-choice-panel strong{display:block;font-size:14px;color:var(--pl-ink)}
#screen-waiting .lobby-floor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(8px,1.6vw,18px);margin:0;padding:0;align-items:stretch}
body.cinema-site #screen-waiting :is(.invite-ticket,.lobby-start){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:clamp(12px,2.2vh,20px) 14px;border-radius:18px;text-align:center;margin:0}
body.cinema-site #screen-waiting .invite-ticket{border-color:#d7b47455}
#screen-waiting .invite-ticket .eyebrow{color:var(--pl-gold);font-size:12px}
#screen-waiting .room-code-box{font:800 clamp(20px,3.6vh,28px)/1.3 'Courier New',monospace;letter-spacing:.2em;color:var(--pl-gold-hi);background:#0c0f13a8;border:1px dashed #d7b47488;border-radius:12px;max-width:100%;cursor:pointer;transition:background 200ms,border-color 200ms}
#screen-waiting .room-code-box:hover{background:#1a1f26;border-color:var(--pl-gold)}
#screen-waiting .small-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
#screen-waiting .lobby-start p{margin:0;font-size:13px;color:var(--pl-ink);padding:3px 12px;border-radius:99px;background:#ffffff0c;border:1px solid #ffffff12}
#screen-waiting .lobby-start .primary-btn{width:100%;min-height:46px;font-size:17px}
#screen-waiting .lobby-start small{font-size:11px;color:var(--pl-mute)}
#screen-waiting>.text-btn{align-self:center;color:var(--pl-mute)}
#screen-waiting>.text-btn:hover{color:var(--pl-ink)}

/* ---------- 3. Multiplayer round ----------------------------------------- */
body.cinema-site #screen-game.active{display:flex;flex-direction:column;}
#screen-game .match-toolbar{top:auto!important;bottom:auto;display:grid;gap:var(--pl-gap);margin:0;padding:0;border:0;background:none;box-shadow:none;position:relative;flex:none}

body.cinema-site #screen-game .match-score{display:grid;align-items:center;gap:12px;margin:0;border-radius:18px}
#screen-game .player-tag{display:flex;align-items:center;border-radius:14px;border:1px solid transparent;background:none;box-shadow:none;transition:border-color 240ms,background 240ms;justify-self:start}
#screen-game .opponent-tag{flex-direction:row-reverse;justify-self:end}
#screen-game .player-tag>div{display:grid;gap:1px;line-height:1.35;min-width:0}
#screen-game .player-tag strong{color:var(--pl-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#screen-game .player-tag small{font-size:11px;color:var(--pl-mute)}
#screen-game .player-tag small:empty{display:none}
#screen-game .player-token{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;font:800 12px/1 Arial,sans-serif;color:var(--pl-gold-hi);background:radial-gradient(circle at 35% 25%,#3d4249,#14181d 70%);border:1px solid #9fa4a966}
#screen-game .player-tag.active-player{border-color:#d7b474aa;background:#d7b47410;animation:pl-glow 2.6s ease-in-out infinite}
#screen-game .player-tag.active-player .player-token{background:var(--pl-gold-fill);color:#17140e;border-color:var(--pl-gold)}

body.cinema-site #screen-game .match-turn{
  grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"clock ind score" "clock meta score";align-items:center;
  background:#0c0f13a0;border:1px solid #9fa4a933;text-align:center;margin:0;transition:border-color 240ms,box-shadow 240ms
}

#turn-clock{grid-area:clock;display:grid;place-items:center;min-width:56px;height:34px;padding:0 12px;border-radius:99px;font:800 16px/1 'Courier New',monospace;color:var(--pl-gold-hi);background:#1a1f26;border:1px solid #d7b4744d;font-variant-numeric:tabular-nums}
#turn-clock:empty{display:none}
#turn-indicator{grid-area:ind;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.match-turn.my-turn #turn-indicator{color:var(--pl-gold-hi)}
#screen-game .series-score{grid-area:score;display:flex;align-items:center;gap:8px;font-size:24px;font-weight:900;color:var(--pl-ink);direction:ltr}
#screen-game .series-score span{color:var(--pl-mute);font-weight:400}
#screen-game .series-score b{min-width:1ch;font-variant-numeric:tabular-nums}
#game-category,#round-label{display:block;font-size:11px;color:var(--pl-mute);line-height:1.4;margin:0}
#game-category{grid-area:meta;justify-self:start}
#round-label{grid-area:meta;justify-self:end}
#screen-game .match-turn:has(#game-category:empty) #round-label{justify-self:center}

body.cinema-site #screen-game .board-toolbar{align-items:center;gap:8px 16px;margin:0;border-radius:18px}
#screen-game .board-toolbar>div:not(.dock-actions):not(.board-utilities){display:grid;gap:0}
#screen-game .board-toolbar h2{margin:0;font-size:16px;line-height:1.5}
#screen-game .board-toolbar .eyebrow{font-size:11px;color:var(--pl-mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#screen-game .dock-actions{display:flex;align-items:center;gap:8px;margin:0;padding:0;border:0;background:none;box-shadow:none;position:static}
#screen-game .dock-actions>div{position:relative;display:flex}
#screen-game .dock-actions .btn{white-space:nowrap;border-radius:12px}
#screen-game .dock-actions .text-btn{color:var(--pl-mute);border:1px solid #ffffff14;background:#ffffff08}
#screen-game .dock-actions .text-btn:hover{color:var(--pl-ink);border-color:#c9b18466}
#screen-game .dock-actions .btn:disabled{opacity:.45;filter:saturate(.6);cursor:not-allowed}

@media (hover:hover) and (min-width:1100px){
  #screen-game .space-hint{position:absolute;inset-inline:0;top:calc(100% + 2px);text-align:center;font-size:10px;color:var(--pl-mute);pointer-events:none;white-space:nowrap}
  #screen-game .space-hint kbd{font:700 9px Arial,sans-serif;padding:1px 5px;border-radius:4px;border:1px solid #ffffff2e;background:#ffffff10;color:var(--pl-ink)}
  
}
#screen-game .end-turn-btn.pressed{transform:scale(.96)}
#screen-game .board-utilities{display:flex;align-items:center;gap:6px}
.remaining-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:99px;font-size:12px;color:var(--pl-mute);background:#0c0f13a8;border:1px solid #d7b4743d;white-space:nowrap}
.remaining-chip b{color:var(--pl-gold-hi);font-size:14px;font-variant-numeric:tabular-nums}
:is(#screen-game,#screen-solo) .board-utilities .btn{min-height:36px;padding:5px 12px;font-size:12px;border-radius:10px;color:var(--pl-ink);border:1px solid #ffffff1a;background:#ffffff0a;white-space:nowrap}
:is(#screen-game,#screen-solo) .board-utilities .btn:hover{border-color:#c9b18488;background:#ffffff12}
:is(#screen-game,#screen-solo) .board-utilities .icon{width:15px;height:15px}

body.cinema-site #screen-game .board-area{flex:1 1 0;min-height:0;display:grid;grid-template-columns:clamp(170px,17vw,232px) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:var(--pl-gap) 14px;margin:0;padding:0;border:0;background:none;box-shadow:none;overflow:hidden;position:relative}
body.cinema-site #screen-game .my-secret-panel{top:auto!important;bottom:auto;grid-column:1;grid-row:1/-1;align-self:start;display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:14px;border-radius:18px;text-align:center}
#screen-game .my-secret-panel>.eyebrow{display:flex;align-items:center;justify-content:center;gap:6px;color:var(--pl-gold);font-size:12px;margin:0}
#screen-game .my-secret-panel>.eyebrow .icon{width:15px;height:15px}
body.cinema-site #screen-game .my-secret-content{gap:8px;justify-items:center;align-content:start;position:static;padding:0;margin:0}
body.cinema-site #screen-game .my-secret-content>div:last-child{display:grid;gap:2px;position:static;text-align:center}
body.cinema-site #screen-game .secret-avatar{position:relative;width:100%;max-width:180px;height:auto;aspect-ratio:1;padding:3px;border-radius:16px;background:var(--pl-steel);box-shadow:0 10px 24px #0009,0 0 0 1px #d7b47455;overflow:hidden}
#screen-game .secret-avatar :is(.avatar-media,.char-avatar){display:block;width:100%;height:100%;border-radius:13px;overflow:hidden;background:#14181d}
#screen-game .secret-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:13px}
body.cinema-site #screen-game .my-secret-content strong{position:static;font-size:18px;line-height:1.4;color:var(--pl-ink)}
body.cinema-site #screen-game .my-secret-content small{position:static;display:block;font-size:11px;color:var(--pl-mute);line-height:1.6}
#screen-game .my-secret-panel .text-btn{min-height:32px;font-size:12px;color:var(--pl-mute);border:1px solid #ffffff14;background:#ffffff08;border-radius:10px}
#screen-game .my-secret-panel .text-btn:hover{color:var(--pl-ink);border-color:#c9b18466}
.secret-is-hidden #secret-visibility-content{visibility:hidden;pointer-events:none}
body.cinema-site #screen-game .my-secret-panel.secret-is-hidden:before{font-size:46px}

/* ---------- 4. Card boards (shared by both modes) ------------------------ */
body.cinema-site :is(#characters-board,#solo-characters-board){
  --c:4;--r:3;--gap:10px;--name:26px;
  display:grid!important;container-type:size;min-height:0;min-width:0;height:100%;width:100%;margin:0;padding:0;
  grid-template-columns:repeat(var(--c),minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:auto;
  gap:var(--gap)!important;align-content:space-evenly!important;justify-content:stretch!important;padding:0!important;overflow:hidden!important;border:0;background:none;box-shadow:none
}
.solo-board-pages:has(#solo-board-prev:disabled):has(#solo-board-next:disabled){display:none}
body.cinema-site #characters-board{grid-column:2;grid-row:1}
:is(#characters-board,#solo-characters-board):has(.card-item:nth-child(9)){--c:4;--r:3}
:is(#characters-board,#solo-characters-board):has(.card-item:nth-child(13)){--c:8;--r:3}
:is(#characters-board,#solo-characters-board):has(.card-item:nth-child(25)){--c:12;--r:4}
@media (max-aspect-ratio:3/2){:is(#characters-board,#solo-characters-board):has(.card-item:nth-child(25)){--c:8;--r:6}}
@media (max-width:1100px){:is(#characters-board,#solo-characters-board):has(.card-item:nth-child(25)){--c:8;--r:6;--gap:8px}}
:is(#characters-board,#solo-characters-board):has(.card-item:nth-child(9)):not(:has(.card-item:nth-child(13))){--c:4;--r:3}
:is(#characters-board,#solo-characters-board):not(:has(.card-item:nth-child(9))){--c:4;--r:2}

body.cinema-site :is(#characters-board,#solo-characters-board) .card-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;min-width:0;min-height:0;margin:0;padding:0}
body.cinema-site :is(#characters-board,#solo-characters-board) .char-card{
  --card:min(100%,calc((100cqh - (var(--r) - 1) * var(--gap)) / var(--r) - var(--name)));
  position:relative;display:block;width:var(--card)!important;height:auto!important;aspect-ratio:1/1;padding:3px;margin:0;border-radius:14px;cursor:pointer;
  background:var(--pl-steel);border:1px solid #d9d4cb33;box-shadow:0 6px 14px #0009,inset 0 1px #ffffff40;overflow:hidden;
  transition:transform 200ms var(--pl-ease),box-shadow 200ms,border-color 200ms
}
:is(#characters-board,#solo-characters-board) .char-card :is(.char-avatar,.avatar-media){display:block;width:100%;height:100%;border-radius:11px;overflow:hidden;background:#14181d}
:is(#characters-board,#solo-characters-board) .char-card img{display:block;width:100%;height:100%;object-fit:cover;border-radius:11px;transition:filter 260ms,transform 260ms var(--pl-ease)}
@media (hover:hover){
  :is(#characters-board,#solo-characters-board) .char-card:not(.eliminated):hover{transform:translateY(-3px);border-color:var(--pl-gold);box-shadow:0 12px 24px #000b,0 0 0 1px #d7b474aa,0 0 20px #d7b47433}
  :is(#characters-board,#solo-characters-board) .char-card:not(.eliminated):hover img{transform:scale(1.04)}
}
:is(#characters-board,#solo-characters-board) .char-card:active{transform:scale(.96)}
:is(#characters-board,#solo-characters-board) .char-card:focus-visible{outline:2px solid var(--pl-gold);outline-offset:2px}
:is(#characters-board,#solo-characters-board) .card-dismiss{display:none!important}
body.cinema-site :is(#characters-board,#solo-characters-board) .char-card.eliminated{filter:none;opacity:1;border-color:#ffffff12;box-shadow:0 2px 6px #0008;background:linear-gradient(135deg,#23272c,#101317);transform:none}
:is(#characters-board,#solo-characters-board) .char-card.eliminated img{filter:grayscale(1) brightness(.28) contrast(.9);transform:none}
:is(#characters-board,#solo-characters-board) .char-card.eliminated::after{content:"؟";position:absolute;inset:3px;display:grid;place-items:center;border-radius:11px;font:900 clamp(18px,4cqw,40px)/1 var(--font-body);color:#d7b474;background:radial-gradient(circle,#d7b4741c,transparent 70%);text-shadow:0 2px 6px #000;animation:pl-fade 260ms ease both}
body.cinema-site :is(#characters-board,#solo-characters-board) .card-item .card-meta{display:block!important;position:static;width:100%;height:auto!important;min-height:0!important;margin:0;padding:0;text-align:center;line-height:1.3;border:0;background:none;box-shadow:none}
body.cinema-site :is(#characters-board,#solo-characters-board) .card-item .card-meta .char-name{display:block!important;position:static;width:100%;height:auto!important;min-height:0!important;margin:0;padding:0 2px!important;font-size:clamp(10px,1.45vh,13px);font-weight:700;line-height:1.5;color:var(--pl-ink);background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card-item:has(.char-card.eliminated) .char-name{color:#7d7f83!important;font-weight:500!important}
body.cinema-site :is(#screen-game,#screen-solo) .card-item .card-meta .card-preview-button{
  position:absolute!important;top:6px!important;inset-inline-start:6px!important;bottom:auto!important;inset-inline-end:auto!important;z-index:5;display:grid!important;place-items:center;
  width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;flex:none!important;padding:0;margin:0;border-radius:50%!important;
  color:#f4f1ea;background:#0c0f13b8!important;border:1px solid #ffffff2e!important;box-shadow:none!important;opacity:0;transform:scale(.85);transition:opacity 160ms,transform 160ms;cursor:pointer;backdrop-filter:blur(4px)
}
body.cinema-site :is(#screen-game,#screen-solo) .card-item .card-meta .card-preview-button .icon{width:12px!important;height:12px!important}
.card-item:hover .card-preview-button,.card-item:focus-within .card-preview-button{opacity:1!important;transform:none!important}
@media (hover:none){body.cinema-site :is(#screen-game,#screen-solo) .card-item .card-meta .card-preview-button{opacity:.85;transform:none}}

body.cinema-site :is(.match-board-pages,.solo-board-pages){grid-column:2;grid-row:2;display:flex;align-items:center;justify-content:center;gap:12px;margin:0;padding:0}

:is(.match-board-pages,.solo-board-pages) span{min-width:54px;text-align:center;font-size:13px;color:var(--pl-mute);font-variant-numeric:tabular-nums}
:is(.match-board-pages,.solo-board-pages) button{min-height:34px;padding:4px 16px;border-radius:99px;font-size:13px;font-weight:700;color:var(--pl-gold-hi);background:#0c0f13a8;border:1px solid #d7b47466;cursor:pointer;transition:background 160ms,border-color 160ms}
:is(.match-board-pages,.solo-board-pages) button:hover:not(:disabled){background:#d7b47418;border-color:var(--pl-gold)}
:is(.match-board-pages,.solo-board-pages) button:disabled{opacity:.35;cursor:default}

/* ---------- 5. Solo round ------------------------------------------------ */
body.cinema-site #screen-solo.active{display:grid;grid-template-columns:minmax(0,1fr) clamp(340px,34vw,440px);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"head head" "board chat";gap:var(--pl-gap) 14px}
body.cinema-site #screen-solo .solo-heading{grid-area:head;display:flex;align-items:center;gap:12px;margin:0;padding:6px 14px;border-radius:18px;min-height:0}
#screen-solo .solo-heading>div:nth-child(2){display:grid;gap:0;flex:1}
#screen-solo .solo-heading .eyebrow{color:var(--pl-gold);font-size:11px;margin:0}
body.cinema-site #screen-solo .solo-heading h1{margin:0;line-height:1.4}
#screen-solo .bot-emblem{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;color:var(--pl-gold-hi);background:radial-gradient(circle at 35% 25%,#3d4249,#14181d 70%);border:1px solid #d7b47466}
#screen-solo .bot-emblem .icon{width:22px;height:22px}
#screen-solo .solo-secret{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--pl-mute);padding:5px 12px;border-radius:99px;background:#0c0f13a8;border:1px solid #d7b4743d;white-space:nowrap}
#screen-solo .solo-secret .icon{width:14px;height:14px;color:var(--pl-gold)}
#screen-solo .solo-heading .text-btn{min-height:34px;padding:4px 12px;font-size:13px;color:var(--pl-mute);border:1px solid #ffffff14;background:#ffffff08;border-radius:10px;white-space:nowrap}
#screen-solo .solo-heading .text-btn:hover{color:var(--pl-ink);border-color:#c9b18466}
body.cinema-site #screen-solo .board-area{grid-area:board;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:8px;min-height:0;height:100%;margin:0;padding:0;border:0;background:none;box-shadow:none;overflow:hidden}
body.cinema-site #screen-solo .board-toolbar{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:2px 2px;min-height:0;border:0;background:none;box-shadow:none;backdrop-filter:none}
#screen-solo .board-toolbar>div:first-child{display:grid;gap:0}
body.cinema-site #screen-solo .board-toolbar h2{font-size:15px;margin:0;line-height:1.5}
#screen-solo .board-toolbar .eyebrow{display:block;font-size:11px;color:var(--pl-mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#screen-solo .board-utilities{display:flex;align-items:center;gap:6px}
body.cinema-site #solo-characters-board{grid-column:1;grid-row:2}
body.cinema-site #screen-solo .solo-board-pages{grid-column:1;grid-row:3}
body.cinema-site #screen-solo.choosing-guess .char-card{border-color:var(--pl-gold);cursor:pointer;animation:pl-glow 1.8s ease-in-out infinite}

body.cinema-site #screen-solo .bot-companion{grid-area:chat;display:flex;flex-direction:column;min-height:0;height:100%;margin:0;border-radius:18px;overflow:hidden}
#screen-solo .companion-prompt{display:grid;gap:4px;flex:none}
#screen-solo .companion-prompt strong{display:flex;align-items:center;gap:8px;font-size:15px;line-height:1.5}
#screen-solo .companion-prompt strong .icon{color:var(--pl-gold);width:18px;height:18px}
#screen-solo .companion-prompt small{font-size:12px;color:var(--pl-mute);line-height:1.6}
#screen-solo .quick-questions{overflow:hidden;margin:2px 0 0}
body.cinema-site #screen-solo .quick-question{min-height:28px;color:var(--pl-gold-hi);background:#d7b4740f;border:1px solid #d7b47455;box-shadow:none;font-weight:600;transition:background 160ms,border-color 160ms}
body.cinema-site #screen-solo .quick-question:hover:not(:disabled){background:#d7b4741f;border-color:var(--pl-gold)}
body.cinema-site #screen-solo .quick-question:disabled{opacity:.4}
#screen-solo .companion-conversation{display:flex;flex-direction:column;gap:8px;flex:1 1 0;min-height:0}
body.cinema-site #screen-solo .chat-log{flex:1 1 0;min-height:60px;height:auto;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#aa916255 transparent;display:flex;flex-direction:column;justify-content:flex-start;border:1px solid #ffffff10;}
body.cinema-site #screen-solo .question-group{padding:0;border:0;background:none;overflow:visible;animation:pl-in 260ms var(--pl-ease) both}
body.cinema-site #screen-solo .question-group>small{font-size:10px;color:var(--pl-mute)}
body.cinema-site #screen-solo .question-group>div{display:block;overflow:visible;-webkit-line-clamp:unset}
body.cinema-site #screen-solo .question-group>strong{border:1px solid transparent}
#screen-solo .question-group>strong.positive{color:#17140e;background:var(--pl-gold-fill);border-color:#efd9a5}
#screen-solo .question-group>strong.negative{color:#e8d9d9;background:#4a2c2c88;border-color:#a8686855}

#screen-solo .bot-question-status{font-size:12px;color:var(--pl-gold);text-align:center;animation:pl-beat 1.4s ease-in-out infinite}
#screen-solo .composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch;flex:none}
body.cinema-site #screen-solo .composer input{padding:8px 12px;border-radius:12px;background:#0a0d11;border:1px solid #65666a;color:var(--pl-ink);box-sizing:border-box;width:100%}
body.cinema-site #screen-solo .composer input:focus{outline:none;border-color:var(--pl-gold);box-shadow:0 0 0 3px #d7b47422}
body.cinema-site #screen-solo .composer .btn{min-height:42px;padding:6px 16px;border-radius:12px;font-size:14px;white-space:nowrap}
#screen-solo .companion-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;flex:none}
body.cinema-site #screen-solo .companion-actions .btn{min-height:42px;padding:6px 10px;font-size:13px;border-radius:12px;white-space:nowrap;justify-content:center}
#screen-solo .companion-actions .text-btn,#screen-solo #solo-switch-category{color:var(--pl-mute);border:1px solid #ffffff14;background:#ffffff08}
#screen-solo .companion-actions .text-btn:hover,#screen-solo #solo-switch-category:hover{color:var(--pl-ink);border-color:#c9b18466}
html body.cinema-site #screen-solo .solo-heading .solo-switch-mobile{display:none}
body.cinema-site #screen-solo #solo-switch-category{flex:none;min-height:32px;font-size:12px;border-radius:10px;justify-content:center}

/* ---------- 6. Dialogs --------------------------------------------------- */
body.cinema-site .modal{background:radial-gradient(ellipse at 50% 40%,#12161cd9,#05070bf2 85%);-webkit-backdrop-filter:none;animation:pl-fade 200ms ease both;box-sizing:border-box;padding:12px;overflow-y:auto;overflow-x:hidden;display:grid;place-items:center}
body.cinema-site .modal.hidden{display:none}
body.cinema-site .modal-card{
  position:relative;box-sizing:border-box;width:min(900px,100%);max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
  border-radius:22px;background:linear-gradient(145deg,#2b3036,#14181d 75%)!important;border:1px solid #a492714f;
  box-shadow:inset 0 1px #ffffff12,0 28px 90px #000c;animation:pl-pop 280ms var(--pl-ease) both;scrollbar-width:thin;scrollbar-color:#8e7d5b #171d23
}
body.cinema-site .modal-card::before{content:"";position:absolute;inset-inline:18%;top:0;height:1px;background:linear-gradient(90deg,transparent,#d7b474,transparent);pointer-events:none}
body.cinema-site #modal-guess .modal-card,body.cinema-site #modal-solo-guess .modal-card{width:min(1040px,100%)}
body.cinema-site .modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin:0 0 12px}
body.cinema-site .modal-head .eyebrow{color:var(--pl-gold);font-size:12px}
body.cinema-site .modal-head :is(h2,h3){margin:0;font-size:clamp(20px,3vw,26px);line-height:1.5}
body.cinema-site .modal-head p{margin:4px 0 0;font-size:13px;color:var(--pl-mute);line-height:1.7}
body.cinema-site .modal .icon-btn{flex:none;display:grid;place-items:center;width:38px;height:38px;padding:0;border-radius:12px;color:var(--pl-ink);background:#ffffff0a;border:1px solid #ffffff1f;box-shadow:none!important;transition:background 160ms,border-color 160ms,transform 160ms}
body.cinema-site .modal .icon-btn:hover{background:#d7b4741a!important;border-color:var(--pl-gold)!important;transform:rotate(90deg)}
body.cinema-site .modal .icon-btn:focus-visible{outline:2px solid var(--pl-gold);outline-offset:2px}
body.cinema-site .modal .icon-btn .icon{width:18px;height:18px}
body.cinema-site .modal .small-actions.guess-filter{display:flex;gap:8px;margin:0 0 10px}
body.cinema-site .modal .guess-filter .btn{min-height:34px;padding:4px 16px;font-size:13px;border-radius:99px;color:var(--pl-gold-hi);background:#d7b4740f;border:1px solid #d7b47455;box-shadow:none}
body.cinema-site .modal .guess-filter .btn:hover{background:#d7b4741f;border-color:var(--pl-gold)}
body.cinema-site .modal .guess-search,body.cinema-site .secret-picker-tools input{box-sizing:border-box;width:100%;min-height:44px;padding:8px 14px;border-radius:12px;background:#0a0d11;border:1px solid #65666a;color:var(--pl-ink);font-size:14px;margin:0 0 12px}
body.cinema-site .modal .guess-search:focus,body.cinema-site .secret-picker-tools input:focus{outline:none;border-color:var(--pl-gold);box-shadow:0 0 0 3px #d7b47422}
body.cinema-site .modal .guess-grid,body.cinema-site #secret-choice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(clamp(64px,6.4vw,96px),1fr))!important;gap:14px 10px;padding:2px;overflow:visible;margin:0}
body.cinema-site #secret-choice-grid{overflow-y:auto;padding:3px 4px 12px}
body.cinema-site .modal .guess-grid .card-item{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;position:relative}
body.cinema-site .modal .guess-card{display:block;position:relative;width:100%;height:auto!important;aspect-ratio:1;padding:3px;margin:0;border-radius:14px;cursor:pointer;background:var(--pl-steel);border:1px solid #d9d4cb33;box-shadow:0 6px 14px #0009,inset 0 1px #ffffff40;overflow:hidden;transition:transform 200ms var(--pl-ease),box-shadow 200ms,border-color 200ms}
body.cinema-site .modal .guess-card :is(.char-avatar,.avatar-media){display:block;width:100%;height:100%;border-radius:11px;overflow:hidden}
body.cinema-site .modal .guess-card img{display:block;width:100%;height:100%;object-fit:cover}
@media (hover:hover){body.cinema-site .modal .guess-card:hover{transform:translateY(-3px);border-color:var(--pl-gold);box-shadow:0 12px 24px #000b,0 0 0 1px #d7b474aa,0 0 20px #d7b47433}}
body.cinema-site .modal .guess-card:focus-visible{outline:2px solid var(--pl-gold);outline-offset:2px}
body.cinema-site .modal .guess-grid .card-meta{display:block!important;position:static;width:100%;height:auto!important;margin:0;padding:0;text-align:center;border:0;background:none;box-shadow:none}
body.cinema-site .modal .guess-grid .card-meta .char-name{display:block!important;width:100%;font-size:12px;font-weight:700;color:var(--pl-ink);background:none!important;border:0!important;box-shadow:none!important;padding:0 2px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:auto!important}
body.cinema-site .modal .guess-grid .card-meta .card-preview-button{position:absolute!important;top:6px!important;inset-inline-start:6px!important;bottom:auto!important;inset-inline-end:auto!important;display:grid!important;place-items:center;width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;flex:none!important;padding:0;border-radius:50%!important;color:#f4f1ea;background:#0c0f13b8!important;border:1px solid #ffffff2e!important;box-shadow:none!important;opacity:0;transition:opacity 160ms;backdrop-filter:blur(4px)}
body.cinema-site .modal .guess-grid .card-meta .card-preview-button .icon{width:12px!important;height:12px!important}
body.cinema-site .modal .guess-grid .card-item:hover .card-preview-button,body.cinema-site .modal .guess-grid .card-item:focus-within .card-preview-button{opacity:1!important}
@media (hover:none){body.cinema-site .modal .guess-grid .card-meta .card-preview-button{opacity:.85}}

/* secret picker keeps its own sticky header + scrolling grid */
body.cinema-site #modal-secret-choice .secret-picker-modal{width:min(1080px,100%);padding:0;display:flex;flex-direction:column;overflow:hidden}
body.cinema-site #modal-secret-choice .secret-picker-head{padding:clamp(16px,3vw,26px) clamp(16px,3vw,28px) 6px;margin:0}
body.cinema-site #modal-secret-choice .secret-picker-tools{display:flex;align-items:center;gap:12px;padding:0 clamp(16px,3vw,28px);margin:0 0 6px}
body.cinema-site #modal-secret-choice .secret-picker-tools label{flex:1;display:flex;align-items:center;gap:8px;position:relative}
body.cinema-site #modal-secret-choice .secret-picker-tools input{margin:0}
body.cinema-site #modal-secret-choice .secret-picker-tools>span{font-size:12px;color:var(--pl-mute);white-space:nowrap}
body.cinema-site #modal-secret-choice #secret-choice-grid{flex:1 1 auto;min-height:0;padding:6px clamp(16px,3vw,28px) 20px}

/* confirm / leave / error / help */
body.cinema-site :is(.confirm-card,.leave-match-card){width:min(460px,100%);text-align:center;display:grid;gap:10px;justify-items:center}
body.cinema-site .modal .confirm-card.modal-card:has(.rules-steps){width:min(620px,100%);text-align:start;justify-items:stretch}
body.cinema-site .confirm-card .eyebrow{color:var(--pl-gold)}
body.cinema-site .confirm-card p,body.cinema-site .leave-match-card p{margin:0;font-size:14px;line-height:1.8;color:var(--pl-mute)}
body.cinema-site .confirm-card>h2,body.cinema-site .leave-match-card>h2{margin:0;font-size:clamp(22px,3.4vw,28px)}
body.cinema-site .confirm-card>strong{font-size:20px;color:var(--pl-gold-hi)}
body.cinema-site .confirm-avatar{width:clamp(110px,22vh,170px);aspect-ratio:1;padding:4px;border-radius:20px;background:var(--pl-steel);box-shadow:0 14px 34px #000a,0 0 0 1px #d7b47466,0 0 40px #d7b47422;overflow:hidden;display:grid;place-items:center;font-size:44px;color:var(--pl-gold)}
body.cinema-site .confirm-avatar :is(.avatar-media,.char-avatar){display:block;width:100%;height:100%;border-radius:16px;overflow:hidden}
body.cinema-site .confirm-avatar img{display:block;width:100%;height:100%;object-fit:cover}
body.cinema-site .modal .result-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:6px 0 0;width:100%}
body.cinema-site .modal .result-actions .btn{flex:1 1 130px;min-height:46px;padding:8px 18px;font-size:15px;border-radius:14px;justify-content:center;max-width:100%}
body.cinema-site .modal .result-actions .btn:disabled{opacity:.4}
body.cinema-site .modal .result-actions .secondary-btn{color:var(--pl-ink);background:#ffffff0a;border:1px solid #ffffff22;box-shadow:none}
body.cinema-site .modal .result-actions .secondary-btn:hover:not(:disabled){border-color:var(--pl-gold);background:#d7b4740f}
body.cinema-site .result-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto;border-radius:50%;color:var(--pl-gold-hi);background:radial-gradient(circle at 35% 25%,#3d4249,#14181d 70%);border:1px solid #d7b47466;box-shadow:0 0 30px #d7b47422}
body.cinema-site .result-icon .icon{width:28px;height:28px}
.rules-intro{font-size:14px;line-height:1.9;margin:0 0 12px}
.rules-steps{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.rules-steps li{display:flex;gap:12px;align-items:flex-start;padding:10px 12px;border-radius:14px;background:#ffffff08;border:1px solid #ffffff10}
.rules-steps li>[data-icon]{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;color:var(--pl-gold-hi);background:#d7b4741a;border:1px solid #d7b47455}
.rules-steps h3{margin:0 0 2px;font-size:15px}
.rules-steps p{margin:0;font-size:13px;line-height:1.7;color:var(--pl-mute)}
.rules-bot{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:14px;background:#d7b4740d;border:1px solid #d7b47433}
.rules-bot p{margin:0;font-size:13px;line-height:1.7;color:var(--pl-mute)}
.rules-bot strong{color:var(--pl-gold-hi)}

/* round result */
body.cinema-site #modal-gameover .result-card,body.cinema-site #modal-solo-result .result-card{width:min(640px,100%);text-align:center;display:grid;gap:10px;justify-items:center}
body.cinema-site .result-card .result-kicker{color:var(--pl-gold)}
body.cinema-site .result-card #result-title,body.cinema-site .result-card #solo-result-title{margin:0;font-size:clamp(28px,5vw,40px);line-height:1.4}
body.cinema-site .result-card.result-win #result-title{background:var(--pl-gold-fill);background-clip:text;-webkit-background-clip:text}
body.cinema-site .result-desc,body.cinema-site #solo-result-caption{margin:0;font-size:14px;color:var(--pl-mute)}
body.cinema-site .result-card :is(.revealed-chars,.result-duel,.result-comparison){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;margin:2px 0}
body.cinema-site .result-card :is(.reveal-player,.comparison-card){display:grid;gap:6px;justify-items:center;padding:12px;border-radius:18px;background:#ffffff08;border:1px solid #ffffff14;min-width:0}
body.cinema-site .result-card .reveal-player.reveal-winner,body.cinema-site .result-card .comparison-actual{border-color:#d7b474aa;background:#d7b4740d;box-shadow:0 0 30px #d7b47420}
body.cinema-site .result-card :is(.reveal-owner,.comparison-card>span){font-size:12px;color:var(--pl-mute)}
body.cinema-site .result-card :is(.revealed-portrait,.comparison-portrait,.solo-reveal>*){display:block;width:min(100%,clamp(96px,24vh,190px));aspect-ratio:1;border-radius:16px;overflow:hidden;padding:3px;background:var(--pl-steel);box-shadow:0 10px 24px #0009;box-sizing:border-box}
body.cinema-site .result-card :is(.revealed-portrait,.comparison-portrait) img,body.cinema-site .result-card .solo-reveal img{display:block;width:100%;height:100%;object-fit:cover;border-radius:13px}
body.cinema-site .result-card :is(.reveal-player,.comparison-card)>strong{font-size:16px;color:var(--pl-ink)}
body.cinema-site .result-card :is(.reveal-player,.comparison-card)>small{font-size:11px;padding:2px 10px;border-radius:99px;color:var(--pl-mute);background:#ffffff0c}
body.cinema-site .result-card :is(.reveal-winner,.comparison-actual)>small{color:#17140e;background:var(--pl-gold-fill);font-weight:800}
body.cinema-site .result-stats{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 14px;width:100%;padding:10px 14px;border-radius:14px;background:#0a0d11a6;border:1px solid #ffffff10;font-size:12px;color:var(--pl-mute);box-sizing:border-box}
body.cinema-site .result-stats strong{font-size:22px;color:var(--pl-gold-hi);direction:ltr}
body.cinema-site .result-stats i{width:1px;height:18px;background:#ffffff1f}
body.cinema-site #modal-gameover .player-readiness{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;margin:0}
body.cinema-site #modal-gameover .player-seat{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px;border-radius:14px;background:#ffffff08;border:1px solid #ffffff10;box-shadow:none}
body.cinema-site #modal-gameover .player-seat .seat-avatar{display:none}
body.cinema-site #modal-gameover .player-seat strong{font-size:14px}
body.cinema-site #modal-gameover .player-seat small{font-size:11px;color:var(--pl-mute)}
body.cinema-site #modal-gameover .player-seat.ready{border-color:#d7b474aa}
body.cinema-site #modal-gameover .player-seat.ready small{color:var(--pl-gold-hi)}

/* card preview */
/* Name on top beside the close button, then the picture: the button never covers the image,
   and the picture always fits inside the card (contain: objects are not cropped). */
body.cinema-site .card-preview-card{width:min(460px,100%);display:grid;gap:12px;justify-items:stretch;text-align:center;padding:14px 16px 18px;box-sizing:border-box}
body.cinema-site .card-preview-close{position:absolute;top:14px;inset-inline-start:14px;z-index:3;display:grid;place-items:center;width:36px;height:36px;padding:0;border-radius:50%;font-size:22px;line-height:1;color:var(--pl-ink);background:#0c0f13cc!important;border:1px solid #ffffff2e!important;box-shadow:none!important}
body.cinema-site .card-preview-image{width:100%;max-width:min(100%,calc(100dvh - 150px));justify-self:center;margin:0;aspect-ratio:1;padding:4px;border-radius:20px;background:var(--pl-steel);box-shadow:0 14px 34px #000a;box-sizing:border-box;overflow:hidden}
body.cinema-site .card-preview-image :is(.card-preview-avatar,img){display:block;width:100%;height:100%;object-fit:contain;background:#fff;border-radius:16px}
body.cinema-site .card-preview-title{order:-1;display:flex;align-items:center;justify-content:center;min-height:36px;padding-inline:44px;font-size:20px;line-height:1.3;color:var(--pl-gold-hi)}

/* countdown + toast */
body.cinema-site .countdown{background:radial-gradient(ellipse at 50% 45%,#262a30,#07090c 78%);color:var(--pl-ink);gap:2px;overflow:hidden;-webkit-backdrop-filter:none!important;backdrop-filter:none;animation:pl-fade 260ms ease-out both}
body.cinema-site .countdown.hidden{display:none}
body.cinema-site .countdown .eyebrow{color:var(--pl-gold);font-size:clamp(14px,2.2vw,18px);letter-spacing:1px}
body.cinema-site .countdown strong{position:relative;font:900 clamp(110px,24vh,200px)/1.2 var(--font-body);background:linear-gradient(#faf8f1,#bdbbb6 60%,#d7b474);background-clip:text;-webkit-background-clip:text;color:transparent;animation:none;will-change:transform,opacity;backface-visibility:hidden}
body.cinema-site .countdown.tick strong{animation:pl-tick 520ms cubic-bezier(.2,.8,.25,1) both}
body.cinema-site .countdown strong::after{content:"";position:absolute;left:50%;top:50%;width:1.1em;height:1.1em;margin:-.55em 0 0 -.55em;border-radius:50%;border:2px solid #d7b47488;opacity:0;will-change:transform,opacity}
body.cinema-site .countdown.tick strong::after{animation:pl-ring 900ms ease-out both}
body.cinema-site .countdown>span:last-child{font-size:clamp(14px,2vw,17px);color:var(--pl-mute)}
body.cinema-site .toast{background:linear-gradient(145deg,#2d3237f2,#14181df2);color:var(--pl-ink);border:1px solid #d7b4746b;border-inline-start:3px solid var(--pl-gold);border-radius:14px;box-shadow:0 14px 40px #000a;font-size:14px;max-width:min(520px,calc(100vw - 24px));text-align:center;box-sizing:border-box}

/* ---------- 7. Tablet / phone -------------------------------------------- */
@media (max-width:900px){
  
  body.cinema-site #screen-game .my-secret-panel{grid-column:1;grid-row:1;align-self:stretch;border-radius:16px;}
  #screen-game .my-secret-panel>.eyebrow{grid-column:1/-1;justify-content:flex-start;font-size:11px}
  body.cinema-site #screen-game .my-secret-content{align-items:center;}
  body.cinema-site #screen-game .secret-avatar{width:54px;max-width:54px;border-radius:12px}
  #screen-game .secret-avatar :is(.avatar-media,.char-avatar),#screen-game .secret-avatar img{border-radius:9px}
  body.cinema-site #screen-game .my-secret-content>div:last-child{text-align:start}
  body.cinema-site #screen-game .my-secret-content strong{font-size:16px}
  
  body.cinema-site #screen-game .my-secret-panel.secret-is-hidden:before{display:none}
  body.cinema-site #characters-board{grid-column:1;grid-row:2}
  body.cinema-site #screen-game .match-board-pages{grid-column:1;grid-row:3}
  
  #screen-game .board-toolbar>div:not(.dock-actions):not(.board-utilities) .eyebrow{display:none}
  #screen-game .dock-actions{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr);}
  
  body.cinema-site #screen-solo.active{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) minmax(0,clamp(220px,40%,340px));grid-template-areas:"head" "board" "chat"}
  /* The input's placeholder already says what to ask; give the space to the chat history. */
  #screen-solo .companion-prompt>strong,#screen-solo .companion-prompt>small{display:none}
  
  #screen-solo .companion-prompt small{display:none}
}
@media (max-width:700px){
  body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active){grid-template-rows:52px minmax(0,1fr)}
  body.cinema-site:has(#screen-waiting.active){grid-template-rows:52px minmax(0,1fr) 27px}
  body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active) .masthead{height:52px;border-radius:0 0 18px 18px}
  body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active) .brand-word{font-size:25px}
  body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active) #app{padding:8px 10px 10px}
  body.cinema-site #screen-waiting.active{gap:8px;justify-content:flex-start;padding-top:2px}
  #screen-waiting .lobby-heading .eyebrow{display:none}
  #screen-waiting .lobby-heading h1{font-size:24px}
  #screen-waiting .lobby-floor{grid-template-columns:minmax(0,1fr);gap:8px}
  body.cinema-site #screen-waiting .player-seat{padding:10px 6px;gap:3px}
  body.cinema-site #screen-waiting .seat-avatar{width:40px;height:40px;font-size:18px}
  body.cinema-site #screen-waiting :is(.invite-ticket,.lobby-start){padding:10px 12px;gap:6px}
  
  #screen-waiting .lobby-start .primary-btn{min-height:42px}
  #screen-waiting .lobby-start p{display:inline-block;margin:0 3px}
  #screen-waiting .secret-choice-panel{flex-wrap:wrap;padding:8px 12px}
  #screen-waiting .secret-choice-panel .btn{min-height:38px}
  body.cinema-site #screen-game .match-score{gap:6px 8px;}
  body.cinema-site #screen-game .match-turn{grid-row:1;}
  #screen-game .player-tag{grid-row:2;}
  
  #screen-game .player-token{width:28px;height:28px;font-size:10px}
  #screen-game .series-score{font-size:20px}
  #turn-clock{min-width:46px;height:30px;font-size:14px}
  
  body.cinema-site #screen-game .board-toolbar{gap:6px 8px}
  #screen-game .board-toolbar h2{font-size:14px}
  
  
  
  .remaining-chip{padding:4px 10px}
  body.cinema-site :is(#characters-board,#solo-characters-board){--gap:7px;--name:22px}
  
  body.cinema-site :is(#characters-board,#solo-characters-board) .char-card{border-radius:11px;padding:2px}
  body.cinema-site #screen-solo .solo-heading{padding:5px 10px;gap:8px}
  #screen-solo .solo-secret{display:none}
  #screen-solo .bot-emblem{width:32px;height:32px}
  
  #screen-solo .board-toolbar>div:first-child{display:none}
  body.cinema-site #screen-solo .board-toolbar{justify-content:space-between}
  #screen-solo .board-utilities .btn span:last-child{display:none}
  #screen-solo .board-utilities .btn{padding:5px 9px}
  
  
  body.cinema-site #screen-solo .composer .btn,body.cinema-site #screen-solo .companion-actions .btn{min-height:38px}
  #screen-solo .companion-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.cinema-site #screen-solo #solo-switch-category{display:none}
  html body.cinema-site #screen-solo .solo-heading .solo-switch-mobile{display:inline-flex}
  body.cinema-site .modal-card{border-radius:18px;}
  body.cinema-site .result-card :is(.revealed-chars,.result-duel,.result-comparison){gap:8px}
  body.cinema-site .result-card :is(.reveal-player,.comparison-card){padding:8px}
}
/* short landscape screens (phones on their side) */
@media (max-height:520px) and (orientation:landscape){
  body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active){grid-template-rows:44px minmax(0,1fr)}
  body.cinema-site:has(#screen-waiting.active){grid-template-rows:44px minmax(0,1fr) 30px}
  body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active) .masthead{height:44px;border-radius:0 0 14px 14px}
  body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active) .brand-word{font-size:22px}
  body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active) .brand-word small{display:none}
  body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active) .brand-mark{width:22px;height:30px;font-size:19px}
  body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active) .menu-toggle{width:32px;height:32px;padding:6px}
  body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active) #app{padding:6px 10px 6px}
  body.cinema-site{--pl-gap:6px}
  #screen-waiting .lobby-heading .eyebrow{display:none}
  #screen-waiting .lobby-heading h1{font-size:20px}
  body.cinema-site #screen-waiting.active{gap:8px}
  body.cinema-site #screen-waiting .player-seat{flex-direction:row;gap:10px;padding:8px 12px;justify-content:flex-start}
  body.cinema-site #screen-waiting .seat-avatar{width:36px;height:36px;font-size:16px}
  #screen-waiting .lobby-floor{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  /* game */
  
  body.cinema-site #screen-game .match-turn{grid-row:auto;}
  
  
  #screen-game .player-tag small,#game-category{display:none}
  
  
  
  #screen-game .my-secret-panel>.eyebrow{display:none}
  
  body.cinema-site #screen-game .secret-avatar{width:min(86px,100%);max-width:86px}
  body.cinema-site #screen-game .my-secret-content small{display:none}
  body.cinema-site #screen-game .my-secret-content strong{font-size:14px}
  body.cinema-site #characters-board{grid-column:2;grid-row:1}
  
  
  
  
  
  
  body.cinema-site :is(#characters-board,#solo-characters-board){--name:18px;--gap:6px}
  
  /* solo */
  body.cinema-site #screen-solo.active{grid-template-columns:minmax(0,1fr) 250px;grid-template-rows:auto minmax(0,1fr);grid-template-areas:"head head" "board chat"}
  body.cinema-site #screen-solo .solo-heading{padding:3px 10px}
  #screen-solo .solo-heading .eyebrow,#screen-solo .bot-emblem{display:none}
  
  #screen-solo .board-toolbar>div:first-child{display:none}
  body.cinema-site #screen-solo .board-toolbar{justify-content:flex-end}
  
  #screen-solo .companion-prompt{display:none}
  
  body.cinema-site #screen-solo .composer input,body.cinema-site #screen-solo .composer .btn,body.cinema-site #screen-solo .companion-actions .btn{min-height:32px}
  #screen-solo .companion-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ---------- 8. Neutralise legacy per-breakpoint patches ------------------- */
html body.cinema-site #screen-game #characters-board,html body.cinema-site #screen-solo #solo-characters-board{grid-template-columns:repeat(var(--c),minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:auto!important;gap:var(--gap)!important;height:100%!important;width:100%!important;max-width:none!important;align-content:center!important;justify-content:stretch!important;padding:0!important;overflow:hidden!important;--gap:clamp(10px,1.9vh,18px)}
html body.cinema-site #screen-solo #solo-characters-board .card-item{width:100%!important;height:auto!important;align-self:stretch}
html body.cinema-site #screen-solo #solo-characters-board .card-item>.char-card{width:var(--card)!important;height:auto!important;aspect-ratio:1!important;max-height:none!important}

html body.cinema-site #screen-game .match-turn{display:grid!important;flex-direction:initial;max-width:none;min-width:min(400px,40vw)!important;height:auto!important;border-radius:16px;padding:6px 18px!important;gap:0 14px!important;line-height:1.4}
html body.cinema-site #screen-game .match-turn #turn-clock{font-size:16px!important;min-width:56px!important;padding:0 12px}
html body.cinema-site #screen-game .match-turn #turn-indicator{font-size:15px!important}
html body.cinema-site #screen-game #turn-card{background:#0c0f13a0;border:1px solid #9fa4a933;box-shadow:none;border-radius:16px}
html body.cinema-site #screen-game.your-turn #turn-card,html body.cinema-site #screen-game .match-turn.my-turn{background:#16130d99;border:1px solid #d7b474aa;box-shadow:0 0 0 1px #d7b47422,0 0 26px #d7b47422}
html body.cinema-site #screen-game.opponent-turn #turn-card:not(.my-turn){background:#0c0f13a0;border:1px solid #9fa4a933}
html body.cinema-site #screen-game .match-turn #game-category{display:block}
html body.cinema-site #turn-indicator{color:var(--pl-ink)}
html body.cinema-site #screen-game .match-turn.my-turn #turn-indicator{color:var(--pl-gold-hi)!important}
html body.cinema-site #screen-game .match-score{padding:8px 12px!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
html body.cinema-site #screen-game .player-tag{padding:4px 10px 4px 14px!important;gap:10px;min-width:0}
html body.cinema-site #screen-game .opponent-tag{padding:4px 14px 4px 10px!important}
html body.cinema-site #screen-game .player-tag strong{font-size:15px;max-width:none}
html body.cinema-site #screen-game .player-tag small:not(:empty){display:block}
html body.cinema-site #screen-game .active-player{border:1px solid #d7b474aa!important;background:#d7b47410;box-shadow:none}
html body.cinema-site #screen-game .active-player:after{display:none}
html body.cinema-site #screen-game .board-toolbar{display:grid;padding:8px 12px!important;flex-wrap:nowrap}
html body.cinema-site #screen-game .board-toolbar>div.board-utilities{display:flex}
html body.cinema-site #screen-game .dock-actions .btn{min-height:40px!important;padding:6px 16px;font-size:14px}
html body.cinema-site #screen-game .board-utilities .btn{font-size:12px;padding:5px 12px;min-height:36px}
html body.cinema-site #screen-game .remaining-chip{font-size:12px;padding:6px 12px;min-height:0}
html body.cinema-site #screen-game .my-secret-panel{height:auto!important;min-height:0;overflow:visible!important;position:relative;box-sizing:border-box}
html body.cinema-site #screen-game .my-secret-panel strong{font-size:18px}
html body.cinema-site #screen-game .my-secret-panel small{display:block}
html body.cinema-site #screen-game .my-secret-panel .eyebrow{font-size:12px}
html body.cinema-site #toggle-secret{font-size:12px;min-height:32px;padding:3px 12px}
html body.cinema-site #screen-game .my-secret-panel .secret-avatar{width:100%;height:auto;aspect-ratio:1}
html body.cinema-site #screen-game .my-secret-content{display:grid!important;flex-direction:initial}
html body.cinema-site #screen-game #round-label{display:block}
html body.cinema-site #screen-game #characters-board{padding:0!important;justify-content:stretch!important;overflow:hidden!important}
html body.cinema-site #screen-game .card-item{width:100%!important;align-self:stretch}
html body.cinema-site #screen-game .card-item>.char-card{width:var(--card)!important;padding:3px!important}
html body.cinema-site #screen-game .char-avatar{background:#14181d}
html body.cinema-site #screen-game .char-avatar img{object-fit:cover!important;background:none}
html body.cinema-site #screen-game .card-meta .char-name{font-size:clamp(10px,1.45vh,13px)!important;padding:0 2px!important}
html body.cinema-site #screen-game.active{padding:0;gap:var(--pl-gap)}

@media (max-width:900px){
  html body.cinema-site #screen-game.active{display:flex}
  html body.cinema-site #screen-game .board-area{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:var(--pl-gap)}
  
  html body.cinema-site #screen-game .my-secret-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px;padding:8px 12px!important;text-align:start}
  html body.cinema-site #screen-game .my-secret-panel>.eyebrow{display:none}
  html body.cinema-site #screen-game .my-secret-content{display:flex!important;flex-direction:row;grid-column:1;justify-items:initial;gap:12px}
  html body.cinema-site #screen-game .my-secret-panel small{display:none}
  html body.cinema-site #screen-game .my-secret-panel .secret-avatar{width:48px;max-width:48px;height:48px;aspect-ratio:1;border-radius:12px}
  html body.cinema-site #screen-game .my-secret-panel .text-btn{grid-column:2;grid-row:1}
  html body.cinema-site #screen-game .my-secret-panel strong{font-size:16px}
}
@media (max-width:700px){
  html body.cinema-site #screen-game .match-turn{grid-column:1/-1;min-width:0!important;width:100%;box-sizing:border-box;padding:5px 12px!important;justify-self:stretch}
  html body.cinema-site #screen-game .match-turn #turn-clock{min-width:46px!important;font-size:14px!important;height:30px}
  html body.cinema-site #screen-game .match-turn #turn-indicator{font-size:14px!important}
  html body.cinema-site #screen-game .match-score{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:7px 8px!important}
  html body.cinema-site #screen-game .player-tag{padding:2px 6px!important;gap:6px}
  html body.cinema-site #screen-game .player-tag strong{font-size:13px}
  html body.cinema-site #screen-game .board-toolbar{padding:6px 8px!important}
  html body.cinema-site #screen-game .dock-actions .btn{min-height:38px!important;padding:4px 10px;font-size:13px}
  html body.cinema-site #screen-game .board-utilities .btn span:last-child{display:none}
  html body.cinema-site #screen-game .board-utilities .btn{padding:5px 9px;min-height:34px}
}
/* short landscape: HUD and controls share one strip, secret + pager in a side rail */
@media (max-height:520px) and (orientation:landscape){
  html body.cinema-site #screen-game .match-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;width:100%}
  html body.cinema-site #screen-game .match-score{padding:2px 8px!important;border-radius:14px;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
  html body.cinema-site #screen-game .match-turn{grid-column:auto;width:auto;min-width:0!important;padding:2px 12px!important;border-radius:12px!important;grid-template-areas:"clock ind score"}
  html body.cinema-site #screen-game .match-turn #turn-clock{height:26px;font-size:13px!important;min-width:44px!important}
  html body.cinema-site #screen-game .match-turn #turn-indicator{font-size:13px!important}
  html body.cinema-site #screen-game .series-score{font-size:18px}
  html body.cinema-site #screen-game #game-category,html body.cinema-site #screen-game #round-label{display:none!important}
  html body.cinema-site #screen-game .player-tag{grid-row:auto}
  html body.cinema-site #screen-game .player-token,html body.cinema-site #screen-game .player-tag small{display:none!important}
  html body.cinema-site #screen-game .board-toolbar{padding:3px 8px!important;border-radius:14px}
  html body.cinema-site #screen-game .board-toolbar>div:not(.dock-actions):not(.board-utilities){display:none!important}
  html body.cinema-site #screen-game .dock-actions{display:flex;width:100%}
  html body.cinema-site #screen-game .dock-actions .btn{min-height:32px!important;font-size:12px;padding:3px 10px!important}
  html body.cinema-site #screen-game .board-utilities .btn{min-height:30px;padding:4px 8px}
  html body.cinema-site #screen-game .board-utilities .btn span:last-child{display:none}
  html body.cinema-site #screen-game .remaining-chip{padding:3px 8px}
  html body.cinema-site #screen-solo .board-utilities .btn span:last-child{display:none}
  html body.cinema-site #screen-game .board-area{grid-template-columns:132px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:6px 10px}
  html body.cinema-site #screen-game .my-secret-panel{grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:center;text-align:center;padding:6px!important;gap:4px;align-self:start}
  html body.cinema-site #screen-game .my-secret-content{display:grid!important;justify-items:center;gap:3px}
  html body.cinema-site #screen-game .my-secret-panel .secret-avatar{width:68px;max-width:68px;height:68px}
  html body.cinema-site #screen-game .my-secret-panel strong{font-size:13px}
  html body.cinema-site #screen-game .my-secret-panel .text-btn{grid-column:auto;grid-row:auto;min-height:26px;font-size:11px;padding:2px 8px}
  html body.cinema-site #screen-game #characters-board{grid-column:2;grid-row:1/-1}
  html body.cinema-site #screen-game .match-board-pages{grid-column:1;grid-row:3;gap:6px;flex-wrap:wrap}
  html body.cinema-site #screen-game .match-board-pages button{min-height:30px;padding:2px 10px}
  html body.cinema-site #screen-solo .solo-board-pages{gap:6px}
  #screen-solo .companion-actions .btn .icon{display:none}
  body.cinema-site #screen-solo .companion-actions .btn{font-size:11px;padding:3px 6px}
  body.cinema-site #screen-solo .composer .btn{padding:3px 10px;font-size:12px}
}

/* ---------- 9. Desktop refinements: tighter rows, centred stage, centred controls ---------- */
html body.cinema-site #screen-game #characters-board{--gap:8px;--name:32px;grid-auto-rows:max-content!important;column-gap:6px!important;row-gap:8px!important;padding-inline:5px!important;box-sizing:border-box}
html body.cinema-site #screen-game .card-item{gap:8px!important}
/* toolbar: title (start) · buttons (true centre) · counters (end) */
html body.cinema-site #screen-game .board-toolbar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:"title act util"}
html body.cinema-site #screen-game .dock-actions{grid-area:act;justify-content:center;justify-self:center}
html body.cinema-site #screen-game .board-utilities{grid-area:util;justify-self:end;justify-content:flex-end}
html body.cinema-site #screen-game .board-toolbar>div:not(.dock-actions):not(.board-utilities){grid-area:title;justify-self:start}
html body.cinema-site #screen-game .match-toolbar{align-self:stretch}

html body.cinema-site #screen-game .board-utilities{flex-wrap:nowrap}
@media (max-width:1500px){
  html body.cinema-site #screen-game .board-utilities .btn span:last-child{display:none}
  html body.cinema-site #screen-game .board-utilities .btn{padding:5px 9px;min-width:0}
  html body.cinema-site #screen-game .board-utilities{gap:4px}
  html body.cinema-site #screen-game .dock-actions{gap:6px}
  html body.cinema-site #screen-game .dock-actions .btn{padding:6px 12px!important;font-size:13px}
  html body.cinema-site #screen-game .remaining-chip{padding:5px 9px;font-size:11px}
  html body.cinema-site #screen-game .board-toolbar>div:not(.dock-actions):not(.board-utilities){display:none}
}
@media (max-width:1500px) and (min-width:901px){html body.cinema-site #screen-game .board-toolbar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}}
@media (min-width:901px){
  html body.cinema-site #screen-game.active{max-width:none!important}
  html body.cinema-site #screen-game{--rail:clamp(160px,12vw,212px);--stage:min(1240px,calc(100% - 2 * (var(--rail) + 14px)))}
  html body.cinema-site #screen-game .match-toolbar{width:var(--stage)!important;max-width:none;margin-inline:auto!important;align-self:center!important}
  html body.cinema-site #screen-game .board-area{grid-template-columns:var(--stage);justify-content:center}
  html body.cinema-site #screen-game #characters-board{grid-column:1;grid-row:1;width:100%!important}
  html body.cinema-site #screen-game .match-board-pages{grid-column:1}
  html body.cinema-site #screen-game .my-secret-panel{position:absolute;right:0;left:auto;width:var(--rail);grid-column:auto;grid-row:auto}
}

/* ---------- 10. Waiting room: same width as the home panel (630px) ---------- */
@media (min-width:701px){
  html body.cinema-site:has(#screen-waiting.active) #app>#screen-waiting.active{max-width:630px;width:min(630px,100%);margin-inline:auto;gap:clamp(10px,1.8vh,16px)}
  html body.cinema-site #screen-waiting .lobby-heading h1{font-size:clamp(26px,4vh,32px)}
  html body.cinema-site #screen-waiting .player-seat{padding:clamp(10px,1.8vh,16px) 10px;border-radius:16px}
  html body.cinema-site #screen-waiting .seat-avatar{width:clamp(44px,7vh,54px);height:clamp(44px,7vh,54px);font-size:clamp(18px,3vh,24px)}
  html body.cinema-site #screen-waiting .player-seat strong{font-size:16px}
  html body.cinema-site #screen-waiting .player-seat small{font-size:11px}
  html body.cinema-site #screen-waiting .lobby-floor{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr));border:0}
  html body.cinema-site #screen-waiting .lobby-floor>*{width:100%;box-sizing:border-box;min-width:0}
  html body.cinema-site #screen-waiting .lobby-start .primary-btn{box-sizing:border-box}
  html body.cinema-site #screen-waiting :is(.invite-ticket,.lobby-start){padding:clamp(12px,2vh,18px) 12px;border-radius:16px;gap:6px}
  html body.cinema-site #screen-waiting .room-code-box{letter-spacing:.16em;}
  html body.cinema-site #screen-waiting .lobby-start .primary-btn{min-height:44px;font-size:16px;border-radius:14px}
  html body.cinema-site #screen-waiting .small-actions .btn{font-size:12px;padding:4px 6px}
  html body.cinema-site #screen-waiting .lobby-start p{font-size:12px;margin:0}
}

/* ---------- 11. Cross-browser hardening ---------------------------------- */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.cinema-site :is(#screen-waiting,#screen-game,#screen-solo,.modal) :is(button,input,select){-webkit-appearance:none;appearance:none;font-family:inherit}
body.cinema-site :is(#screen-game .match-score,#screen-game .board-toolbar,#screen-game .my-secret-panel,#screen-waiting .player-seat,#screen-waiting .invite-ticket,#screen-waiting .lobby-start,#screen-waiting .secret-choice-panel,#screen-solo .solo-heading,#screen-solo .bot-companion){-webkit-backdrop-filter:blur(8px)}
body.cinema-site .modal{-webkit-backdrop-filter:blur(7px)}
body.cinema-site .modal-card::-webkit-scrollbar,body.cinema-site #secret-choice-grid::-webkit-scrollbar,body.cinema-site #screen-solo .chat-log::-webkit-scrollbar{width:8px}
body.cinema-site .modal-card::-webkit-scrollbar-thumb,body.cinema-site #secret-choice-grid::-webkit-scrollbar-thumb,body.cinema-site #screen-solo .chat-log::-webkit-scrollbar-thumb{background:#8e7d5b;border-radius:8px}
body.cinema-site .modal-card::-webkit-scrollbar-track,body.cinema-site #secret-choice-grid::-webkit-scrollbar-track,body.cinema-site #screen-solo .chat-log::-webkit-scrollbar-track{background:#171d23}
@supports not (height:1cqh){
  html body.cinema-site :is(#screen-game #characters-board,#screen-solo #solo-characters-board) .card-item>.char-card{width:min(100%,8.2vh)!important}
}
@supports not selector(:has(*)){
  body.cinema-site{overflow-x:hidden}
}

/* ---------- 12. Zoom-safe layout (browser zoom changes the CSS viewport) ---------- */
html body.cinema-site #screen-game .my-secret-content{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-auto-flow:row}
html body.cinema-site #screen-game .my-secret-content>*{grid-area:auto!important;grid-column:1!important}
@media (min-width:901px) and (max-width:1180px){
  html body.cinema-site #screen-game .board-toolbar{grid-template-columns:minmax(0,1fr);grid-template-areas:"act" "util";justify-items:center;gap:6px}
  html body.cinema-site #screen-game .dock-actions{justify-self:center}
  html body.cinema-site #screen-game .board-utilities{justify-self:center;justify-content:center}
  
}

@media (max-width:900px){
  html body.cinema-site #screen-game .board-toolbar{grid-template-columns:minmax(0,1fr);grid-template-areas:"act" "util";justify-items:center;gap:6px}
  html body.cinema-site #screen-game .dock-actions{grid-area:act;justify-self:center;width:auto}
  html body.cinema-site #screen-game .board-utilities{grid-area:util;justify-self:center;justify-content:center}
}
@media (max-width:1180px) and (max-height:520px){
  html body.cinema-site #screen-game .board-toolbar{grid-template-columns:auto auto;grid-template-areas:"util act";justify-content:center;gap:10px}
}
html body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active) #app{padding-bottom:10px}

html body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active) #app{display:flex;flex-direction:column}
html body.cinema-site:has(:is(#screen-waiting,#screen-game,#screen-solo).active) #app>.screen.active{height:auto!important;max-height:none!important;flex:1 1 0;min-height:0}
html body.cinema-site:has(#screen-solo.active) #app>#screen-solo.active{display:grid}

@media (max-height:430px){
  html body.cinema-site #screen-game .my-secret-panel{padding:5px!important;gap:3px}
  html body.cinema-site #screen-game .my-secret-panel .secret-avatar{width:44px!important;max-width:44px!important;height:44px!important;border-radius:10px}
  html body.cinema-site #screen-game .my-secret-panel strong{font-size:12px}
  html body.cinema-site #screen-game .my-secret-panel .text-btn{min-height:22px;font-size:10px;padding:1px 6px}
  html body.cinema-site #screen-game .match-board-pages{gap:4px}
  html body.cinema-site #screen-game .match-board-pages button{min-height:24px;padding:1px 8px;font-size:11px}
  html body.cinema-site #screen-game .match-board-pages span{min-width:34px;font-size:11px}
}

/* waiting room at short heights (zoomed in): keep everything inside the viewport */
@media (max-height:620px) and (min-width:701px){
  html body.cinema-site #screen-waiting.active{gap:8px}
  html body.cinema-site #screen-waiting .lobby-heading h1{font-size:22px}
  html body.cinema-site #screen-waiting .lobby-heading .eyebrow{display:none}
  html body.cinema-site #screen-waiting .player-seat{flex-direction:row;justify-content:flex-start;gap:10px;padding:6px 12px;text-align:start}
  html body.cinema-site #screen-waiting .player-seat>*{margin:0}
  html body.cinema-site #screen-waiting .seat-avatar{width:34px;height:34px;font-size:15px;flex:none}
  html body.cinema-site #screen-waiting .secret-choice-panel{padding:6px 12px}
  html body.cinema-site #screen-waiting :is(.invite-ticket,.lobby-start){padding:8px 10px;gap:4px}
  
  html body.cinema-site #screen-waiting .lobby-start .primary-btn{min-height:36px;font-size:14px}
  html body.cinema-site #screen-waiting .lobby-start small,html body.cinema-site #screen-waiting .lobby-start p{display:none}
  html body.cinema-site #screen-waiting>.text-btn{min-height:24px;padding:2px 8px;font-size:11px}
}
@media (max-height:420px){
  html body.cinema-site #screen-waiting .lobby-heading{display:none}
  html body.cinema-site #screen-waiting .secret-choice-panel .eyebrow{display:none}
}
@media (max-height:520px) and (max-width:900px){
  html body.cinema-site #screen-waiting.active{width:min(640px,100%)!important;max-width:none!important}
}

/* Waiting room: both rows share the same two columns */
html body.cinema-site #screen-waiting :is(.lobby-seats,.lobby-floor){--lg:clamp(8px,1.6vw,18px);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;column-gap:var(--lg)!important;gap:var(--lg);width:100%;box-sizing:border-box}
html body.cinema-site #screen-waiting .lobby-seats{position:relative}
html body.cinema-site #screen-waiting .lobby-seats .seat-vs{position:absolute;inset-block-start:50%;inset-inline-start:50%;left:50%;right:auto;transform:translate(-50%,-50%);z-index:2;width:36px;height:36px;box-shadow:0 0 0 5px #0b0e12}
@media (min-height:700px){html body.cinema-site #screen-waiting .player-seat{min-height:clamp(104px,17vh,140px)}}
html body.cinema-site #screen-waiting .lobby-start{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-content:center;justify-items:stretch;gap:8px}
html body.cinema-site #screen-waiting .lobby-start p{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.cinema-site #screen-waiting .lobby-start>:not(p){grid-column:1/-1}
html body.cinema-site #screen-waiting .lobby-start small{text-align:center}
html body.cinema-site #screen-waiting .invite-ticket{gap:10px}
@media (max-width:560px){
  html body.cinema-site #screen-waiting .lobby-floor{grid-template-columns:minmax(0,1fr)!important}
}

/* Round: breathing room under header, cards closer to toolbar, no Space hint */
html body.cinema-site #screen-game .space-hint,html body.cinema-site #screen-game .end-turn-hint,html body.cinema-site #screen-game small:has(>kbd){display:none}
@media (min-height:700px){html body.cinema-site:has(#screen-game.active) #app{padding-top:clamp(14px,2.6vh,28px)}}
html body.cinema-site #screen-game #characters-board{align-content:start!important}
@media (min-height:700px){html body.cinema-site #screen-game #characters-board{padding-top:clamp(10px,2.2vh,24px)!important}}

/* Compact, lighter round-result dialog */
body.cinema-site:has(.modal:not(.hidden)) :is(#app,.masthead) *{animation:none!important}
body.cinema-site .modal{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html body.cinema-site :is(#modal-gameover,#modal-solo-result) .result-card{width:min(500px,100%);padding:clamp(14px,2.4vh,22px) clamp(14px,2vw,22px);gap:8px;border-radius:20px}
html body.cinema-site :is(#modal-gameover,#modal-solo-result) .result-icon{width:44px;height:44px}
html body.cinema-site :is(#modal-gameover,#modal-solo-result) .result-icon .icon{width:22px;height:22px}
html body.cinema-site :is(#modal-gameover,#modal-solo-result) .result-card :is(#result-title,#solo-result-title){font-size:clamp(22px,3.8vh,30px)!important;line-height:1.3}
html body.cinema-site :is(#modal-gameover,#modal-solo-result) .result-card :is(.result-desc,#solo-result-caption){font-size:13px}
html body.cinema-site :is(#modal-gameover,#modal-solo-result) .result-card :is(.revealed-chars,.result-duel,.result-comparison){gap:10px}
html body.cinema-site :is(#modal-gameover,#modal-solo-result) .result-card :is(.reveal-player,.comparison-card){padding:8px;gap:4px;border-radius:14px}
html body.cinema-site :is(#modal-gameover,#modal-solo-result) .result-card :is(.revealed-portrait,.comparison-portrait,.solo-reveal>*){width:min(100%,clamp(78px,17vh,124px))}
html body.cinema-site :is(#modal-gameover,#modal-solo-result) .result-card :is(.reveal-player,.comparison-card)>strong{font-size:14px}
html body.cinema-site :is(#modal-gameover,#modal-solo-result) .result-stats{padding:6px 12px}
html body.cinema-site :is(#modal-gameover,#modal-solo-result) .result-stats strong{font-size:18px}
html body.cinema-site #modal-gameover .player-readiness .player-seat{padding:6px 8px;border-radius:12px;gap:1px}
html body.cinema-site #modal-gameover .player-readiness .player-seat strong{font-size:13px}
html body.cinema-site #modal-gameover .result-actions .btn{min-height:40px;font-size:14px;padding:6px 12px}

/* ---------- 13. Cases ("قضايا") — same shell as the card rounds, 16:9 evidence cards ---------- */
html body.cinema-site.case-mode #screen-game.active{display:flex;flex-direction:column;grid-template-columns:none;grid-template-rows:none;justify-content:flex-start;padding:0;gap:var(--pl-gap)}
html body.cinema-site.case-mode #screen-game .match-toolbar{grid-column:auto;grid-row:auto;position:relative;margin-inline:auto}
html body.cinema-site.case-mode #screen-game .board-area{display:grid;gap:var(--pl-gap) 14px;flex:1 1 0;min-height:0;overflow:hidden;position:relative}
html body.cinema-site.case-mode #screen-game #characters-board{height:100%;width:100%;--gap:12px;--name:34px;align-content:start!important;grid-auto-rows:max-content!important;column-gap:12px!important;row-gap:12px!important;padding:0 5px!important;box-sizing:border-box}
html body.cinema-site.case-mode #screen-game #characters-board:not(:has(.card-item:nth-child(9))){--r:2}
html body.cinema-site.case-mode #screen-game #characters-board:not(:has(.card-item:nth-child(5))){--r:1}
@media (min-height:700px){html body.cinema-site.case-mode #screen-game #characters-board{padding-top:clamp(10px,2.2vh,24px)!important}}
html body.cinema-site.case-mode #screen-game .card-item{gap:8px!important;border:0!important;border-radius:0!important;background:none!important;overflow:visible!important}
html body.cinema-site.case-mode #screen-game .card-item>.char-card{--card:min(100%,calc(((100cqh - (var(--r) - 1) * var(--gap)) / var(--r) - var(--name)) * 16 / 9));width:var(--card)!important;height:auto!important;aspect-ratio:16/9!important;padding:3px!important;border:1px solid #d9d4cb33!important;border-radius:14px!important;overflow:hidden!important;box-shadow:0 6px 14px #0009,inset 0 1px #ffffff40!important;background:var(--pl-steel)!important}
html body.cinema-site.case-mode #screen-game .card-item>.char-card.eliminated{background:linear-gradient(135deg,#23272c,#101317)!important;border-color:#ffffff12!important}
html body.cinema-site.case-mode #screen-game .char-avatar{width:100%!important;height:100%!important;aspect-ratio:auto!important;border-radius:11px;background:#14181d!important}
html body.cinema-site.case-mode #screen-game .char-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:11px;background:#14181d!important}
html body.cinema-site.case-mode #screen-game .card-meta{height:auto!important;min-height:0!important;gap:0!important;border:0!important;padding:0!important;background:none!important}
html body.cinema-site.case-mode #screen-game .card-meta .char-name{height:auto!important;min-height:0!important;font-size:clamp(10px,1.45vh,13px)!important}
html body.cinema-site.case-mode #screen-game .case-art-pending::after{inset:auto 0 0 0;padding:2px 4px;border-radius:0 0 11px 11px;font-size:9px;background:#101619cc}
@media (min-height:521px){
html body.cinema-site.case-mode #screen-game .match-score{padding:8px 12px!important}
html body.cinema-site.case-mode #screen-game .board-toolbar{padding:8px 12px!important}
}
@media (max-height:520px){
html body.cinema-site.case-mode #screen-game .match-score{padding:2px 8px!important}
html body.cinema-site.case-mode #screen-game .board-toolbar{padding:3px 8px!important}
}
html body.cinema-site.case-mode #screen-game .my-secret-panel{margin:0}
html body.cinema-site.case-mode #screen-game .secret-avatar,html body.cinema-site.case-mode #screen-game #secret-char-avatar{width:100%!important;max-width:none!important;height:auto!important;aspect-ratio:16/9!important;padding:3px;border-radius:14px;background:var(--pl-steel)!important}
html body.cinema-site.case-mode #screen-game #secret-char-avatar .avatar-media{border-radius:11px;aspect-ratio:auto}
html body.cinema-site.case-mode #screen-game #secret-char-avatar img{object-fit:cover;border-radius:11px}
html body.cinema-site.case-mode #screen-game .my-secret-panel strong{font-size:16px}
@media (min-width:901px){
  html body.cinema-site.case-mode #screen-game .match-toolbar{width:var(--stage);max-width:none;margin-inline:auto;align-self:center;grid-column:auto}
  html body.cinema-site.case-mode #screen-game .my-secret-panel{padding:14px;gap:10px}
  html body.cinema-site.case-mode #screen-game .board-area{grid-template-columns:var(--stage);justify-content:center;display:grid}
  html body.cinema-site.case-mode #screen-game #characters-board,html body.cinema-site.case-mode #screen-game .match-board-pages{grid-column:1;}
  html body.cinema-site.case-mode #screen-game #characters-board{grid-row:1}
  html body.cinema-site.case-mode #screen-game .match-board-pages{grid-row:2}
  html body.cinema-site.case-mode #screen-game .my-secret-panel{position:absolute;right:0;left:auto;top:0;width:var(--rail);grid-column:auto;grid-row:auto}
  html body.cinema-site.case-mode #screen-game .card-meta{border-top:0!important}
}
@media (max-width:900px){
  html body.cinema-site.case-mode #screen-game .board-area{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto}
  html body.cinema-site.case-mode #screen-game .my-secret-panel{grid-column:1;grid-row:1;align-self:stretch;padding:8px 12px;gap:6px 12px;position:relative}
  html body.cinema-site.case-mode #screen-game :is(.secret-avatar,#secret-char-avatar){width:96px!important;max-width:96px!important}
  html body.cinema-site.case-mode #screen-game #characters-board{grid-column:1;grid-row:2}
  html body.cinema-site.case-mode #screen-game .match-board-pages{grid-column:1;grid-row:3}
}

/* cases: modals + pickers use 16:9 frames, no blank bands */
html body.cinema-site .case-avatar img{object-fit:cover!important;background:#14181d!important}
html body.cinema-site.case-mode .modal .guess-grid,html body.cinema-site.case-mode #secret-choice-grid{grid-template-columns:repeat(auto-fill,minmax(clamp(104px,11vw,148px),1fr))!important}
html body.cinema-site.case-mode .modal :is(.guess-grid,#secret-choice-grid) .card-item>:is(.char-card,.guess-card){aspect-ratio:16/9!important;height:auto!important;width:100%!important}
html body.cinema-site.case-mode .modal :is(.char-avatar,.avatar-media){background:#14181d!important}
html body.cinema-site.case-mode .result-card :is(.revealed-portrait,.comparison-portrait){aspect-ratio:16/9!important;width:100%!important;height:auto!important}
html body.cinema-site.case-mode .result-card :is(.revealed-portrait,.comparison-portrait) :is(.avatar-media,.char-avatar){aspect-ratio:auto!important;height:100%}
html body.cinema-site.case-mode .result-card :is(.revealed-portrait,.comparison-portrait) img{object-fit:cover!important}

@media (max-height:430px){
  html body.cinema-site.case-mode #screen-game :is(.secret-avatar,#secret-char-avatar){width:64px!important;max-width:64px!important;height:auto!important}
  html body.cinema-site.case-mode #screen-game .my-secret-panel{padding:5px 10px!important;gap:3px 10px}
}

@media (max-height:520px) and (orientation:landscape) and (max-width:900px){
  html body.cinema-site.case-mode #screen-game .board-area{grid-template-columns:150px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) auto!important}
  html body.cinema-site.case-mode #screen-game .my-secret-panel{grid-column:1;grid-row:1/-1;display:flex;flex-direction:column;text-align:center;padding:8px!important;gap:6px;align-self:start}
  html body.cinema-site.case-mode #screen-game :is(.secret-avatar,#secret-char-avatar){width:min(110px,100%)!important;max-width:110px!important}
  html body.cinema-site.case-mode #screen-game #characters-board{grid-column:2;grid-row:1}
  html body.cinema-site.case-mode #screen-game .match-board-pages{grid-column:2;grid-row:2}
}
@media (max-height:360px){
  html body.cinema-site #screen-waiting .lobby-seats{display:none}
}

@media (max-height:430px){
  html body.cinema-site #screen-waiting .lobby-heading{display:none}
  html body.cinema-site #screen-waiting .player-seat{min-height:0}
  html body.cinema-site #screen-waiting .lobby-start small{display:none}
  html body.cinema-site #screen-waiting{gap:6px!important}
  html body.cinema-site #screen-waiting :is(.invite-ticket,.lobby-start){padding:6px 10px!important;gap:4px!important}
  #screen-waiting .room-code-box{font-size:17px!important;padding:3px 10px!important}
  #screen-waiting .lobby-start .primary-btn{min-height:36px!important}
  #screen-waiting .invite-ticket .eyebrow{display:none}
}
/* Narrow phones: three match buttons share ~340px; keep «خمن الشخصية» from clipping. */
@media (max-width:420px){
  html body.cinema-site #screen-game .dock-actions{gap:4px}
  html body.cinema-site #screen-game .dock-actions .btn{padding:4px 6px!important;font-size:12px;gap:4px}
}
@media (max-width:360px){
  /* Three equal header columns are narrower than the logo here; size them to their content. */
  html body.cinema-site .masthead{grid-template-columns:auto minmax(0,1fr) auto}
  #screen-solo .solo-switch-mobile span:last-child{display:none}
  body.cinema-site #screen-solo .solo-heading h1{white-space:nowrap}
  html body.cinema-site #screen-game .dock-actions .btn [data-icon]{display:none}
  html body.cinema-site #screen-game .dock-actions .btn{white-space:normal;line-height:1.15;text-align:center}
}
@media (prefers-reduced-motion:reduce){
  body.cinema-site *,body.cinema-site *::before,body.cinema-site *::after{animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important}
}

/* /css/type.css */
/* Fonts: Readex Pro for headings, Noto Sans Arabic (as before) for text (loaded from Google Fonts in index.html). */
:root{--font-body:'Noto Sans Arabic',Tajawal,Tahoma,'Segoe UI',sans-serif;--font-head:'Readex Pro','Noto Sans Arabic',Tahoma,'Segoe UI',sans-serif;--identity-font:var(--font-body)}
html body.cinema-site{font-family:var(--font-body)}
html body.cinema-site :is(button,input,select,textarea){font-family:inherit}
html body.cinema-site :is(h1,h2,h3,h4,.page-intro h1,.guide-steps h2,.legal-card h1,.legal-card h2,.modal-card h2,.modal-card h3){font-family:var(--font-head)}
html body.cinema-site :is(h1,h2,h3,h4){font-weight:700}
/* GWHO type scale — one hierarchy for all static pages (info, guide, account, store, setup screens).
   h1 28 · h2 18 · h3 15 · lead 14.5 · body 14 · small 12 · micro 11.5 */

html body.cinema-site :is(.page-intro h1,.legal-card h1,.account-main h1,.info-heading h1){font-size:var(--t-h1);line-height:1.5;letter-spacing:0}
html body.cinema-site :is(.legal-card h2,.guide-steps h2,.guide-example h2,.account-main h2,.store-card-body h2){font-size:var(--t-h2);line-height:1.6;letter-spacing:0}
html body.cinema-site :is(.account-main h3,.admin-block h3,.paid-games>h3,.paid-orders>h3){font-size:var(--t-h3);line-height:1.6}

/* eyebrows / kickers */
html body.cinema-site :is(.page-eyebrow,.account-kicker,.eyebrow){font-size:var(--t-micro);letter-spacing:.4px}
/* lead + body */
html body.cinema-site .page-intro p{font-size:var(--t-lead);}
html body.cinema-site :is(.legal-card p,.legal-card li,.guide-steps p,.contact-row){font-size:var(--t-body);}
html body.cinema-site .guide-example p{font-size:13px;line-height:2}
html body.cinema-site .legal-card .updated{font-size:var(--t-small)}
html body.cinema-site .account-main{font-size:var(--t-body)}
html body.cinema-site .account-main .account-heading p,html body.cinema-site .account-main .account-description{font-size:13px}
html body.cinema-site .account-main :is(.account-hint,.account-entry small,.account-policy,.account-benefits,.account-security-row small,.account-connected){font-size:var(--t-small)}
html body.cinema-site .account-main .account-security-row strong{font-size:var(--t-body)}
html body.cinema-site .account-main .account-security-row p{font-size:13px}
html body.cinema-site .account-main :is(label,.account-fields>label:first-child,.account-avatars legend){font-size:13px}
html body.cinema-site .account-main .btn{font-size:13px}
/* store */
html body.cinema-site .account-main :is(.store-lead){font-size:var(--t-body)}
html body.cinema-site .account-main :is(.store-points li,.store-consent,.store-rounds,.store-tag){font-size:var(--t-small)}
html body.cinema-site .account-main .store-availability{font-size:13px}
/* library / admin small text */
html body.cinema-site .account-main :is(.paid-info li,.paid-order-detail,.admin-list .admin-user-row span,.admin-pager,.admin-audit-entry,.admin-field){font-size:13px}
html body.cinema-site .account-main :is(.paid-order-status,.admin-list .admin-user-row small,.paid-report){font-size:var(--t-small)}
/* setup screens (create / join): no tiny text */
html body.cinema-site :is(#screen-create,#screen-join) label{font-size:13px}
html body.cinema-site :is(#screen-create,#screen-join) :is(small,.hint,.field-hint,.field-note){font-size:var(--t-micro)}

/* header menu button: centered, lighter glyph */
html body.cinema-site .header-tools .menu-toggle{display:grid;place-items:center;padding:0!important;line-height:0}
html body.cinema-site .header-tools .menu-toggle .icon{width:18px;height:18px!important;stroke-width:1.7;stroke-linecap:round;margin:0;display:block}

/* /css/chapters.css */
/* «ملف القضية»: chapter tabs, seals, three secrets, setup options. Loaded after the other game CSS. */
html body.cinema-site .chapter-bar{width:var(--stage,100%);align-self:center;box-sizing:border-box;justify-content:space-between;flex-wrap:wrap;flex:none;margin:0;padding:6px 10px;border:1px solid #66645b;border-radius:12px;background:#232a31}

html body.cinema-site .chapter-tabs{display:flex;gap:6px;flex-wrap:wrap}
html body.cinema-site .chapter-tab{display:inline-flex;align-items:baseline;gap:8px;min-height:38px;padding:6px 16px;border:1px solid #66645b;border-radius:999px;background:transparent;color:#e9e3d2;font:600 14px/1.4 var(--font-body);cursor:pointer;transition:background .15s,border-color .15s,color .15s}
html body.cinema-site .chapter-tab small{font:500 12px/1 var(--font-body);color:#b5ae9b}
html body.cinema-site .chapter-tab:hover{border-color:#c4ae80}
html body.cinema-site .chapter-tab[aria-selected="true"]{background:#c4ae80;border-color:#c4ae80;color:#1d2228}
html body.cinema-site .chapter-tab[aria-selected="true"] small{color:#3b3626}
html body.cinema-site .chapter-tab.sealed:not([aria-selected="true"]){border-color:#6f9a78;color:#a9d1b0}
html body.cinema-site .chapter-tab:focus-visible{outline:2px solid #c4ae80;outline-offset:2px}

html body.cinema-site .seal-group{display:inline-flex;align-items:center;gap:6px}
html body.cinema-site .seal-group>b{font-weight:600;color:#e9e3d2}
html body.cinema-site .seal-group>span{display:inline-flex;gap:4px}
html body.cinema-site .seal{font-style:normal;font-size:11.5px;padding:2px 9px;border:1px dashed #66645b;border-radius:999px;color:#8d8777}
html body.cinema-site .seal.sealed{border-style:solid;border-color:#6f9a78;color:#a9d1b0;background:rgba(111,154,120,.14)}
html body.cinema-site .seal-group em{font-style:normal;color:#8d8777}
/* the three secrets replace the single secret card */
html body.cinema-site.chapter-mode #screen-game #secret-visibility-content{display:none!important}
html body.cinema-site .chapter-secrets{display:grid;width:100%}
html body.cinema-site .chapter-secrets[hidden]{display:none}

html body.cinema-site.chapter-mode #screen-game .my-secret-panel>.eyebrow{margin-bottom:2px}
/* lobby */
html body.cinema-site .chapter-secret-list{display:flex;gap:8px;flex-wrap:wrap}
html body.cinema-site .chapter-secret-list[hidden]{display:none}
html body.cinema-site .chapter-secret-pick{display:grid;gap:2px;min-width:120px;padding:8px 14px;border:1px solid #66645b;border-radius:10px;background:transparent;color:#e9e3d2;text-align:start;cursor:pointer;font:inherit}
html body.cinema-site .chapter-secret-pick span{font-size:11.5px;color:#b5ae9b}
html body.cinema-site .chapter-secret-pick strong{font-size:13.5px}
html body.cinema-site .chapter-secret-pick.chosen{border-color:#6f9a78}
html body.cinema-site .chapter-secret-pick:hover{border-color:#c4ae80}
html body.cinema-site .lobby-options{margin:0;font-size:12.5px;color:#b5ae9b;text-align:center}
html body.cinema-site .lobby-options[hidden]{display:none}
/* host options in room setup */
html body.cinema-site .case-file-options{margin:0;padding:12px 14px;border:1px solid #66645b;border-radius:12px;display:grid;gap:10px}
html body.cinema-site .case-file-options[hidden]{display:none}
html body.cinema-site .case-file-options legend{padding:0 6px;font:600 13px var(--font-head);color:#c4ae80}
html body.cinema-site .case-file-lead{margin:0;font-size:13px;line-height:1.9;color:#d8d1bd}

html body.cinema-site .case-file-options small{font-size:12px;color:#b5ae9b;line-height:1.8}
/* result: three secrets per player */
html body.cinema-site .chapter-reveal{display:grid;gap:12px}
html body.cinema-site .chapter-reveal-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;text-align:center}
html body.cinema-site .chapter-reveal-row>div{display:grid;gap:4px;justify-items:center}
html body.cinema-site .chapter-reveal-row .revealed-portrait{width:72px;height:72px;border-radius:10px;overflow:hidden}
html body.cinema-site .chapter-reveal-row .revealed-portrait img{width:100%;height:100%;object-fit:cover}
html body.cinema-site .chapter-reveal-row small{font-size:11.5px;color:#b5ae9b}
html body.cinema-site .chapter-reveal-row strong{font-size:12.5px}
@media (max-width:900px){
  html body.cinema-site .chapter-bar{padding:6px 8px}
  html body.cinema-site .chapter-tab{padding:5px 12px;min-height:34px;font-size:13px}
}

/* ---- v2: sequential files, stamps, action log, dossier ---- */
html body.cinema-site .chapter-tab:disabled{opacity:.45;cursor:not-allowed;border-style:dashed}
html body.cinema-site .chapter-tab:disabled:hover{border-color:#66645b}
/* stamps on guessed cards */
html body.cinema-site .char-card .stamp{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;pointer-events:none;background:rgba(10,14,16,.28)}
html body.cinema-site .char-card .stamp{z-index:30}
html body.cinema-site .char-card:is(.guessed-ok,.guessed-bad) :is(.case-art-pending,.avatar-media)::after{display:none!important}
html body.cinema-site .stamp b{display:grid;place-items:center;width:74px;height:74px;border-radius:50%;border:5px solid currentColor;font:800 46px/1 var(--font-head,inherit);transform:rotate(-12deg);background:rgba(10,14,16,.45);box-shadow:0 0 0 3px rgba(255,255,255,.08),inset 0 0 0 2px rgba(255,255,255,.15)}
html body.cinema-site .stamp i{margin-top:6px;font:700 13px var(--font-head,inherit);font-style:normal;letter-spacing:.5px;transform:rotate(-12deg);padding:1px 12px;border:2px solid currentColor;border-radius:6px;background:rgba(10,14,16,.55)}
html body.cinema-site .stamp-ok{color:#4fd07a}
html body.cinema-site .stamp-bad{color:#ff5a52}
html body.cinema-site .char-card.guessed-ok{border-color:#4fd07a!important;box-shadow:0 0 0 2px rgba(79,208,122,.45)}
html body.cinema-site .char-card.guessed-bad{border-color:#ff5a52!important}
html body.cinema-site .char-card.guessed-bad.eliminated .char-avatar{filter:grayscale(.6) brightness(.7)}
html body.cinema-site .char-card .stamp+.card-dismiss,html body.cinema-site .char-card.guessed-bad .card-dismiss{display:none}
@keyframes stampPop{0%{transform:scale(2.4);opacity:0}60%{transform:scale(.92);opacity:1}100%{transform:scale(1)}}
html body.cinema-site .stamp-pop b,html body.cinema-site .stamp-pop i{animation:stampPop .38s cubic-bezier(.2,.9,.3,1) both}
/* action log, left side */
html body.cinema-site .action-log{display:none}
html body.cinema-site.chapter-mode .action-log{display:flex;flex-direction:column;gap:8px;position:absolute;left:0;top:0;width:var(--rail,200px);max-height:min(560px,100%);padding:12px;border:1px solid #66645b;border-radius:12px;background:#232a31;box-sizing:border-box}
html body.cinema-site .action-log h3{margin:0;font-size:13px;color:#c4ae80}
html body.cinema-site .action-log ol{list-style:none;margin:0;padding:0;display:grid;gap:6px;overflow:auto;min-height:60px}
html body.cinema-site .action-log li{display:grid;gap:2px;padding:6px 8px;border-radius:8px;background:rgba(255,255,255,.04);border-inline-start:3px solid #66645b;font-size:12px;line-height:1.7;color:#d8d1bd}
html body.cinema-site .action-log li time{font-size:10.5px;color:#8d8777;direction:ltr;text-align:end}
html body.cinema-site .action-log .log-good{border-inline-start-color:#4fd07a}
html body.cinema-site .action-log .log-bad{border-inline-start-color:#ff5a52}
html body.cinema-site .action-log .log-turn{border-inline-start-color:#c4ae80}
@media (max-width:1180px){html body.cinema-site.chapter-mode .action-log{display:none}}
/* dossier: the player's own secret file */
@media (min-width:901px){html body.cinema-site.chapter-mode #screen-game{--rail:clamp(190px,15vw,250px)}}
html body.cinema-site.chapter-mode #screen-game .my-secret-panel{background:linear-gradient(180deg,#2b3139,#20262d);border:1px solid #c4ae80;box-shadow:0 10px 30px rgba(0,0,0,.35);padding:12px;gap:10px}
html body.cinema-site.chapter-mode #screen-game .my-secret-panel>.eyebrow{font:700 13px var(--font-head,inherit);color:#e6d3a5;letter-spacing:0;display:flex;gap:6px;align-items:center;justify-content:center}
html body.cinema-site .chapter-secrets{gap:12px}
html body.cinema-site .dossier-card{margin:0;position:relative;display:grid;gap:6px;padding:6px 6px 8px;border-radius:10px;background:rgba(0,0,0,.22);border:1px solid #5c5848}
html body.cinema-site .dossier-tab{position:absolute;top:-9px;inset-inline-start:10px;padding:1px 12px;border-radius:6px 6px 0 0;background:#c4ae80;color:#1d2228;font:700 11.5px/1.7 var(--font-head,inherit);z-index:2}
html body.cinema-site .dossier-photo{position:relative;display:block;width:100%;aspect-ratio:16/10;padding:0;border:1px solid #66645b;border-radius:7px;overflow:hidden;background:#111;cursor:zoom-in}
html body.cinema-site .dossier-photo .avatar-media,html body.cinema-site .dossier-photo .avatar-media img{display:block;width:100%;height:100%;object-fit:cover}
html body.cinema-site .dossier-zoom{position:absolute;inset-inline-end:6px;bottom:6px;padding:1px 9px;border-radius:999px;background:rgba(10,14,16,.72);color:#e9e3d2;font-size:11px;opacity:0;transition:opacity .15s}
html body.cinema-site .dossier-photo:hover .dossier-zoom,html body.cinema-site .dossier-photo:focus-visible .dossier-zoom{opacity:1}
html body.cinema-site .dossier-photo:focus-visible{outline:2px solid #c4ae80;outline-offset:2px}
html body.cinema-site .dossier-card strong{font-size:13px;text-align:center;color:#f1ead6}
html body.cinema-site .secret-is-hidden .chapter-secrets{visibility:hidden}
@media (max-height:780px){html body.cinema-site .dossier-photo{aspect-ratio:16/7}}

/* ---- v3 layout: centred tabs, side rails level with the time bar, guess dialog ---- */
html body.cinema-site .chapter-bar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px}
html body.cinema-site .chapter-bar[hidden]{display:none}
html body.cinema-site .chapter-bar .seal-group.mine{justify-self:start}
html body.cinema-site .chapter-bar .seal-group.theirs{justify-self:end}
html body.cinema-site .chapter-bar .chapter-tabs{justify-content:center}
html body.cinema-site .seal.failed{border-style:solid;border-color:#ff5a52;color:#ff8d86;background:rgba(255,90,82,.1)}
html body.cinema-site .chapter-tab.failed:not([aria-selected="true"]){border-color:#ff5a52;color:#ff8d86}
@media (min-width:901px){
  html body.cinema-site.chapter-mode #screen-game{position:relative}
  html body.cinema-site.chapter-mode #screen-game .board-area{position:static}
  html body.cinema-site.chapter-mode #screen-game .my-secret-panel{position:absolute;top:0!important;right:0;left:auto!important;width:var(--rail);max-height:calc(100vh - 92px);overflow:auto;z-index:3}
  html body.cinema-site.chapter-mode .action-log{top:0;left:0;max-height:calc(100vh - 92px)}
}
/* final-guess dialog */
html body.cinema-site #modal-guess.guess-v2 .modal-card{width:min(940px,94vw);max-height:92vh;display:flex;flex-direction:column;padding:22px 26px;border:1px solid #c4ae80;background:linear-gradient(180deg,#272d35,#1a1f26);box-shadow:0 24px 60px rgba(0,0,0,.55)}
html body.cinema-site #modal-guess .guess-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:4px 0 14px;padding:10px 14px;border-radius:12px;background:rgba(196,174,128,.09);border:1px solid #5c5848}
html body.cinema-site #modal-guess .guess-meta[hidden]{display:none}
html body.cinema-site .guess-attempts{display:inline-flex;align-items:center;gap:10px;font-size:13px;color:#e9e3d2}
html body.cinema-site .guess-attempts>span{display:inline-flex;gap:6px}
html body.cinema-site .attempt{width:16px;height:16px;border-radius:50%;background:#c4ae80;box-shadow:0 0 0 2px rgba(196,174,128,.25)}
html body.cinema-site .attempt.used{background:transparent;border:2px solid #ff5a52;box-shadow:none;position:relative}
html body.cinema-site .attempt.used:after{content:'✕';position:absolute;inset:0;display:grid;place-items:center;font-size:10px;color:#ff5a52}
html body.cinema-site #modal-guess .guess-meta p{margin:0;flex:1 1 260px;font-size:12.5px;line-height:1.9;color:#b5ae9b}
html body.cinema-site #modal-guess.guess-v2 .guess-search{display:none}
html body.cinema-site #modal-guess.guess-v2 .guess-filter{margin:0 0 12px;gap:6px}
html body.cinema-site #modal-guess.guess-v2 .guess-filter .btn{min-height:34px;padding:4px 18px;font-size:13px;border-radius:999px}
html body.cinema-site #modal-guess.guess-v2 .guess-grid{display:grid;overflow:auto;padding:6px 4px 4px}
html body.cinema-site #modal-guess.guess-v2 .card-item{display:grid;gap:6px;justify-items:stretch}
html body.cinema-site #modal-guess.guess-v2 .guess-card{display:block;width:100%;aspect-ratio:16/10;padding:0;border:2px solid #5c5848;border-radius:12px;overflow:hidden;background:#111;cursor:pointer;transition:transform .15s,border-color .15s,box-shadow .15s}
html body.cinema-site #modal-guess.guess-v2 .guess-card .char-avatar,html body.cinema-site #modal-guess.guess-v2 .guess-card img{display:block;width:100%;height:100%;object-fit:cover}
html body.cinema-site #modal-guess.guess-v2 .guess-card:hover,html body.cinema-site #modal-guess.guess-v2 .guess-card:focus-visible{transform:translateY(-3px);border-color:#c4ae80;box-shadow:0 10px 24px rgba(0,0,0,.45);outline:none}
html body.cinema-site #modal-guess.guess-v2 .card-meta{display:flex;align-items:center;justify-content:center;gap:8px}
html body.cinema-site #modal-guess.guess-v2 .char-name{font:700 14px var(--font-head,inherit);color:#f1ead6}

html body.cinema-site #modal-confirm-guess.confirm-v2 .confirm-card{width:min(480px,94vw);border:1px solid #c4ae80}
html body.cinema-site #modal-confirm-guess.confirm-v2 .confirm-avatar{width:100%;max-width:380px;aspect-ratio:16/10;border-radius:12px;overflow:hidden;margin:0 auto 14px;border:2px solid #c4ae80}
html body.cinema-site #modal-confirm-guess.confirm-v2 .confirm-avatar .avatar-media,html body.cinema-site #modal-confirm-guess.confirm-v2 .confirm-avatar img{display:block;width:100%;height:100%;object-fit:cover}
html body.cinema-site #modal-confirm-guess.confirm-v2 #confirm-guess-name{display:none}
html body.cinema-site #modal-confirm-guess.confirm-v2 #confirm-guess-note{color:#b5ae9b}
html body.cinema-site #modal-guess.guess-v2 .guess-grid{grid-auto-rows:min-content!important;align-content:start!important;height:auto!important;min-height:0}
html body.cinema-site #modal-guess.guess-v2 .guess-grid .card-item{height:auto!important;min-height:0!important}
html body.cinema-site #modal-guess.guess-v2 .card-meta{min-height:0!important;height:auto!important}


/* /css/matchbar.css */
/* Match header bar: one consistent row for every game (clock · turn · score · meta). */
@media (min-width:701px){
  html body.cinema-site #screen-game #turn-card{display:flex!important;flex-wrap:nowrap;align-items:center;justify-content:center;grid-template-areas:none}
  html body.cinema-site #screen-game #turn-card>*{margin:0;align-self:center;grid-area:auto;justify-self:auto!important}
  html body.cinema-site #screen-game #turn-clock{display:grid;place-items:center;line-height:1}
  html body.cinema-site #screen-game #turn-clock:empty{display:none}
  html body.cinema-site #screen-game #turn-indicator{display:flex;align-items:center;white-space:nowrap}
  html body.cinema-site #screen-game .series-score{display:flex;align-items:center;}
  html body.cinema-site #screen-game .series-score>*{line-height:1}
  html body.cinema-site #screen-game #round-label,html body.cinema-site #screen-game #game-category{align-items:center;border-radius:999px;background:#ffffff0c;white-space:nowrap}
  html body.cinema-site #screen-game #game-category:empty{display:none!important}
  html body.cinema-site #screen-game .match-score{align-items:center}
  html body.cinema-site #screen-game .player-tag{align-self:center;}
  html body.cinema-site #screen-game .player-tag>div{display:flex;flex-direction:column;justify-content:center}
}

/* /css/compact.css */
/* Compact, token-based sizing for the match screen (all games). One control height, one pill height, one font scale. */
:root{--u-h:30px;--u-pill:22px;--u-fs:12px;--u-fs-sm:11px;--u-fs-lg:14px;--u-r:8px}
@media (min-width:701px){
  html body.cinema-site #screen-game #turn-card{min-height:38px;gap:12px!important;padding:4px 16px!important}
  html body.cinema-site #screen-game #turn-clock{height:var(--u-h);min-width:50px;padding:0 10px;font-size:var(--u-fs)}
  html body.cinema-site #screen-game #turn-indicator{height:var(--u-h);font-size:var(--u-fs-lg);line-height:var(--u-h);padding-top:0}
  html body.cinema-site #screen-game .series-score{height:var(--u-h);font-size:var(--u-fs-lg);gap:6px;line-height:var(--u-h);padding-top:0}
  html body.cinema-site #screen-game #round-label,html body.cinema-site #screen-game #game-category{height:var(--u-pill)!important;font-size:var(--u-fs-sm);padding:0 10px;line-height:var(--u-pill);display:inline-block;text-align:center;vertical-align:middle;direction:rtl;unicode-bidi:plaintext}
  html body.cinema-site #screen-game .player-tag{min-height:36px;padding:3px 10px!important;font-size:var(--u-fs)}
  html body.cinema-site #screen-game .player-tag .player-avatar,html body.cinema-site #screen-game .player-tag .avatar{width:26px;height:26px;font-size:var(--u-fs-sm)}
  html body.cinema-site #screen-game .player-tag strong,html body.cinema-site #screen-game .player-tag b{font-size:var(--u-fs)}
  html body.cinema-site #screen-game .board-toolbar{gap:8px}
  html body.cinema-site #screen-game .board-toolbar .btn{min-height:var(--u-h);padding:0 12px;font-size:var(--u-fs);gap:5px;border-radius:var(--u-r)}
  html body.cinema-site #screen-game .board-toolbar .btn svg{width:14px;height:14px}
  html body.cinema-site #screen-game .board-toolbar h2{font-size:var(--u-fs-lg)}
  html body.cinema-site #screen-game .board-toolbar .eyebrow{font-size:var(--u-fs-sm)}
  html body.cinema-site #screen-game .remaining-chip{min-height:var(--u-h);padding:0 11px;font-size:var(--u-fs);display:inline-flex;align-items:center;border-radius:var(--u-r)}
  
  html body.cinema-site .chapter-bar{padding:5px 12px}
  html body.cinema-site .chapter-tab{min-height:var(--u-h);padding:0 13px;font-size:var(--u-fs);align-items:center}
  html body.cinema-site .chapter-tab small{font-size:var(--u-fs-sm)}
  html body.cinema-site .chapter-bar .seal-group{font-size:var(--u-fs);gap:7px;align-items:center}
  html body.cinema-site .chapter-bar .seal{font-size:var(--u-fs-sm);padding:0 8px;line-height:20px;height:20px}
  html body.cinema-site.chapter-mode #screen-game{--rail:clamp(180px,14vw,230px)}
  html body.cinema-site .action-log{padding:10px;font-size:var(--u-fs)}
  html body.cinema-site .action-log li{font-size:var(--u-fs-sm);padding:5px 7px}
  /* adaptive card shape: width from the fit, height filled by --match-aspect */
  html body.cinema-site.case-mode #screen-game .card-item>.char-card{aspect-ratio:var(--match-aspect,16/9)!important}
  html body.cinema-site.case-mode #screen-game .char-avatar,html body.cinema-site.case-mode #screen-game .char-card .avatar-media{aspect-ratio:var(--match-aspect,16/9)!important}
}
html body.cinema-site #modal-confirm-guess.confirm-v2 #confirm-guess-title{font-size:22px!important;line-height:1.5;margin:4px 0 6px}
html body.cinema-site #modal-confirm-guess.confirm-v2 #confirm-guess-note{font-size:12.5px!important;line-height:1.8}
html body.cinema-site #modal-confirm-guess.confirm-v2 .confirm-card .btn{min-height:40px;font-size:14px}
html body.cinema-site.chapter-mode #characters-board .card-meta{gap:4px}
html body.cinema-site #modal-guess.guess-v2 .guess-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:12px 10px!important}
html body.cinema-site #modal-guess.guess-v2 .char-name{font-size:12.5px!important}
@media (max-width:760px){html body.cinema-site #modal-guess.guess-v2 .guess-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (min-width:901px){
  html body.cinema-site.case-mode #screen-game #characters-board{grid-template-columns:repeat(var(--match-columns,6),var(--match-card-size,150px))!important;grid-template-rows:none!important;grid-auto-rows:max-content!important;justify-content:center!important;align-content:space-between!important;column-gap:12px!important;row-gap:12px!important;width:100%!important;padding:14px 0 20px!important}
  html body.cinema-site.case-mode #screen-game #characters-board .card-item{width:var(--match-card-size,150px)!important;min-width:0}
}
/* 48-suspect file: classic «خمن الشخصية» square cards */
html body.cinema-site.case-mode #screen-game #characters-board.board-square .card-item>.char-card{aspect-ratio:1!important}
html body.cinema-site.case-mode #screen-game #characters-board.board-square .char-avatar,html body.cinema-site.case-mode #screen-game #characters-board.board-square .char-card .avatar-media{aspect-ratio:1!important}
html body.cinema-site.case-mode #screen-game #characters-board.board-square{column-gap:9px!important;}
html body.cinema-site #modal-guess.guess-v2 .guess-grid:has(.guess-card:nth-child(25)){grid-template-columns:repeat(8,minmax(0,1fr))!important}
html body.cinema-site.case-mode #screen-game #characters-board.board-square{align-content:center!important;row-gap:16px!important}
/* between-investigations dialog */
#modal-file .file-card{width:min(640px,94vw);padding:26px 30px;display:grid;gap:14px;text-align:center}
#modal-file h2{font-size:24px;margin:0}
#modal-file .file-secrets{display:grid;grid-template-columns:1fr 1fr;gap:16px}
#modal-file .file-secret{margin:0;display:grid;gap:6px;justify-items:center}
#modal-file .file-secret .avatar-media,#modal-file .file-secret>*:first-child{width:100%;aspect-ratio:16/9;border-radius:8px;overflow:hidden;object-fit:cover}
#modal-file .file-secret figcaption{font-size:12px;color:#d7b474}
#modal-file .file-secret strong{font-size:16px}
#modal-file .file-score{margin:0;font-size:13px;opacity:.85}

/* /css/guide-tabs.css */
/* كيفية اللعب: CSS-only tabs (radio inputs), one panel per game. */
html body.cinema-site .guide-radio{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
html body.cinema-site .guide-tabs{display:flex;justify-content:center;gap:8px;margin:6px auto 22px;flex-wrap:wrap}
html body.cinema-site .guide-tabs label{min-width:112px;text-align:center;padding:9px 22px;border:1px solid #66645b;border-radius:999px;color:#cfc9b8;font:600 14px/1.5 var(--font-body,inherit);cursor:pointer;transition:background .15s,border-color .15s,color .15s}
html body.cinema-site .guide-tabs label:hover{border-color:#c4ae80}
html body.cinema-site #guide-chars:checked~.guide-tabs label[for="guide-chars"],
html body.cinema-site #guide-objects:checked~.guide-tabs label[for="guide-objects"],
html body.cinema-site #guide-food:checked~.guide-tabs label[for="guide-food"],
html body.cinema-site #guide-cases:checked~.guide-tabs label[for="guide-cases"]{background:#c4ae80;border-color:#c4ae80;color:#1d2228}
html body.cinema-site .guide-radio:focus-visible~.guide-tabs label{outline:none}
html body.cinema-site #guide-chars:focus-visible~.guide-tabs label[for="guide-chars"],
html body.cinema-site #guide-objects:focus-visible~.guide-tabs label[for="guide-objects"],
html body.cinema-site #guide-food:focus-visible~.guide-tabs label[for="guide-food"],
html body.cinema-site #guide-cases:focus-visible~.guide-tabs label[for="guide-cases"]{outline:2px solid #e9e3d2;outline-offset:3px}
html body.cinema-site .guide-panel{display:none}
html body.cinema-site #guide-chars:checked~.panel-chars,
html body.cinema-site #guide-objects:checked~.panel-objects,
html body.cinema-site #guide-food:checked~.panel-food,
html body.cinema-site #guide-cases:checked~.panel-cases{display:block}
html body.cinema-site .guide-tagline{margin:0 0 18px;text-align:center;font-size:var(--t-body,14px);color:#b5ae9b;line-height:2}
html body.cinema-site .guide-steps h2 b,html body.cinema-site .guide-steps p b{color:#d9be88;font-weight:700}
@media (max-width:760px){html body.cinema-site .guide-panel .guide-layout{grid-template-columns:1fr;gap:28px}}
html body.cinema-site .guide-tagline .guide-price{display:inline-block;margin-inline-start:6px;padding:0 10px;border:1px solid #d7b47466;border-radius:999px;background:#d7b4741a;color:#f0d9a3;font-weight:700}
html body.cinema-site .guide-thumbs.food img{object-fit:contain;background:#fff}
html body.cinema-site .guide-steps p a{color:#e0c187;text-decoration:underline;text-decoration-color:#e0c18766;text-underline-offset:4px}

/* /css/stage.css */
/* stage.css — loaded last. Streamer mode + the wider desktop match board. */

/* ---------- Streamer mode ---------- */
.streamer-option{display:flex;flex-direction:row;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid #4a4a44;border-radius:12px;background:#151b21;cursor:pointer;user-select:none}
.streamer-option .streamer-checkbox{-webkit-appearance:auto;appearance:auto;width:18px;height:18px;margin:2px 0 0;accent-color:#d9b972;flex:none;cursor:pointer}
.streamer-option-text{display:grid;gap:2px;min-width:0}
.streamer-option-text b{display:inline-flex;align-items:center;gap:6px;color:#efe6d2;font-size:14px}
.streamer-option-text b .icon{width:16px;height:16px;color:#d9b972}
.streamer-option-text small{color:#a9a294;font-size:12px;line-height:1.5}
.streamer-option:has(.streamer-checkbox:checked){border-color:#b8975a;background:#1d1a14}

.streamer-toggle{display:inline-flex;align-items:center;gap:6px}
.streamer-toggle .icon{width:15px;height:15px}
.streamer-toggle[aria-pressed="true"]{color:#e7c983!important;border-color:#b8975a!important}
#screen-waiting .streamer-toggle{margin-top:4px;font-size:12px;padding:4px 8px;align-self:center}

body.streamer-mode #screen-waiting .small-actions [data-action="copy"]{display:none}
body.streamer-mode #display-room-code{pointer-events:none;letter-spacing:.2em;color:#8f8a7e}
body.streamer-mode #screen-waiting .small-actions [data-action="invite"]{color:#e7c983;border:1px solid #8e7d5b;border-radius:10px;padding:6px 14px;font-size:13px}
body.streamer-mode #screen-waiting .invite-ticket .eyebrow::after{content:" · مخفي للستريم";color:#8f8a7e}
/* The opponent's view never shows a code, but keep the in-game code hidden too. */
body.streamer-mode #game-room-code{display:none}

/* ---------- Desktop match board: use the full width, bigger cards, no page scroll ---------- */
@media (min-width:901px){
  html body.cinema-site:not(.case-mode) #screen-game .board-area{
    grid-template-columns:minmax(0,1fr);justify-content:stretch;
    padding-inline-start:calc(var(--rail) + 16px);box-sizing:border-box
  }
  html body.cinema-site:not(.case-mode) #screen-game .match-toolbar{
    width:auto!important;align-self:stretch!important;margin-inline:0!important
  }
  html body.cinema-site:not(.case-mode) #screen-game #characters-board{
    gap:10px!important;padding:6px 5px!important;align-content:center!important
  }
  html body.cinema-site:not(.case-mode) #screen-game .card-item>.char-card{aspect-ratio:1/var(--match-tall,1)!important}
  html body.cinema-site:not(.case-mode) #screen-game .card-item>.char-card .char-avatar{aspect-ratio:auto!important;height:100%!important}
  html body.cinema-site:not(.case-mode) #screen-game .char-avatar:not(.object-avatar) img{object-fit:cover!important;object-position:50% 28%}
  html body.cinema-site:not(.case-mode) #screen-game .card-meta .char-name{font-size:clamp(12px,calc(var(--match-card-size,80px) * .13),16px)}
}

/* Bot board on desktop (JS sets the sizes; class added only when 48 cards fit on one page) */
@media (min-width:901px){
  html body.cinema-site.solo-fit #screen-solo #solo-characters-board{
    grid-template-columns:repeat(var(--solo-cols,12),var(--solo-card-size,72px))!important;
    grid-template-rows:repeat(var(--solo-rows,4),max-content)!important;grid-auto-rows:max-content!important;
    justify-content:center!important;align-content:center!important;gap:10px!important;height:100%!important;min-height:0;overflow:hidden
  }
  html body.cinema-site.solo-fit #screen-solo #solo-characters-board .card-item{width:var(--solo-card-size,72px)!important;height:auto!important;min-height:0}
  html body.cinema-site.solo-fit #screen-solo #solo-characters-board .card-item>.char-card{width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:1/var(--solo-tall,1)!important}
  html body.cinema-site.solo-fit #screen-solo #solo-characters-board .char-avatar{aspect-ratio:auto!important;height:100%!important;width:100%!important}
  html body.cinema-site.solo-fit #screen-solo .char-avatar:not(.object-avatar) img{object-fit:cover!important;object-position:50% 28%;width:100%;height:100%}
  html body.cinema-site.solo-fit #screen-solo .card-meta .char-name{font-size:clamp(12px,calc(var(--solo-card-size,80px) * .13),16px)}
  /* JS gives the chat whatever width the board does not need (see fitSoloBoard). */
  html body.cinema-site.solo-fit #screen-solo.active{grid-template-columns:minmax(0,1fr) var(--solo-chat-w,340px)}
}

/* ---------- Bot chat: roomy conversation instead of stacked, cramped boxes ---------- */

/* Suggestions: one row that scrolls sideways; wrapping onto a second row got clipped by the chat. */
html body.cinema-site #screen-solo .quick-questions{display:flex;flex-wrap:nowrap;gap:8px;max-height:none!important;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding-bottom:2px}
html body.cinema-site #screen-solo .quick-questions::-webkit-scrollbar{display:none}
html body.cinema-site #screen-solo .quick-question{flex:none;white-space:nowrap;font-size:13px;padding:6px 12px;border-radius:999px}
html body.cinema-site #screen-solo .chat-log{border-radius:16px;background:#0a0d11b3}
/* One exchange = your question on the right, the bot's answer on the left, a little apart. */
html body.cinema-site #screen-solo .question-group{display:flex;flex-direction:column;gap:8px}
html body.cinema-site #screen-solo .question-group>small{display:none}
html body.cinema-site #screen-solo .question-group>div{align-self:flex-start;max-width:78%;padding:10px 16px;border-radius:18px 4px 18px 18px;font-size:15px;line-height:1.6;color:#f3e9d2;background:#6f5d3c66;border:1px solid #c7ab7333}
html body.cinema-site #screen-solo .question-group>strong{align-self:flex-end;display:inline-flex;align-items:center;gap:8px;max-width:78%;padding:8px 16px 8px 10px;border-radius:4px 18px 18px 18px;font-size:15px;line-height:1.6;font-weight:800}
html body.cinema-site #screen-solo .question-group>strong.bot-reply{font-weight:500;color:#d9d3c4;background:#ffffff0d;border-color:#ffffff17}
html body.cinema-site #screen-solo .bot-avatar{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#0d1116;border:1px solid #c9b18455;color:#d9b972}
html body.cinema-site #screen-solo .bot-avatar .icon{width:15px;height:15px}
html body.cinema-site #screen-solo .bot-text{min-width:0;overflow-wrap:anywhere}
/* "اخترت شخصية مخفية جديدة. اسألني!" — a quiet divider, not a box. */
html body.cinema-site #screen-solo .chat-log>.chat-msg.system{align-self:stretch;display:flex;align-items:center;gap:10px;padding:0;margin:2px 0;border:0;background:none;font-size:13px;color:#a8a191;text-align:center}
html body.cinema-site #screen-solo .chat-log>.chat-msg.system::before,html body.cinema-site #screen-solo .chat-log>.chat-msg.system::after{content:"";flex:1;height:1px;background:#ffffff14}
html body.cinema-site #screen-solo .composer input{font-size:15px;min-height:46px;padding-inline:14px}
/* Phones keep the compact sizes: the chat there is a strip under the board. */
@media (max-width:700px){
  
  
  html body.cinema-site #screen-solo .quick-question{font-size:12px;padding:4px 10px;min-height:0}
  html body.cinema-site #screen-solo .question-group>div,html body.cinema-site #screen-solo .question-group>strong{font-size:13px;max-width:88%}
  html body.cinema-site #screen-solo .question-group>div{padding:7px 12px}
  html body.cinema-site #screen-solo .question-group>strong{padding:5px 12px 5px 7px}
  html body.cinema-site #screen-solo .bot-avatar{width:22px;height:22px}
  html body.cinema-site #screen-solo .chat-log>.chat-msg.system{font-size:12px}
  html body.cinema-site #screen-solo .composer input{font-size:14px;min-height:38px}
}

/* /css/sizes.css */
/* sizes.css — final text sizes, tap targets and density. Loaded last. */

/* ======== Readable sizes, tap targets, the scrolling board ======== */
/* sizes.css — one place for readable text sizes, tap targets and the scrolling board.
   Loaded last so it settles the sizes the earlier sheets fight over.
   Breakpoints: board scrolls at ≤900px (keep in step with scrollingBoard() in js/game.js);
   phone-only layout at ≤600px. Colors come from play.css (--pl-*). */
:root {
  --tap-min: 44px;        /* smallest touch target */
  --text-small: 12px;     /* smallest UI text (footer, captions) */
  --card-name: 12px;      /* names under the board cards */
  --field-text: 16px;     /* phone text fields: below 16px iOS zooms the page */
  --pl-error: #eba79c;    /* field errors, readable on the dark panels */
}

/* ===================== All sizes ===================== */

/* Header and footer text that was 10–12px */

html body.cinema-site .masthead a.header-account {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; font-size: 13px;
}
html body.cinema-site .masthead .menu-toggle { width: 40px; height: 40px; }

/* Cases switched off (CASES_ENABLED≠1): the server marks <html data-cases="off">, and every
   case-only link or section (store, the cases guide) disappears. */
html[data-cases="off"] [data-cases-only] { display: none !important; }

/* Header account: the chosen avatar in a small framed square, and logout beside it. */
html body.cinema-site .masthead a.header-account { gap: 9px; }
.header-avatar { position: relative; flex: none; width: 30px; height: 30px; overflow: hidden; border-radius: 9px;
  border: 1px solid #c9b48c88; background: radial-gradient(circle at 50% 35%, #3d4249, #15191e 75%);
  box-shadow: inset 0 1px #ffffff26, 0 4px 10px #0006; }
.header-avatar[hidden] { display: none; }
.header-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Character portraits carry a drawn frame: zoom past it. */
.header-avatar.is-portrait img { transform: scale(1.14); }
.header-account:hover .header-avatar { border-color: #f0d9a3; }
html body.cinema-site .masthead .header-logout { display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  padding: 0 10px; border: 0; border-radius: 9px; background: none; color: #a9a497; font: inherit; font-size: 13px; cursor: pointer;
  transition: color 140ms, background 140ms; }
html body.cinema-site .masthead .header-logout[hidden] { display: none; }
html body.cinema-site .masthead .header-logout:hover { color: #ffb4ab; background: #ffffff0a; }
html body.cinema-site .masthead .header-logout:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
html body.cinema-site .masthead .header-logout .icon { width: 17px; height: 17px; }
/* The divider before the menu button moves to the logout button when it shows. */
html body.cinema-site .masthead .header-tools:has(.header-logout:not([hidden])) a.header-account { border-inline-end: 0; margin-inline-end: 0; padding-inline-end: 4px; }
html body.cinema-site .masthead .header-tools:has(.header-logout:not([hidden])) .header-logout { border-inline-end: 1px solid #b3ae9a35; border-radius: 0; margin-inline-end: 5px; padding-inline-end: 14px; }
@media (max-width: 1100px) { .header-logout-text { display: none; } }

/* The menu fits the screen without a scrollbar: rows tighten on shorter screens. */
body.cinema-site .rail-menu { scrollbar-width: none; }
body.cinema-site .rail-menu::-webkit-scrollbar { display: none; }
@media (max-height: 1000px) {
  html body.cinema-site .rail-menu nav :is(a, button) { min-height: 0; padding-block: clamp(4px, calc((100dvh - 640px) / 40), 9px); }
  html body.cinema-site .rail-menu .drawer-identity img { height: clamp(44px, 7dvh, 82px); width: auto; }
}
@media (max-height: 760px) {
  html body.cinema-site .rail-menu .drawer-identity { display: none; }
}
html body.cinema-site .site-credits .legal-links a { font-size: var(--text-small); }

/* Lobby: "ready" while the friend hasn't joined yet (share is the main button then) */
html body.cinema-site #ready-btn.ghost-ready {
  color: var(--pl-ink); background: linear-gradient(145deg,#3c4148aa,#1b1e22);
  border: 1px solid #9fa4a993; box-shadow: inset 0 1px 2px #ffffff40, 0 4px 10px #0005;
}
html body.cinema-site #share-invite-btn[hidden] { display: none !important; }
html body.cinema-site #share-invite-btn { width: 100%; margin-bottom: 8px; }

/* Form errors under their field */
html body.cinema-site .field-error { display: block !important; margin-top: 6px; font-size: 13px !important; line-height: 1.5; color: var(--pl-error) !important; }
html body.cinema-site .field-error[hidden] { display: none !important; }
input[aria-invalid="true"] { border-color: var(--pl-error) !important; }

/* Bot guess mode: a hint that stays in the board toolbar while guessing */
#screen-solo .guess-hint { display: none; }
html body.cinema-site #screen-solo.choosing-guess .guess-hint {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #17140e; background: var(--pl-gold); white-space: nowrap;
}
html body.cinema-site #screen-solo.choosing-guess .remaining-chip { display: none; }

/* Form notes ("اختار التصنيف…", "رابط الدعوة يجهز…") were #8d9595, 4.4:1; mute grey passes 4.5:1 */
html body.cinema-site .challenge-form small:not(.field-error) { color: var(--pl-mute); }

/* "متبقّي" was 10px on the bot board */
html body.cinema-site #screen-solo .remaining-chip { font-size: var(--text-small); }

/* "View larger" is a real <button> now: drop the browser's button padding and font */
.card-preview-button { padding: 0; font: inherit; cursor: pointer; }

/* Small targets: at least 24×24px (WCAG 2.5.8) */
html body.cinema-site .site-credits .legal-links a { display: inline-flex; align-items: center; min-height: 24px; }
html body.cinema-site .site-credits .credits-discord { width: 24px; height: 24px; }
@media (min-width: 901px) {
  /* The eye is 19–21px here; widen its hit area to 25px without changing how it looks */
  html body.cinema-site :is(#screen-game,#screen-solo) .card-item .card-meta .card-preview-button { position: relative; }
  html body.cinema-site :is(#screen-game,#screen-solo) .card-item .card-meta .card-preview-button::after {
    content: ""; position: absolute; inset: -3px;
  }
}

/* Card back "؟" while a picture loads, instead of an empty dark square */
.is-loading { position: relative; }
.is-loading > img { opacity: 0; }
.is-loading::before {
  content: "؟"; position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  font-size: 28px; font-weight: 800; line-height: 1; color: var(--pl-gold);
  background: linear-gradient(145deg, #262b31, #101317); box-shadow: inset 0 0 0 1px #d7b4742e;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .char-avatar > img, .avatar-media > img { transition: opacity 200ms ease; }
}

/* Bot result ("كشفت الشخصية!"): the frame was a 180px square with its own shadow (a ghost box
   behind the card) and stretched the portrait tall and off-center. The frame now wraps the
   portrait exactly; the portrait stays square like in the wrong-guess comparison. */
html body.cinema-site #modal-solo-result .solo-reveal {
  width: fit-content; height: auto; max-height: none; aspect-ratio: auto;
  margin: 4px auto 10px; overflow: visible; box-shadow: none; background: none; border-radius: 0;
}
html body.cinema-site #modal-solo-result .solo-reveal > * { height: auto; aspect-ratio: 1 / 1; margin-inline: auto; }

/* Keyboard: skip past the board to the question box; hidden until it gets focus */
html body.cinema-site .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
html body.cinema-site .skip-link:focus {
  position: absolute; z-index: 50; inset-inline-start: 8px; top: 8px; padding: 10px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 700; color: #17140e; background: var(--pl-gold); text-decoration: none;
}

/* ===================== Board scrolls: phones and tablets (≤900px) ===================== */
@media (max-width: 900px) {
  /* All 48 cards in a scrolling grid (no pages). Overrides play.css §4/§8, which size cards
     from the board height (100cqh); with 48 cards that would shrink them to ~18px.
     game.js serves all 48 cards here; the pager hides itself when both buttons are disabled. */
  html body.cinema-site:not(.case-mode) #screen-solo #solo-characters-board,
  html body.cinema-site:not(.case-mode) #screen-game #characters-board {
    /* Columns follow the board's own width (phone ≈4, tablet ≈8, narrow side column at 200% zoom ≈4),
       so cards never shrink below a readable size. */
    --gap: 12px !important;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)) !important;
    grid-auto-rows: max-content !important;
    align-content: start !important; overflow-x: hidden !important; overflow-y: auto !important;
    overscroll-behavior: contain; padding: 4px 2px 10px !important;
  }
  html body.cinema-site:not(.case-mode) #screen-solo #solo-characters-board .card-item > .char-card,
  html body.cinema-site:not(.case-mode) #screen-game #characters-board .card-item > .char-card {
    width: 100% !important; flex: none !important; aspect-ratio: 1 / 1 !important;
  }

  /* Name + "view larger" share one row under the portrait, so the eye no longer
     sits on the card and a near-miss can't rule the card out. */
  html body.cinema-site:not(.case-mode) :is(#characters-board,#solo-characters-board) .card-item .card-meta {
    display: flex !important; align-items: center; justify-content: center; gap: 0; min-height: 26px !important;
  }
  html body.cinema-site:not(.case-mode) :is(#characters-board,#solo-characters-board) .card-item .card-meta .char-name {
    width: auto !important; flex: 0 1 auto; min-width: 0; font-size: var(--card-name) !important; line-height: 26px;
  }
  html body.cinema-site:not(.case-mode) :is(#screen-game,#screen-solo) .card-item .card-meta .card-preview-button {
    position: relative !important; top: auto !important; inset-inline-start: auto !important;
    flex: 0 0 22px !important; width: 22px !important; height: 22px !important; min-width: 22px !important; min-height: 22px !important;
    opacity: .9; transform: none;
  }
  /* Larger hit area that grows sideways and down only — never up over the card. */
  html body.cinema-site:not(.case-mode) :is(#screen-game,#screen-solo) .card-item .card-meta .card-preview-button::after {
    content: ""; position: absolute; top: -3px; bottom: -11px; left: -9px; right: -9px;
  }

  /* Bot board heading stays on one line */
  html body.cinema-site #screen-solo .board-toolbar h2 { white-space: nowrap; }
}

/* ===================== Phones (≤600px) ===================== */
@media (max-width: 600px) {
  /* Header: logo stays left (as on desktop), tools pushed to the far edge */
  body.cinema-site .masthead { grid-template-columns: auto 1fr; }
  body.cinema-site .masthead .header-tools { grid-column: 2; justify-self: end; gap: 4px; }
  html body.cinema-site .masthead .menu-toggle { width: var(--tap-min); height: var(--tap-min); }
  html body.cinema-site .masthead a.header-account { min-height: var(--tap-min); }

  /* Text fields: 16px stops iOS zooming the page on focus */
  body.cinema-site input:not([type=checkbox]):not([type=radio]),
  body.cinema-site select,
  body.cinema-site textarea,
  body.cinema-site .setup-form .input { font-size: var(--field-text) !important; }

  /* Small text and tap targets */
  body.cinema-site .cinema-actions .cinema-join { font-size: 14px; }
  /* The footer row is a fixed 27px in several sheets, so links fill that full row height
     on one line instead of wrapping out of it. */
  body.cinema-site .site-credits .legal-links { gap: 0 7px; flex-wrap: nowrap; white-space: nowrap; align-self: stretch; align-items: stretch; max-width: 100%; }
  html body.cinema-site .site-credits .legal-links a { display: inline-flex; align-items: center; font-size: 11px; }
  /* Five links don't fit one phone row: "من نحن" stays in the side menu on phones. */
  html body.cinema-site .site-credits .legal-links :is(span:has(+ a[href="/about.html"]), a[href="/about.html"]) { display: none; }
  body.cinema-site [data-action="leave"],
  body.cinema-site [data-action="home"],
  body.cinema-site .solo-switch-mobile { min-height: 40px; font-size: 13px; }
  body.cinema-site #screen-solo [aria-label="تراجع"],
  body.cinema-site #screen-solo [aria-label="إعادة الكل"] { min-width: var(--tap-min); min-height: var(--tap-min); }
  body.cinema-site .quick-question { min-height: 40px; }

  /* Lobby: category and timer pills wrap instead of ending in "…" */
  html body.cinema-site #screen-waiting .lobby-start p { white-space: normal; overflow: visible; }

  /* Home: bring the play box up under the tagline */
  body.cinema-site #screen-home .cinema-play { top: 43%; }

  /* Board: tighter gaps on phones */
  html body.cinema-site:not(.case-mode) #screen-solo #solo-characters-board,
  html body.cinema-site:not(.case-mode) #screen-game #characters-board { --gap: 10px !important; }
}

/* ======== Compact sizes (as in the admin panel), game cards excluded ======== */
/* density.css — the compact sizes from the admin panel, applied to the rest of the site.
   Loaded last. Smaller headings, text, buttons, fields and padding; less empty space.
   Never touches the board cards (.card-item / .char-card) or their board grids.
   Phones (≤600px) keep 16px fields (iOS zoom) and ~40px tap targets from sizes.css. */

/* ---------- Type scale (used by type.css) ---------- */
:root{--t-h1:22px;--t-h2:16px;--t-h3:14px;--t-lead:13.5px;--t-body:13px;--t-small:12px;--t-micro:11px}
@media(max-width:700px){:root{--t-h1:20px;--t-h2:15px}}

/* ---------- Header ---------- */
html body.cinema-site .masthead{min-height:54px}
html body.cinema-site .masthead .home-nav a{font-size:13px;padding:5px 14px}
html body.cinema-site .masthead .brand-word{font-size:22px}
html body.cinema-site .masthead .brand-mark{font-size:20px}

/* ---------- Buttons and fields outside the board (desktop/tablet) ---------- */
@media(min-width:601px){
  html body.cinema-site :is(#route-page,.info-main,.account-main) .btn{min-height:34px;padding:5px 14px;font-size:12.5px;line-height:1.5}
  html body.cinema-site :is(#route-page,.info-main,.account-main) .input,
  html body.cinema-site :is(#route-page,.info-main,.account-main) :is(input:not([type=checkbox]):not([type=radio]),select){min-height:34px;padding-block:6px;font-size:13px}
}

/* ---------- Info pages: guide, legal, contact ---------- */
html body.cinema-site .page-intro{padding-bottom:18px;margin-bottom:18px}
html body.cinema-site .page-intro h1{margin-bottom:8px}
html body.cinema-site .page-intro p{line-height:1.8}
html body.cinema-site .info-nav{padding-bottom:10px;margin-bottom:16px}
html body.cinema-site .info-nav a{padding:7px 10px}
html body.cinema-site .info-main .legal-card{padding:clamp(14px,2vw,22px) clamp(14px,2.2vw,26px);border-radius:14px}
html body.cinema-site .info-heading{padding-bottom:12px;margin-bottom:14px}
html body.cinema-site .legal-card h2{margin-top:18px;margin-bottom:4px}
html body.cinema-site :is(.legal-card p,.legal-card li,.guide-steps p,.contact-row){line-height:1.85}
html body.cinema-site .guide-steps li{gap:14px;padding:14px 0}
html body.cinema-site .guide-steps li:first-child{padding-top:2px}
html body.cinema-site .guide-steps .step-number{font-size:15px}
html body.cinema-site .guide-steps h2{margin-bottom:4px}
html body.cinema-site .guide-example .example-question{font-size:14px;margin:10px 0 2px}
html body.cinema-site .guide-thumbs{margin:10px 0 14px}
html body.cinema-site :is(.guide-tabs,.guide-tab-bar) label{padding:6px 14px;font-size:13px}
html body.cinema-site .page-intro .btn{min-height:34px;padding:6px 16px;font-size:13px}

/* ---------- Account and store ---------- */
html body.cinema-site .account-main .account-emblem{font-size:30px;width:52px;height:52px;margin-bottom:8px}
html body.cinema-site .account-main h1{margin:2px 0 8px}
html body.cinema-site .account-main h2{margin-bottom:8px}
html body.cinema-site .account-main .account-benefits{margin-top:12px}
html body.cinema-site .account-main .account-entry{padding:16px 20px}
html body.cinema-site .account-main .account-guest-link{padding:8px 0;font-size:13px}
html body.cinema-site .account-main .store-card-body{padding:14px 16px}
html body.cinema-site .account-main .store-card-body h2{font-size:16px}

/* ---------- Setup screens: create / join ---------- */
html body.cinema-site #screen-create .challenge-intro h1{font-size:22px}
html body.cinema-site #screen-create .challenge-intro p{font-size:13px}
html body.cinema-site #screen-create .challenge-preview h2{font-size:18px}
html body.cinema-site #screen-create .challenge-duel{height:auto;margin-bottom:14px}
html body.cinema-site #screen-create .duel-card{width:64px;height:86px;font-size:38px}
html body.cinema-site #screen-create .challenge-form{padding:16px;gap:10px 10px}
html body.cinema-site #screen-join .setup-story h2{font-size:20px}
html body.cinema-site #screen-join .setup-form h2{font-size:18px}
@media(min-width:601px){
  html body.cinema-site :is(#screen-create,#screen-join) .input{min-height:36px!important;padding-block:6px!important;font-size:13px}
  html body.cinema-site :is(#screen-create,#screen-join) .btn.primary-btn{min-height:38px;padding-block:6px}
}

/* ---------- Lobby ---------- */
html body.cinema-site #screen-waiting #lobby-title{font-size:22px}
html body.cinema-site #screen-waiting .room-code-box{font-size:22px;padding:8px 14px}

/* ---------- Bot game: side panel only (board cards untouched) ---------- */
html body.cinema-site #screen-solo .solo-heading h1{font-size:17px}
html body.cinema-site #screen-solo .bot-companion{padding:10px;gap:8px}
html body.cinema-site #screen-solo .bot-companion strong{font-size:13.5px}
html body.cinema-site #screen-solo .chat-log{padding:10px 10px;gap:10px}
@media(min-width:601px){
  html body.cinema-site #screen-solo .quick-question{min-height:30px;padding:4px 10px;font-size:12px}
  html body.cinema-site #screen-solo .composer input{min-height:36px;padding:6px 12px;font-size:13px}
  html body.cinema-site #screen-solo .composer button,
  html body.cinema-site #screen-solo :is(#solo-guess-btn,.bot-companion .btn){min-height:34px;padding:5px 12px;font-size:12.5px}
}

/* ---------- Home: "اللعب مع صديق" box ---------- */
/* Only the text is smaller; the box keeps its original size and breathing room. */
html body.cinema-site #screen-home .cinema-players,
html body.cinema-site #screen-home .cinema-players .icon{width:21px;height:17px}
/* The title is painted with a gradient clipped to the text (cinema.css), so the gradient only
   covers the line box. Arabic letters reach below the baseline: the line box needs room for
   them (line-height + bottom padding) or their lower parts disappear. */
html body.cinema-site #screen-home .cinema-play h2{font-size:15.5px;line-height:1.9;padding:0 0 2px;letter-spacing:0;margin:0 0 9px}
html body.cinema-site #screen-home .cinema-actions .btn{font-size:14px}
html body.cinema-site #screen-home .cinema-actions .cinema-join{font-size:12px}
html body.cinema-site #screen-home .cinema-actions .icon{width:15px;height:15px}
html body.cinema-site #screen-home .bot-entry{font-size:11.5px}

/* ---------- Dialogs (cart, pickers, modals) ---------- */
html body.cinema-site .modal-card{padding:16px 18px}
html body.cinema-site .modal-card h2{font-size:17px}
html body.cinema-site .modal-card h3{font-size:14px}

/* Solo board: complete rows, full-size frames and an independent Arabic name line. */
html body.cinema-site #screen-solo.active #solo-characters-board {
  grid-template-columns:repeat(var(--solo-cols,4),minmax(0,1fr))!important;
  gap:10px!important;padding:4px!important;box-sizing:border-box;
}
html body.cinema-site #screen-solo.active #solo-characters-board .card-item {
  display:grid!important;grid-template-rows:auto 26px!important;align-content:start;
  gap:4px!important;width:100%!important;height:100%!important;min-height:0;
  align-self:stretch!important;justify-self:stretch!important;
}
html body.cinema-site #screen-solo.active #solo-characters-board .card-item>.char-card {
  width:100%!important;height:auto!important;max-height:none!important;
  min-height:0!important;aspect-ratio:1!important;padding:3px!important;box-sizing:border-box;
}
html body.cinema-site #screen-solo.active #solo-characters-board .char-avatar {
  display:block!important;width:100%!important;height:100%!important;aspect-ratio:auto!important;
  overflow:hidden!important;background:#e5e5e3;
}
html body.cinema-site #screen-solo.active #solo-characters-board .char-avatar img {
  display:block!important;width:100%!important;height:100%!important;
  object-fit:contain!important;object-position:center!important;transform:none!important;background:#e5e5e3!important;
}
html body.cinema-site #screen-solo.active #solo-characters-board .card-meta {
  display:flex!important;align-items:center;justify-content:center;
  height:26px!important;min-height:26px!important;padding:0!important;overflow:visible;
}
html body.cinema-site #screen-solo.active #solo-characters-board .card-meta .char-name {
  font-size:clamp(11px,.85vw,14px)!important;line-height:24px!important;
  height:26px!important;min-height:26px!important;max-width:100%!important;
  padding:0 2px!important;box-sizing:border-box;
}
@media(min-width:901px){
  html body.cinema-site.solo-fit #screen-solo.active {
    max-width:none!important;width:100%!important;
    grid-template-columns:minmax(0,1fr) clamp(300px,20vw,350px)!important;
  }
  html body.cinema-site.solo-fit #screen-solo.active #solo-characters-board {
    grid-template-rows:repeat(var(--solo-rows,4),minmax(0,1fr))!important;
    grid-auto-rows:auto!important;align-content:stretch!important;justify-content:stretch!important;
  }
}
@media(max-width:900px){
  html body.cinema-site #screen-solo.active #solo-characters-board {
    grid-template-rows:none!important;grid-auto-rows:max-content!important;
  }
  html body.cinema-site #screen-solo.active #solo-characters-board .card-item {
    grid-template-rows:auto 26px!important;height:auto!important;
  }
  html body.cinema-site #screen-solo.active #solo-characters-board .card-item>.char-card {
    height:auto!important;aspect-ratio:1!important;
  }
  html body.cinema-site #screen-solo.active #solo-characters-board .card-meta .char-name {font-size:12px!important}
}

/* Confirmation belongs to the site, never to browser chrome. */
.site-confirm{width:min(420px,calc(100% - 32px));box-sizing:border-box;padding:24px;border:1px solid #c9b18466;border-radius:18px;background:linear-gradient(145deg,#2a2e33,#15191e);color:#eee9de;font-family:var(--font-body);box-shadow:0 24px 80px #0009;text-align:start}
.site-confirm::backdrop{background:#05080dcc;backdrop-filter:blur(4px)}
.site-confirm h2{margin:0 0 10px;font-size:19px}
.site-confirm p{margin:0 0 22px;line-height:1.9;font-size:15px;overflow-wrap:anywhere}
.site-confirm-actions{display:flex;justify-content:flex-end;gap:10px}
.site-confirm-actions .btn{min-height:42px;padding:8px 22px;border-radius:10px}

/* Arabic descenders need a full line box, especially on gradient-painted headings. */
html body.cinema-site :is(h1,h2,h3,h4){line-height:1.65;overflow:visible;padding-bottom:.12em;box-sizing:border-box}
html body.cinema-site .st-hero h1{line-height:1.65;padding-bottom:.15em;overflow:visible}
html body.cinema-site .st-hero h1 em{line-height:1.65;padding-bottom:.12em;margin-bottom:-.12em;overflow:visible}
html body.cinema-site :is(.st-lead,.st-kicker,.page-intro p,.account-heading p,.store-lead,.store-points li,.st-deck span){line-height:1.9;height:auto;min-height:0;overflow:visible}
html body.cinema-site .st-hero-copy{overflow:visible}
html body.cinema-site .st-deck span small{display:block;line-height:1.8;font-size:11px}
html body.cinema-site .st-deck:has(input:disabled){opacity:.65}

html body.cinema-site .st-hero h1 em{display:inline-block!important;vertical-align:baseline;line-height:1.65!important;padding-bottom:.18em;margin-bottom:-.18em}
html body.cinema-site :is(.st-kicker,.store-tag,.store-rounds,.account-kicker){line-height:1.8; padding-block:.15em}

/* /css/streamer.css */
/* streamer.css — "ستريمر؟ العب مع الشات": header link and the /streamer.html page.
   Uses the cinematic tokens from base.css (--primary brass, --surface charcoal, --text). */

/* ======== Header link ======== */
body.cinema-site .home-nav a.nav-streamer{gap:7px;color:#efe3c6;border-color:#d7b47433;background:linear-gradient(#d7b47412,#d7b47405)}
body.cinema-site .home-nav a.nav-streamer:hover{border-color:#d7b47466;background:#d7b4741c;color:#fff4dc}
.nav-live-dot{width:8px;height:8px;flex:none;border-radius:50%;background:#ef5a52;box-shadow:0 0 0 0 #ef5a5299;animation:st-pulse 1.8s ease-out infinite}
@media(max-width:920px){.nav-streamer-more{display:none}}
/* While the streamer's chat is connected, the header link turns green. */
body.st-chat-live .nav-live-dot{background:#5fc39b;animation-name:st-pulse-ok}
body.cinema-site.st-chat-live .home-nav a.nav-streamer{border-color:#5fc39b66;background:linear-gradient(#5fc39b1c,#5fc39b08);color:#d6f5e7}
.rail-menu nav .drawer-streamer{border-color:#d7b47440;color:#f1e4c5}
body.cinema-site .rail-menu nav .drawer-streamer .icon{color:#ef7a6f}
@keyframes st-pulse{0%{box-shadow:0 0 0 0 #ef5a5299}70%{box-shadow:0 0 0 7px #ef5a5200}100%{box-shadow:0 0 0 0 #ef5a5200}}
@keyframes st-pulse-ok{0%{box-shadow:0 0 0 0 #5fc39b99}70%{box-shadow:0 0 0 7px #5fc39b00}100%{box-shadow:0 0 0 0 #5fc39b00}}

/* ======== Page frame ======== */
.st-page{
  --st-line:#d7b47429; --st-line-strong:#d7b47466; --st-card:linear-gradient(150deg,#2a2e34e6,#171b20f2);
  --st-yes:#5fc39b; --st-no:#ef7d72; --st-live:#ef5a52;
  width:min(1360px,calc(100% - 32px)); margin:clamp(20px,3vw,36px) auto 56px; color:var(--text); font-family:var(--font-body);
}
.st-page h1,.st-page h2{font-family:var(--font-head);letter-spacing:-.01em}
.st-page code{font:700 .95em/1 var(--font-body);direction:rtl;unicode-bidi:isolate;color:#f1d79d;background:#d7b47414;border:1px solid var(--st-line-strong);border-radius:7px;padding:4px 8px;white-space:nowrap}
.st-page .btn{min-height:var(--tap-min,44px);border-radius:10px;padding:10px 18px;font-weight:700;gap:8px;text-decoration:none}
.st-page .btn .icon{width:18px;height:18px}
.st-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body.cinema-site .st-page .st-ghost{background:#ffffff08;border:1px solid #b8b4aa40;color:#e7e2d6}
body.cinema-site .st-page .st-ghost:hover:not(:disabled){background:#ffffff12;border-color:var(--st-line-strong)}
.st-cta{min-height:52px;font-size:17px;padding-inline:26px}
.st-kicker{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#d9c08b;letter-spacing:.01em}
.st-kicker .icon{width:16px;height:16px}
.st-kicker-warn{color:#f0a79e}
.st-dot{width:9px;height:9px;border-radius:50%;background:var(--st-live);animation:st-pulse 1.8s ease-out infinite}
.st-lead{color:#c9c6be;font-size:17px;line-height:1.9;max-width:560px}
.st-fine{color:var(--text-muted);font-size:13px;margin:0}
.st-fine:empty{display:none}
.st-notice{margin:0 0 16px;padding:12px 16px;border-radius:10px;background:#4a2622;border:1px solid #ef7d7255;color:#ffd9d3}
.st-loading{display:flex;align-items:center;justify-content:center;gap:10px;min-height:40vh;color:var(--text-muted)}
.st-spinner{width:20px;height:20px;border-radius:50%;border:2px solid #d7b47433;border-top-color:var(--primary);animation:st-spin .8s linear infinite}
@keyframes st-spin{to{transform:rotate(360deg)}}

/* ======== Chat look (hero demo and the live feed share it) ======== */
.st-chat{list-style:none;margin:0;padding:14px;display:grid;gap:8px;align-content:start;border-radius:16px;background:#0d1014e8;border:1px solid #ffffff1a;box-shadow:0 30px 70px #0008}
.st-chat li{font-size:15px;line-height:1.7;color:#dcd8cf;overflow-wrap:anywhere}
.st-chat li b{color:#8ee07a;margin-inline-end:8px;font-weight:700}
.st-chat li b.c2{color:#c49bff}.st-chat li b.c3{color:#7cc8ff}.st-chat li b.c4{color:#ffb86b}
.st-chat .is-question{padding:8px 10px;border-radius:10px;background:#d7b47414;border:1px solid var(--st-line)}
.st-chat .is-yes{color:#9be6c4;font-weight:700;padding-inline-start:10px}
.st-chat .is-no{color:#ffb4ab;font-weight:700;padding-inline-start:10px}
.st-chat .is-guess{color:#f1d79d;font-weight:700}
.st-chat .is-system{color:var(--text-muted);font-size:13px;text-align:center}

/* ======== Hero (visitors buy, owners set up the lobby) ======== */
.st-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(24px,5vw,72px);align-items:center;padding:clamp(8px,3vw,40px) 0 clamp(16px,3vw,32px)}
.st-hero h1{font-size:clamp(36px,5.4vw,64px);line-height:1.25;margin:14px 0 18px;color:#f3efe6}
.st-hero h1 em{display:block;font-style:normal;background:linear-gradient(110deg,#f6e2b2,#c79d5f 70%);-webkit-background-clip:text;background-clip:text;color:transparent}
.st-hero-copy{min-width:0}
.st-buy{display:grid;gap:14px;margin-top:28px;max-width:440px}
.st-price{display:flex;align-items:flex-end;gap:10px}
.st-price strong{font:800 56px/1 var(--font-head);color:#f1dca8}
.st-price span{display:grid;font-weight:700;color:#e2d6bb;padding-bottom:6px}
.st-price small{font-weight:500;color:var(--text-muted);font-size:13px}
.st-consent{display:flex;gap:10px;align-items:flex-start;color:#c9c6be;font-size:14px;line-height:1.8}
.st-consent input{width:20px;height:20px;margin-top:4px;accent-color:var(--primary);flex:none}
.st-hero-art{position:relative;min-height:380px;display:grid;place-items:center}
.st-demo-card{display:grid;place-items:center;align-content:center;gap:6px;aspect-ratio:5/7;border-radius:18px;border:1px solid #c9b48c88;background:radial-gradient(circle at 50% 35%,#3d4249,#15191e 75%);box-shadow:inset 0 1px #ffffff26,inset 0 0 0 7px #0005,0 30px 60px #0008}
.st-demo-card span{font:800 96px/1 var(--font-head);color:#e3c88f;text-shadow:0 4px 16px #0009}
.st-demo-card small{color:#b9b3a6;font-size:12px}
.st-hero-art .st-demo-card{position:absolute;inset-inline-start:6%;top:6%;width:min(200px,46%);transform:rotate(-7deg);animation:st-float 6s ease-in-out infinite}
@keyframes st-float{50%{transform:rotate(-5deg) translateY(-10px)}}
.st-demo-chat{position:relative;z-index:1;margin:90px 0 0;margin-inline-start:auto;width:min(330px,88%);backdrop-filter:blur(6px)}
.st-demo-chat li{opacity:0;animation:st-chat-in .5s ease forwards}
.st-demo-chat li:nth-child(2){animation-delay:.5s}.st-demo-chat li:nth-child(3){animation-delay:1.1s}.st-demo-chat li:nth-child(4){animation-delay:1.8s}.st-demo-chat li:nth-child(5){animation-delay:2.5s}
@keyframes st-chat-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.st-steps{list-style:none;display:flex;flex-wrap:wrap;gap:8px 18px;margin:26px 0 0;padding:0;color:#bdb9b0;font-size:13px}
.st-steps li{display:inline-flex;align-items:center;gap:8px}

/* Lobby setup inside the hero: one card, every control the same height, radius and border. */
.st-setup{
  --st-control:52px; --st-radius:12px; --st-field-bg:#0f1317; --st-field-line:#ffffff1c;
  display:grid;gap:18px;margin-top:26px;max-width:560px;padding:20px;border-radius:20px;
  background:var(--st-card);border:1px solid var(--st-line);box-shadow:inset 0 1px #ffffff0c,0 24px 60px #0005
}
.st-setup-group{display:grid;gap:8px}
.st-setup-label{font-size:12px;font-weight:800;color:#a9a497;letter-spacing:.02em}
.st-option,.st-deck{position:relative;cursor:pointer}
.st-option input,.st-deck input,.st-pick-card input{position:absolute;opacity:0;pointer-events:none}
.st-option input:focus-visible+span,.st-deck input:focus-visible~span,.st-pick-card input:focus-visible+span{outline:2px solid var(--primary);outline-offset:3px}
/* Channel: platform pill and name in one field. */
.st-channel-field{display:flex;align-items:center;gap:6px;height:var(--st-control);padding:5px;border-radius:var(--st-radius);background:var(--st-field-bg);border:1px solid var(--st-field-line);transition:border-color 160ms,box-shadow 160ms}
.st-channel-field:focus-within{border-color:#c5ab77;box-shadow:0 0 0 3px #c5ab7712}
.st-channel-field input{flex:1;min-width:0;height:100%;padding:0 10px;border:0;outline:0;background:none;color:var(--text);font:600 var(--field-text,16px)/1 var(--font-body);text-align:left}
.st-channel-field input::placeholder{color:#76736c}
.st-platforms{display:flex;gap:4px;height:100%;flex:none}
.st-option span{display:grid;place-items:center;height:100%;padding:0 14px;border-radius:9px;font:800 14px/1 var(--font-head);color:#a9a59c;transition:background 160ms,color 160ms}
.st-option:hover span{color:#e7e2d6}
.st-kick input:checked+span{background:#53fc181c;color:#9cff7c;box-shadow:inset 0 0 0 1px #53fc1855}
.st-twitch input:checked+span{background:#9146ff22;color:#cfb3ff;box-shadow:inset 0 0 0 1px #a970ff55}
.st-platforms.is-single .st-option{cursor:default}
/* Cards: two equal tiles. */
.st-decks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.st-decks.st-decks-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.st-deck[hidden]{display:none}
@media(max-width:520px){.st-decks-3{gap:6px}.st-decks-3 .st-deck{gap:6px;padding:0 5px;font-size:13px}.st-decks-3 .st-deck img{width:30px;height:30px;border-radius:7px}}
.st-deck{display:flex;align-items:center;gap:10px;height:var(--st-control);padding:0 6px;border-radius:var(--st-radius);border:1px solid var(--st-field-line);background:var(--st-field-bg);font-weight:700;font-size:15px;color:#cfcac0;transition:border-color 160ms,background 160ms,color 160ms}
.st-deck img{width:40px;height:40px;object-fit:cover;border-radius:9px;background:#262a30}
.st-deck:hover{border-color:#ffffff33}
.st-deck:has(input:checked){border-color:var(--st-line-strong);background:#d7b47414;color:#f6e6c2;box-shadow:inset 0 0 0 1px #d7b47433}
/* Rules: a 3 × 2 grid; each label sits above its own box. */
.st-rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px}
.st-field{display:grid;gap:6px;min-width:0}
.st-field>span:first-child{font-size:12px;font-weight:700;color:#a9a497;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-box{position:relative;display:flex;align-items:center;gap:6px;height:var(--st-control);padding:0 12px;border-radius:var(--st-radius);border:1px solid var(--st-field-line);background:var(--st-field-bg);cursor:pointer;text-decoration:none;transition:border-color 160ms,box-shadow 160ms}
.st-box:hover,.st-box:focus-within{border-color:#c5ab7788}
.st-box:focus-within{box-shadow:0 0 0 3px #c5ab7712}
.st-box select{appearance:none;-webkit-appearance:none;width:100%;height:100%;padding:0;padding-inline-end:18px;border:0;outline:0;background:none;color:#ece6d8;font:700 14px/1.3 var(--font-body);cursor:pointer}
.st-box select option{background:#1b1f24;color:#ece6d8}
.st-box:has(select):after{content:"";position:absolute;inset-inline-end:14px;top:calc(50% - 5px);width:6px;height:6px;border-right:2px solid #a9a497;border-bottom:2px solid #a9a497;transform:rotate(45deg);pointer-events:none}
body.cinema-site .st-page .st-setup>.st-cta{width:100%;height:56px;min-height:56px;font-size:18px;border-radius:var(--st-radius)}

/* Kick channel check: the code to type in chat. */
.st-verify h2{margin:0;font-size:20px;line-height:1.6;color:#f1ece1}
.st-verify bdi{color:#9cff7c}
.st-verify-code{display:flex;align-items:center;gap:8px}
.st-verify-code code{flex:1;display:grid;place-items:center;height:64px;font-size:30px;letter-spacing:.04em;border-radius:12px}
body.cinema-site .st-page .st-verify-code .btn{height:64px}
.st-verify .st-fine{display:flex;align-items:center;gap:8px;line-height:1.7}
.st-verify .st-spinner{width:14px;height:14px;flex:none}
.st-verify>.btn{justify-self:start}

/* Owners (setup and channel check) see the whole page at once on a computer: no scrolling.
   The title sits on one line and the footer steps aside, as on the live screen. */
@media(min-width:761px){
  body.cinema-site:has(#st-settings:not([hidden])) .site-credits,
  body.cinema-site:has(#st-verify:not([hidden])) .site-credits{display:none}
  .st-page:has(#st-settings:not([hidden])),.st-page:has(#st-verify:not([hidden])){margin-block:0}
  .st-hero:has(#st-settings:not([hidden])),.st-hero:has(#st-verify:not([hidden])){
    box-sizing:border-box;min-height:calc(100svh - 64px);padding-block:clamp(10px,2.4vh,28px)}
  .st-hero:is(:has(#st-settings:not([hidden])),:has(#st-verify:not([hidden]))) h1{font-size:clamp(32px,3.4vw,50px);line-height:1.2;margin:10px 0 8px}
  .st-hero:is(:has(#st-settings:not([hidden])),:has(#st-verify:not([hidden]))) h1 em{display:inline}
  .st-hero:is(:has(#st-settings:not([hidden])),:has(#st-verify:not([hidden]))) .st-lead{margin:0;font-size:15px;line-height:1.75}
  .st-hero .st-setup{margin-top:clamp(12px,2.4vh,26px)}
}
/* Short computer screens: tighter setup card so it still fits. */
@media(min-width:761px) and (max-height:820px){
  .st-setup{--st-control:44px;gap:12px;padding:16px}
  .st-rules{gap:8px}
  body.cinema-site .st-page .st-setup>.st-cta{height:48px;min-height:48px}
  .st-hero:is(:has(#st-settings:not([hidden])),:has(#st-verify:not([hidden]))) .st-lead{display:none}
}

/* ======== Private page (phone) ======== */
.st-private{max-width:900px;margin:0 auto;display:grid;gap:10px}
.st-private h1{font-size:clamp(28px,4vw,40px);margin:4px 0}
.st-pick{display:grid;gap:14px}
.st-pick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;max-height:58vh;overflow:auto;padding:4px;border-radius:14px}
.st-pick-card{position:relative;cursor:pointer}
.st-pick-card span{display:grid;gap:4px;padding:5px;border-radius:12px;border:1px solid #ffffff1a;background:#ffffff06;font-size:12px;text-align:center;color:#d8d3c8;transition:border-color 140ms,background 140ms,transform 140ms}
.st-pick-card img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;background:#262a30}
/* Character portraits have a frame drawn into the file: crop it, then zoom back to the full box. */
.st-pick-grid.is-portraits img,.st-reveal-card.is-portrait img{clip-path:inset(5.5%);transform:scale(1.12)}
.st-pick-card input:checked+span{border-color:var(--primary);background:#d7b4741f;transform:translateY(-2px);box-shadow:0 0 0 2px #d7b47455}
.st-pick-bar{position:sticky;bottom:12px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;border-radius:14px;background:#14181dee;border:1px solid var(--st-line-strong);box-shadow:0 16px 40px #000a;backdrop-filter:blur(6px)}
.st-pick-bar p{flex:1 1 180px;margin:0;font-weight:700;color:#efe6d2}
.st-peek{position:relative;justify-self:center;width:min(300px,80vw);aspect-ratio:5/7;padding:0;border:0;background:none;user-select:none;-webkit-user-select:none;touch-action:none;-webkit-touch-callout:none;perspective:900px}
.st-peek>span{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:10px;border-radius:20px;backface-visibility:hidden;transition:transform 120ms cubic-bezier(.2,.8,.2,1);border:1px solid #c9b48c88;box-shadow:inset 0 1px #ffffff26,0 26px 60px #0009}
.st-peek-back{background:radial-gradient(circle at 50% 35%,#3d4249,#15191e 75%)}
.st-peek-back span{font:800 110px/1 var(--font-head);color:#e3c88f}
.st-peek-back small{color:#c4bdae;font-size:14px;padding:0 16px;text-align:center}
.st-peek-front{transform:rotateY(180deg);background:#1b1f24;padding:14px;color:#f1e6cc;font:800 22px/1.4 var(--font-head)}
.st-peek-front img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px}
.st-peek.is-open .st-peek-back{transform:rotateY(-180deg)}
.st-peek.is-open .st-peek-front{transform:rotateY(0)}

/* ======== Live session: board fills the screen, chat console on the side ======== */
body.cinema-site:has(.st-live:not([hidden])) .site-credits{display:none}
.st-page:has(.st-live:not([hidden])){width:calc(100% - 24px);max-width:1880px;margin:10px auto}
/* RTL order: queue on the right, board in the middle, console on the left. */
.st-arena{display:grid;grid-template-columns:clamp(180px,12.5vw,240px) minmax(0,1fr) clamp(260px,18vw,320px);gap:12px;height:calc(100svh - var(--st-top,84px) - 10px);min-height:520px}
.st-table{position:relative;display:flex;flex-direction:column;gap:8px;min-width:0;min-height:0;padding:12px;border-radius:20px;background:radial-gradient(ellipse at 50% 0,#d7b47414,transparent 60%),#0f1216c4;border:1px solid var(--st-line)}
.st-table-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.st-remaining{margin:0;font:800 clamp(15px,1.2vw,20px)/1.3 var(--font-head);color:#efe6d2}
.st-remaining small{font:600 13px/1 var(--font-body);color:var(--text-muted);margin-inline-start:8px}
.st-cmds{list-style:none;display:flex;flex-wrap:wrap;gap:6px 14px;margin:0;padding:0}
.st-cmds li{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600;color:#d3cec3}
.st-cmds code{font-size:13px;padding:5px 9px}
.st-board{flex:1;min-height:0;display:grid;justify-content:center;align-content:center;gap:var(--st-gap,8px)}
body.cinema-site .st-board button{opacity:1;filter:none}
.st-board button.is-locked{cursor:default}
.st-board button{position:relative;display:block;width:100%;height:100%;padding:0;overflow:hidden;border-radius:12px;border:2px solid #c9b48c55;background:#1d2126;box-shadow:0 6px 14px #0005;transition:transform 160ms,box-shadow 160ms,opacity 220ms,filter 220ms,border-color 160ms}
.st-board.is-editable button:not(.excluded):hover{transform:translateY(-3px);border-color:var(--primary);box-shadow:0 0 0 3px #d7b47455,0 10px 22px #0006}
.st-board.is-editable button:active{transform:scale(.9)}
.st-board img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover;border-radius:0}
/* The character pictures have a light frame drawn into the file: zoom past it so the face fills the card. */
.st-board.is-portraits img{transform:scale(1.13);transform-origin:50% 45%}
.st-board button>span{position:absolute;inset-inline:0;bottom:0;padding:14px 4px 4px;background:none;text-shadow:0 1px 2px #000,0 0 3px #000;color:#f3eee4;font:700 clamp(10px,calc(var(--st-card,100px) * .12),16px)/1.2 var(--font-body);text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-board b{position:absolute;top:4px;inset-inline-start:4px;display:grid;place-items:center;min-width:clamp(22px,calc(var(--st-card,100px) * .3),40px);height:clamp(22px,calc(var(--st-card,100px) * .3),40px);padding:0 5px;border-radius:999px;background:linear-gradient(135deg,#ecd5a1,#ba955f);color:#1b1812;font:800 clamp(12px,calc(var(--st-card,100px) * .17),22px)/1 var(--font-head);box-shadow:0 3px 8px #0008}
body.cinema-site .st-board .excluded:not(.is-secret){opacity:.28;filter:grayscale(1);transform:scale(.93);animation:st-exclude .45s ease}
.st-board .excluded:not(.is-secret) b{background:#5b5e63;color:#d5d2cc}
.st-board .excluded:after{content:"";position:absolute;inset:16%;background:linear-gradient(45deg,transparent 46%,#ef7d72 46% 54%,transparent 54%),linear-gradient(-45deg,transparent 46%,#ef7d72 46% 54%,transparent 54%);animation:st-x .35s .1s ease both}
/* Excluding a card: a quick knock, then it fades and the cross is drawn. */
@keyframes st-exclude{0%{opacity:1;filter:none;transform:scale(1)}30%{opacity:1;filter:none;transform:scale(1.06) rotate(-3deg)}60%{transform:scale(.9) rotate(2deg)}100%{opacity:.28;filter:grayscale(1);transform:scale(.93)}}
@keyframes st-x{from{clip-path:inset(0 0 100% 0);opacity:0}to{clip-path:inset(0);opacity:1}}
.st-board .is-secret{opacity:1;filter:none;transform:scale(1.04);border-color:#9be6c4;box-shadow:0 0 0 4px #5fc39b88,0 10px 24px #0007;z-index:1}
.st-board .is-secret:after{display:none}
.st-lobby{flex:1;display:flex;align-items:center;justify-content:center;gap:clamp(20px,4vw,56px);text-align:start}
.st-lobby .st-demo-card{width:clamp(120px,14vw,220px);animation:st-float 6s ease-in-out infinite}
.st-lobby>div:last-child{display:grid;gap:clamp(12px,1.6vw,22px);min-width:0}
.st-lobby h2{display:flex;flex-wrap:wrap;align-items:center;gap:.3em;font-size:clamp(28px,3.6vw,56px);line-height:1.3;margin:0;color:#f3efe6}
/* The command box sits on the title line instead of spilling into the text below it. */
.st-lobby h2 code{display:inline-block;font-size:.82em;line-height:1.25;padding:.12em .4em;border-radius:.22em}
.st-lobby p{margin:0;color:#c9c6be;font-size:clamp(16px,1.5vw,22px);line-height:1.6}
@media(max-width:760px){.st-lobby h2{justify-content:center}}
.st-result{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:16px;padding:12px 18px;border-radius:16px;border:1px solid;animation:st-chat-in .5s ease}
.st-result.is-chat{background:linear-gradient(120deg,#5fc39b2e,#1a2620);border-color:#5fc39b66}
.st-result.is-streamer{background:linear-gradient(120deg,#d7b47433,#241f17);border-color:var(--st-line-strong)}
.st-result img{width:64px;height:64px;object-fit:cover;border-radius:12px;border:2px solid #ffffff33}
.st-result h2{margin:0;font-size:clamp(20px,2.2vw,32px)}
.st-result p{margin:0;color:#dcd6c8}

.st-console{display:flex;flex-direction:column;gap:10px;min-height:0;padding:12px;border-radius:20px;background:var(--st-card);border:1px solid var(--st-line);box-shadow:inset 0 1px #ffffff0c}
.st-console-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 10px}
.st-onair{grid-column:1/-1;justify-self:start;display:inline-flex;align-items:center;gap:7px;padding:4px 11px;border-radius:999px;background:#5fc39b1f;border:1px solid #5fc39b66;color:#9be6c4;font-weight:800;font-size:13px}
.st-onair:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--st-yes);animation:st-pulse-ok 1.8s ease-out infinite}
.st-onair.is-lost{background:#ef5a521f;border-color:#ef5a5266;color:#ffb2ab}
.st-onair.is-lost:before{background:var(--st-live);animation:st-pulse 1.8s ease-out infinite}
.st-onair.is-off{background:#ffffff0a;border-color:#ffffff26;color:var(--text-muted)}
.st-onair.is-off:before{background:#8a8780;animation:none}
.st-channel{display:grid;min-width:0}
.st-channel strong{font:800 16px/1.4 var(--font-head);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-channel span{color:var(--text-muted);font-size:12px}
.st-score{display:flex;align-items:center;gap:10px;padding:4px 12px;border-radius:12px;background:#0c0f12aa;border:1px solid var(--st-line)}
.st-score div{display:grid;justify-items:center;line-height:1.1}
.st-score small{color:var(--text-muted);font-size:11px;font-weight:700}
.st-score b{font:800 26px/1.1 var(--font-head);color:#f1dca8;font-variant-numeric:tabular-nums}
.st-score>span{font:800 20px/1 var(--font-head);color:#7b776f}
.st-score b.is-bump{animation:st-bump .6s ease}
@keyframes st-bump{40%{transform:scale(1.35);color:#fff}}
.st-now{display:flex;align-items:center;gap:10px;padding:10px;border-radius:14px;background:radial-gradient(ellipse at 100% 0,#d7b47424,transparent 60%),#ffffff06;border:1px solid var(--st-line)}
.st-seat{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:50%;background:linear-gradient(135deg,#ecd5a1,#ba955f);color:#1b1812;font:800 19px/1 var(--font-head)}
.st-seat.is-empty{background:#ffffff10;color:#8f8b83}
.st-now-text{display:grid;flex:1;min-width:0}
.st-now-text small{color:var(--text-muted);font-size:12px;font-weight:700}
.st-now-text strong{font:800 clamp(17px,1.4vw,22px)/1.35 var(--font-head);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-timer{position:relative;width:50px;height:50px;flex:none}
.st-timer svg{width:100%;height:100%;transform:rotate(-90deg)}
.st-timer circle{fill:none;stroke-width:4}
.st-timer circle:first-child{stroke:#ffffff14}
#st-timer-ring{stroke:var(--primary);stroke-linecap:round;stroke-dasharray:100;transition:stroke-dashoffset 250ms linear,stroke 250ms}
.st-timer.is-low #st-timer-ring{stroke:var(--st-no)}
.st-timer output{position:absolute;inset:0;display:grid;place-items:center;font:800 16px/1 var(--font-head);font-variant-numeric:tabular-nums}
.st-timer.is-low output{color:#ffb4ab}
.st-feed{flex:1;min-height:120px;overflow:auto;box-shadow:none;scroll-behavior:smooth;padding:10px;gap:6px}
.st-feed li{font-size:13px;line-height:1.6}
.st-feed .is-question{padding:6px 8px}
.st-feed .is-yes,.st-feed .is-no{font-size:12px}
.st-feed .is-current{font-size:15px;font-weight:700;color:#f6f0e2;border-color:var(--st-line-strong);animation:st-chat-in .4s ease}
.st-feed .is-current .st-answer{margin-inline-start:8px}
.st-answer{display:inline-flex;align-items:center;padding:1px 10px;border-radius:999px;font-size:.8em;font-weight:800;vertical-align:middle}
.st-answer.is-yes{background:#5fc39b24;color:#9be6c4;border:1px solid #5fc39b66;padding-inline-start:10px}
.st-answer.is-no{background:#ef7d7224;color:#ffb4ab;border:1px solid #ef7d7266;padding-inline-start:10px}
.st-turn-actions{display:flex;flex-wrap:wrap;gap:8px}
.st-turn-actions .btn{flex:1 1 auto;min-height:46px}
body.cinema-site .st-page .st-next{flex:1 1 100%;min-height:54px;font-size:18px}
body.cinema-site .st-page .st-kick-btn{color:#ffb4ab;border-color:#ef7d7255}
body.cinema-site .st-page .st-kick-btn:hover:not(:disabled){background:#ef7d7218;border-color:#ef7d7299}
/* Press feedback on every control. */
.st-page .btn{transition:transform 120ms ease,filter 160ms,background 160ms,border-color 160ms,box-shadow 160ms}
.st-page .btn:active:not(:disabled){transform:scale(.94)}
.st-page .btn.is-pressed{animation:st-press .35s ease}
@keyframes st-press{40%{box-shadow:0 0 0 6px #d7b47433}}
.st-drawer{border-radius:12px;border:1px solid #ffffff12;background:#ffffff04}
.st-drawer summary{display:flex;align-items:center;gap:8px;padding:8px 12px;cursor:pointer;font-weight:700;font-size:14px;list-style:none}
.st-drawer summary::-webkit-details-marker{display:none}
.st-drawer summary .icon{width:16px;height:16px;color:var(--primary)}
.st-drawer summary .st-pill{margin-inline-start:auto}
.st-pill{font-size:11px;font-weight:800;padding:3px 9px;border-radius:999px;background:#5fc39b1f;color:#9be6c4;border:1px solid #5fc39b55}
.st-pill.is-closed{background:#ffffff0a;color:var(--text-muted);border-color:#ffffff22}
.st-ranking{list-style:none;margin:0;padding:0 8px 8px;display:grid;gap:4px;max-height:180px;overflow:auto}
.st-ranking li{display:flex;align-items:center;gap:8px;padding:5px 8px;border-radius:8px;background:#ffffff06;font-size:13px;overflow-wrap:anywhere}

/* The queue: its own column on the right, the current turn stands out. */
.st-lineup{min-width:0;overflow:hidden;display:flex;flex-direction:column;gap:10px;min-height:0;padding:12px;border-radius:20px;background:var(--st-card);border:1px solid var(--st-line)}
.st-lineup-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.st-lineup-head h2{margin:0;font-size:17px}
.st-lineup-head h2 span{color:var(--text-muted);font-size:14px}
.st-queue{min-width:0;width:100%;box-sizing:border-box;list-style:none;margin:0;padding:0;display:grid;align-content:start;gap:6px;flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;scroll-behavior:smooth}
.st-queue li{min-width:0;width:100%;box-sizing:border-box;display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:10px;background:#ffffff06;font-size:14px;font-weight:600;overflow-wrap:anywhere;transition:background 220ms,transform 220ms}
.st-queue li>span:nth-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:normal;overflow-wrap:anywhere;flex:1}
.st-queue li>span:first-child{display:grid;place-items:center;min-width:28px;height:28px;flex:none;border-radius:8px;background:#ffffff0f;font:800 13px/1 var(--font-head);color:#cfc8b8}
.st-queue li small{max-width:100%;white-space:normal;overflow-wrap:anywhere;margin-inline-start:auto;color:var(--text-muted);font-size:11px}
.st-queue li small:empty{display:none}
.st-queue li.current{flex-wrap:wrap;padding:10px;background:linear-gradient(135deg,#d7b47433,#d7b47410);box-shadow:inset 0 0 0 1px var(--st-line-strong),0 8px 20px #0005;font-size:16px;font-weight:800;color:#fff2d2;transform:none;animation:st-chat-in .35s ease}
.st-queue li.current>span:first-child{min-width:34px;height:34px;background:linear-gradient(135deg,#ecd5a1,#ba955f);color:#1b1812;font-size:15px}
.st-queue li.current small{color:#f1d79d;font-weight:800}
.st-queue li.played{color:#a29e95}
.st-queue li.kicked{opacity:.5;text-decoration:line-through}
.st-ranking li b{margin-inline-start:auto;color:#f1dca8}
.st-empty{color:var(--text-muted);justify-content:center}
.st-session-actions{display:flex;gap:8px}
.st-session-actions .btn{flex:1;min-height:38px;font-size:13px;padding:6px 10px}

/* Before a round: "choose the card" and "random" side by side. */
.st-turn-actions.is-pair .btn{flex:1 1 0}
.st-turn-actions.is-pair .primary-btn{flex-grow:1.6}
/* Secret card window. */
.st-console-tools{display:flex;gap:8px}
body.cinema-site .st-page .st-console-tools .btn{flex:1;min-height:38px;font-size:13px;padding:6px 10px}
.st-console-tools .btn .icon{width:16px;height:16px}

/* ======== Secret card window (?private=1 opened from the live screen) ======== */
body.st-popup-mode .masthead,body.st-popup-mode #home-panels,body.st-popup-mode .site-credits{display:none !important}
body.st-popup-mode .st-page{width:calc(100% - 24px);margin:12px auto}
body.st-popup-mode .st-private h1{font-size:26px}
body.st-popup-mode .st-pick-grid{grid-template-columns:repeat(auto-fill,minmax(76px,1fr));max-height:calc(100vh - 260px)}

/* ======== Guess reveal ======== */
.st-reveal{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;background:radial-gradient(circle at 50% 45%,#1c2026e6,#05070af2);backdrop-filter:blur(6px);animation:st-fade .3s ease;cursor:pointer}
.st-reveal.is-leaving{animation:st-fade .3s ease reverse forwards}
@keyframes st-fade{from{opacity:0}to{opacity:1}}
.st-reveal-stage{display:grid;justify-items:center;gap:22px;text-align:center;padding:20px}
.st-reveal-who{margin:0;font:800 clamp(24px,3.4vw,48px)/1.3 var(--font-head);color:#f3efe6}
.st-reveal-card{position:relative;width:clamp(200px,24vw,340px);aspect-ratio:5/6;perspective:1200px}
.st-reveal-card>div{position:absolute;inset:0;border-radius:22px;backface-visibility:hidden;overflow:hidden;transition:transform .7s cubic-bezier(.2,.8,.2,1);box-shadow:0 30px 80px #000c}
.st-reveal-back{display:grid;place-items:center;border:2px solid #c9b48c99;background:radial-gradient(circle at 50% 35%,#3d4249,#15191e 75%)}
.st-reveal-back span{font:800 clamp(90px,12vw,170px)/1 var(--font-head);color:#e3c88f;text-shadow:0 6px 24px #000a;animation:st-count .8s ease infinite}
@keyframes st-count{0%{transform:scale(1.35);opacity:0}25%{transform:scale(1);opacity:1}100%{transform:scale(.92);opacity:.85}}
.st-reveal-front{transform:rotateY(180deg);border:3px solid #c9b48c;background:#1b1f24}
.st-reveal-front img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.st-reveal-front b{position:absolute;top:10px;inset-inline-start:10px;display:grid;place-items:center;min-width:52px;height:52px;padding:0 8px;border-radius:999px;background:linear-gradient(135deg,#ecd5a1,#ba955f);color:#1b1812;font:800 26px/1 var(--font-head);box-shadow:0 4px 12px #0009}
.st-reveal-front span{position:absolute;inset-inline:0;bottom:0;padding:30px 8px 12px;background:none;text-shadow:0 1px 2px #000,0 0 3px #000;font:800 24px/1.2 var(--font-head);color:#fff}
.st-reveal-card.is-flipped .st-reveal-back{transform:rotateY(-180deg)}
.st-reveal-card.is-flipped .st-reveal-front{transform:rotateY(0)}
.st-reveal-verdict{min-height:1.4em;margin:0;font:800 clamp(22px,3vw,40px)/1.4 var(--font-head)}
.st-reveal.is-correct .st-reveal-verdict{color:#9be6c4;animation:st-pop .5s ease}
.st-reveal.is-wrong .st-reveal-verdict{color:#ffb4ab;animation:st-pop .5s ease}
.st-reveal.is-correct .st-reveal-front{border-color:#5fc39b;box-shadow:0 0 0 6px #5fc39b55,0 30px 80px #000c}
.st-reveal.is-wrong .st-reveal-front{border-color:#ef7d72;box-shadow:0 0 0 6px #ef7d7255,0 30px 80px #000c;animation:st-shake .5s .1s ease}
@keyframes st-pop{0%{transform:scale(.6);opacity:0}60%{transform:scale(1.08);opacity:1}100%{transform:scale(1)}}
@keyframes st-shake{20%,60%{translate:-10px 0}40%,80%{translate:10px 0}}

/* ======== Responsive ======== */
@media(max-width:900px){
  .st-arena{grid-template-columns:1fr;height:auto}
  .st-table{min-height:auto}
  .st-lineup{order:3}
  .st-queue{max-height:240px}
  .st-board{grid-template-columns:repeat(6,minmax(0,1fr)) !important;grid-auto-rows:auto !important;gap:6px}
  .st-board button{aspect-ratio:1}
  .st-feed{max-height:260px}
  .st-cmds{display:none}
  /* On a phone the streamer's answer buttons stay in reach while scrolling the board. */
  .st-turn-actions:not(:empty){position:fixed;inset-inline:10px;bottom:10px;z-index:20;padding:10px;border-radius:16px;background:#14181df2;border:1px solid var(--st-line-strong);box-shadow:0 16px 40px #000c;backdrop-filter:blur(8px)}
  body.cinema-site .st-page .st-next{flex:1 1 auto}
  .st-page:has(.st-turn-actions:not(:empty)){padding-bottom:110px}
}
@media(max-width:760px){
  .st-hero{grid-template-columns:1fr}
  .st-hero-art{min-height:300px;order:-1}
  .st-rules{grid-template-columns:1fr 1fr}
  .st-setup{padding:14px}
  .st-lobby{flex-direction:column;text-align:center;padding:20px 0}
  .st-result{grid-template-columns:1fr;justify-items:start}
}
@media(prefers-reduced-motion:reduce){
  .st-page *,.nav-live-dot{animation:none !important}
  .st-page *:not(.st-reveal-card>div){transition:none !important}
  .st-demo-chat li{opacity:1}
}

.st-peek:not(.is-open)>span{transition:none}
.st-deck-name{display:grid;gap:1px;line-height:1.25;min-width:0}.st-deck-name .ticket-cost{margin:0;font-size:11px}.st-deck-name .ticket-cost .icon{width:13px;height:13px}
