/* Гостевые экраны без загрузки фоновых изображений. Колонка остаётся до 460 px. */
.guest-scene, .guest-room {
  --ink: #f8efdc;
  --ink-dim: #c5c4c5;
  --ink-faint: #b8c0cc;
  color: var(--ink);
  background: #0c1622;
  isolation: isolate;
}
/* Тонкая верхняя линия нарисована CSS; нижней декоративной рамки нет. */
.guest-scene::before, .guest-room::before {
  content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, #b69a65, transparent);
  pointer-events: none;
}
.guest-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; }
.guest-content {
  flex: 1 0 auto; position: relative; min-height: 100%; width: 100%;
  padding: calc(28px + env(safe-area-inset-top)) 30px calc(32px + env(safe-area-inset-bottom));
  text-align: center; isolation: isolate;
}
.guest-home { display: flex; flex-direction: column; justify-content: center; }
.guest-home > * { flex-shrink: 0; }
.guest-emblem { display: block; width: 200px; max-width: 84%; height: auto; aspect-ratio: 1; margin: 18px auto 12px; object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 52%, #000c 68%, transparent 79%);
  mask-image: radial-gradient(ellipse at center, #000 52%, #000c 68%, transparent 79%); }
.guest-emblem.compact { width: 88px; margin: 36px auto 24px; }
.guest-eyebrow { font-size: 10px; line-height: 1.5; letter-spacing: 1.8px; text-transform: uppercase; color: #d5c8ac; }
.guest-title { font: 500 31px/1.16 Georgia, 'Times New Roman', serif; letter-spacing: -.6px; margin: 5px 0 16px; text-wrap: balance; }
.guest-title.compact { font-size: 28px; }
.guest-subtitle { color: var(--ink-dim); font-size: 14px; line-height: 1.5; margin: 0 auto 18px; max-width: 310px; }
.guest-rule { display: flex; align-items: center; justify-content: center; gap: 12px; color: #dcb978; margin: 17px 0; font-size: 12px; line-height: 1.4; }
.guest-rule::before, .guest-rule::after { content: ''; height: 1px; width: 40px; flex: 0 1 40px; background: linear-gradient(90deg, transparent, #cfa86785); }
.guest-rule::after { transform: rotate(180deg); }
.guest-games { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 10px 0 8px; }
.guest-games img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 3px 4px #0009); }
.guest-scene .btn { min-height: 48px; border-radius: 4px; }
.guest-scene .btn.primary, .guest-scene .btn.primary:hover:not(:disabled) {
  border: 1px solid #6597ba; color: #f8fbff; min-height: 54px;
  background: linear-gradient(180deg, #2e638d, #204a6c);
  box-shadow: inset 0 1px 0 #bde7ff30, 0 3px 0 #060d15;
  text-shadow: 0 1px 2px #0009;
}
.guest-scene .btn.primary:active { transform: translateY(2px); }
.guest-scene .btn.ghost, .guest-scene .btn.ghost:hover:not(:disabled) { color: #e8cd97; background: #142230; border: 1px solid #9d805166; box-shadow: inset 0 1px 0 #ead2a40d; }
.guest-scene .btn.link, .guest-scene .btn.link:hover:not(:disabled) { color: #e8cd97; background: transparent; box-shadow: none; border: 0; font-size: 13px; white-space: normal; }
.guest-scene button:focus-visible, .guest-scene input:focus-visible { outline: 2px solid #b9e3ff; outline-offset: 3px; }
.guest-scene .input { min-height: 49px; font-size: 16px; border-radius: 4px; color: var(--ink); border-color: #6e7e9288; background: #081422f5; box-shadow: inset 0 3px 7px #0005; }
.guest-scene .input::placeholder { color: #a5adba; opacity: 1; }
.guest-scene .field { text-align: left; }
.guest-scene .field > label { font-size: 13px; color: #dbd4c7; }
.guest-scene .tiny { font-size: 12px; line-height: 1.5; }
.guest-scene .form-error { text-align: left; color: #ffbcac; }
.guest-scene .form-error:empty { min-height: 0; padding: 0; }
.guest-scene .col { gap: 12px; }
.guest-back { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 24px; padding: 10px 4px; z-index: 1; }
.guest-hint { color: var(--ink-faint); font-size: 12px; line-height: 1.5; margin: 13px 0; }
.guest-menu-secondary { margin-top: 12px; }
.guest-home > .btn.link { margin-top: 8px; }
.guest-form { margin-top: 22px; }
.guest-code-label { display: block; margin-top: 24px; color: var(--ink-dim); font-size: 13px; }
.guest-scene .input.guest-code {
  display: block; width: 238px; max-width: 100%; min-height: 67px; margin: 20px auto 22px;
  border: 0; border-top: 1px solid #cbb17670; border-bottom: 1px solid #cbb17670; border-radius: 0;
  background: linear-gradient(90deg, transparent, #091525c0 15%, #091525c0 85%, transparent);
  font: 500 31px/1.5 ui-monospace, monospace; letter-spacing: 22px; text-indent: 22px; text-align: center;
  padding: 0; box-shadow: none; color: #fff5da; text-transform: uppercase;
}
.guest-steps { margin: 20px 0 14px; color: #dcb978; font-size: 12px; line-height: 1.5; }
.guest-test { margin-top: 16px; }
.guest-scene .inv-card { width: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; }
.guest-scene .inv-title { color: #dcb978; font-size: 12px; letter-spacing: 1px; }
.guest-scene .inv-head { flex-direction: column; text-align: center; gap: 10px; }
.guest-scene .inv-head > .ico-img { width: 72px; height: 72px; }
.guest-scene .inv-head b { font: 500 28px/1.2 Georgia, serif; }
.guest-scene .inv-rows { padding: 0; background: transparent; border-radius: 0; gap: 0; }
.guest-scene .inv-row { padding: 12px 0; border-bottom: 1px solid #cab78e33; flex-wrap: wrap; overflow-wrap: anywhere; }
.guest-scene .inv-card .empty { padding: 20px 0; }
.guest-scene .inv-code-big { color: #edcf93; }
/* Ожидание: прежние действия/копирование и серверные события остаются на своих местах. */
.guest-room .topbar { background: #0c1622; }
.guest-room .rm-bottom { background: #0c1622; }
.guest-room .rm-codebox { background: transparent; border: 0; padding-top: 0; }
.guest-room .rm-seats { gap: 22px; padding: 14px 0; }
.guest-room .rm-seat .avatar { border: 2px solid #ae9666; box-shadow: 0 0 0 3px #071421, 0 0 0 4px #a6884b55; background-color: #142b42; }
.guest-room .rm-seat.empty .avatar { border-color: #586276; animation: none; }
.guest-room .rm-seat .tag, .guest-room .rm-wrap .faint, .guest-room .rm-bottom .faint { color: #bcc5d0; }
.guest-room .rm-game b { font: 500 28px/1.2 Georgia, serif; }
@media (max-width: 360px) {
  .guest-content { padding-left: 24px; padding-right: 24px; }
  .guest-emblem { width: 180px; }
  .guest-title { font-size: 26px; }
  .guest-games { gap: 10px; }
  .guest-games img { width: 32px; height: 32px; }
  .guest-eyebrow { font-size: 10px; letter-spacing: 1px; }
}
@media (max-height: 700px) {
  .guest-emblem { width: 150px; margin-top: 12px; margin-bottom: 8px; }
  .guest-emblem.compact { width: 72px; margin-top: 32px; margin-bottom: 20px; }
  .guest-content { padding-top: calc(24px + env(safe-area-inset-top)); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@media (max-height: 620px) {
  .guest-home .guest-emblem { width: 120px; margin: 8px auto; }
  .guest-home .guest-games { margin-top: 8px; margin-bottom: 0; }
  .guest-home .guest-rule { margin: 12px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .guest-scene *, .guest-room * { animation: none !important; transition: none !important; }
}
