/* SLOT UNIVERSITY: what the real pages add to the approved look.
   su.css is the mock-up's own sheet, copied unchanged. This sheet is loaded after it:
   seven stops, real pictures, every waiting and failed state, STYLE, sign-in. Same colours, type and spacing. */

/* the line between two stops is lit only when both ends are reached */
.steps li + li.is-done::before, .steps li + li.is-now::before { background: var(--line); }
.steps li.is-done + li.is-done::before, .steps li.is-done + li.is-now::before { background: var(--done); }

/* until the machine has arrived: no half-drawn panel, no lit button */
body[data-page="maths"]:not(.is-ready) #body, body[data-page="symbols"]:not(.is-ready) #body { visibility: hidden; }
body:not(.is-ready) .act a.btn-main { background: var(--ink-3); border-color: var(--ink-3); color: var(--mute); box-shadow: none; pointer-events: none; }

/* ---------- small shared things ---------- */
.linklike { background: none; border: 0; cursor: pointer; font-family: inherit; }
.top-link.linklike { border-left: 0; padding-left: 0; }
.saved:empty { display: none; }
.saved.is-off { color: var(--ember); }
.ghost { display: block; background: var(--ink-2); border-radius: var(--r-pic); }
.btn-label { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn:disabled { cursor: default; color: var(--mute); }
.btn:not(.btn-main):disabled:hover { border-color: var(--line); }
body.is-away { padding-top: 42px; }
a.btn.btn-main.is-off { background: var(--ink-3); border-color: var(--ink-3); color: var(--mute); box-shadow: none; pointer-events: none; }

.away {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding: 10px 16px; text-align: center;
  background: var(--ember); color: #2a0d05; font-weight: 700; font-size: 14.5px;
}
.toast {
  position: fixed; left: 50%; bottom: 100px; z-index: 40; transform: translateX(-50%);
  width: max-content; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: var(--r-ctl);
  background: #2a1626; border: 1px solid rgba(255, 122, 89, .65); color: var(--light); font-size: 15px; font-weight: 600;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}
.notice {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 14px; padding: 12px 16px;
  border-radius: var(--r-ctl); border: 1px solid rgba(255, 122, 89, .55); background: rgba(255, 122, 89, .08);
  color: var(--light); font-size: 15.5px; font-weight: 600;
}
.notice .btn { margin-left: auto; min-height: 42px; }
.empty {
  display: grid; justify-items: center; gap: 8px; padding: 46px 20px; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--r-pic); color: var(--dim); font-size: 16px;
}
.empty b { font: 800 32px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--light); }
.soon {
  display: inline-flex; align-items: center; font: 600 12.5px/1 var(--body); letter-spacing: 0; text-transform: none;
  color: var(--dim); border: 1px dashed var(--mute); border-radius: 999px; padding: 5px 11px; white-space: nowrap; font-style: normal;
}
.wait-words { position: relative; z-index: 1; display: block; text-align: center; padding: 0 16px; }
.wait-words b { display: block; font: 800 24px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--light); }
.wait-words span { display: block; margin-top: 7px; color: var(--dim); font-size: 14.5px; font-weight: 600; }

/* ---------- sign-in ---------- */
.signin { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 20px; padding-top: 24px; padding-bottom: 24px; text-align: center; }
.signin .crest svg { width: 70px; height: 80px; }
.signin h1 { font-size: 66px; }
.signin-line { font-size: 20px; font-weight: 600; }
.signin-why { max-width: 420px; color: var(--ember); font-weight: 600; font-size: 16px; }
.signin-google { min-height: 44px; }

/* ---------- HOME: real machines ---------- */
.machine .shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(165deg, #2a3478, #10163a); }
.machine .shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.machine .shot::after { content: ""; position: absolute; inset: 35% 0 0 0; background: linear-gradient(to top, rgba(4, 6, 20, .9), transparent); }
.machine .shot.is-blank::after { display: none; }
.machine .shot .p-text { z-index: 1; }
.machine .shot.is-blank .p-name { color: var(--dim); }
.machine-ghost { aspect-ratio: 16 / 14; }

/* ---------- START ---------- */
.base-ghost { aspect-ratio: 16 / 11; }
.train.is-soon .field, .train.is-soon .btn { opacity: .6; }
.train.is-soon input:disabled { cursor: default; }
.train-head b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.insp-more { display: flex; align-items: center; gap: 16px; margin-top: 10px; min-height: 28px; }
.insp-more .linkbtn { padding: 0; font-size: 14.5px; }
.own { display: inline-flex; align-items: center; gap: 9px; color: var(--light); font-size: 15px; font-weight: 600; cursor: pointer; }
.own input { width: 20px; height: 20px; margin: 0; accent-color: var(--bulb); }
.upload-art { display: grid; place-items: center; }
.field-note { margin-top: 8px; color: var(--ember); font-size: 14px; font-weight: 600; }

/* the idea pictures: real landscape game screens, large enough to judge */
.ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ideas + .ideas { margin-top: 20px; }
.ideas[hidden] + .ideas { margin-top: 0; }
.idea-card { position: relative; background: var(--ink-2); border-radius: var(--r-pic); outline: 3px solid transparent; outline-offset: 3px; }
.idea-card.is-on { outline-color: var(--bulb); }
.idea-pic {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; border: 0; overflow: hidden;
  background: var(--ink-3); border-radius: var(--r-pic) var(--r-pic) 0 0; cursor: zoom-in;
}
.idea-pic img { width: 100%; height: 100%; object-fit: cover; }
.zoom { position: absolute; left: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(4, 6, 20, .62); color: #fff; }
.zoom svg { width: 17px; height: 17px; }
.idea-cap { display: flex; align-items: center; gap: 14px; padding: 13px 14px 15px 16px; }
.idea-text { flex: 1; min-width: 0; }
.idea-title { display: block; font: 900 30px/.94 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.idea-line { display: block; margin-top: 6px; color: var(--dim); font-size: 14.5px; line-height: 1.3; }
.idea-pick { flex: none; min-width: 98px; }
.idea-card.is-on .idea-pick { border-color: var(--bulb); color: var(--bulb); }
.idea-card.is-waiting .idea-pic, .idea-card.is-failed .idea-pic {
  display: grid; place-items: center; align-content: center; gap: 14px; cursor: default; border-radius: var(--r-pic); background: var(--ink-2);
}
.idea-card.is-failed .idea-pic { background: none; border: 1px dashed var(--ember); }
.idea-card.is-waiting, .idea-card.is-failed { background: none; }
.ideas-foot { display: flex; justify-content: center; margin-top: 20px; }

/* a picture opened bigger */
dialog.viewer {
  width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: #060818; flex-direction: column;
}
dialog.viewer[open] { display: flex; }
.viewer-top { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px; }
.viewer-top b { flex: 1; min-width: 0; font: 800 25px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-top .btn { min-height: 44px; padding: 0 16px; }
.viewer-pic { position: relative; flex: 1; min-height: 0; }
.viewer-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.viewer-foot { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 10px 16px; }
.viewer-foot span { flex: 1; min-width: 0; color: var(--dim); font-size: 14.5px; line-height: 1.3; }
.viewer-foot .btn.is-on { border-color: var(--bulb); color: var(--bulb); }

/* ---------- MATHS: four settings, and the model that does not fit ---------- */
.model.is-off { cursor: default; }
.model.is-off img { opacity: .32; filter: saturate(.3); }
.model.is-off .model-body b, .model.is-off .model-feel { color: var(--mute); }
.model-goes { display: block; margin-top: 7px; color: var(--dim); font-size: 14px; font-weight: 600; line-height: 1.3; }
.model.pos-mafia img { object-position: 50% 12%; }
.model.pos-heist img { object-position: 0% 0%; }
.feel-line:empty { display: none; }
.figs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fig.is-open .v { white-space: normal; }

/* ---------- STYLE: six large choices, type and colour only ---------- */
.styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.style-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 232px; padding: 22px 24px 22px;
  border: 0; border-radius: var(--r-pic); overflow: hidden; text-align: left; cursor: pointer; container-type: inline-size;
  outline: 3px solid transparent; outline-offset: 3px; background: var(--ink-2); color: #fff;
}
.style-card.is-on { outline-color: var(--bulb); }
.style-card b { display: block; font: 900 clamp(34px, 19cqw, 76px)/.88 var(--display); letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; }
.style-line { display: block; margin-top: 12px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.style-ghost { min-height: 232px; }
.s-cinematic { background: radial-gradient(120% 90% at 78% 8%, #b9732c 0, rgba(185, 115, 44, 0) 46%), linear-gradient(170deg, #12384a, #05080f 78%); color: #f6e7c8; }
.s-cinematic b { font-weight: 700; letter-spacing: .1em; font-size: clamp(28px, 15cqw, 60px); }
.s-painted { background: linear-gradient(135deg, #9a6424 0%, #6b2c1c 44%, #23402e 100%); color: #f7dfae; }
.s-painted b { text-shadow: 0 .05em 0 rgba(40, 14, 4, .55); }
.s-neon { background: linear-gradient(165deg, #25084a, #070313 80%); color: #fff; }
.s-neon b { text-shadow: 0 0 .12em #ff3df0, 0 0 .42em #ff3df0, 0 0 .9em rgba(255, 61, 240, .55); }
.s-neon .style-line { color: #6ff3ff; }
.s-cartoon { background: linear-gradient(170deg, #35b9ff, #1763dc); color: #fff; }
.s-cartoon b { text-shadow: .05em .06em 0 #0b1a4a; transform: rotate(-2.5deg); transform-origin: 0 100%; }
.s-comic { background: #f2ead6; color: #14131a; }
.s-comic b { text-shadow: .05em .05em 0 #e63a2e; }
.s-anime { background: linear-gradient(160deg, #ff9ccd, #92b6ff 78%); color: #fff; }
.s-anime b { font-weight: 800; letter-spacing: .04em; text-shadow: 0 .04em .16em rgba(60, 40, 120, .45); }
.s-anime .style-line { color: #2a1f5c; }

/* ---------- SYMBOLS: real pictures ---------- */
.symtile {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 13%;
  background: radial-gradient(circle at 50% 34%, #27317a 0, #121840 72%); border: 1px solid var(--line);
  outline: 3px solid transparent; outline-offset: 3px;
}
.symtile img { width: 100%; height: 100%; object-fit: contain; }
.sym.is-on .symtile { outline-color: var(--bulb); }
.sym.is-planned .symtile, .sym.is-failed .symtile { background: none; border: 1px dashed var(--line); }
.sym.is-failed .symtile { border-color: var(--ember); }
.sym.is-making .symtile img { opacity: .22; }
.sym.is-making .sym-name { color: var(--bulb); }
.sym-fail { position: absolute; left: 0; right: 0; top: 22%; text-align: center; font-size: 14px; font-weight: 700; color: var(--ember); }
.sym-retry { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; }
.sym-retry button {
  flex: 1; min-height: 34px; padding: 0 4px; border-radius: 8px; cursor: pointer; white-space: nowrap;
  background: rgba(8, 11, 34, .92); color: var(--light); font-size: 13px; font-weight: 600; border: 1px solid rgba(255, 255, 255, .24);
}
.sym-retry button:hover { background: var(--light); color: var(--ink); }
.syms.n5 { --n: 5; }
.sym-group + .sym-group { margin-top: 26px; }
.source-real { margin: 0; }
.source-real img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-pic); }
.source-real figcaption { margin-top: 10px; font: 800 26px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.dlg-row .symtile { width: 96px; flex: none; }

/* ---------- "Coming next" pages ---------- */
.film-soon { cursor: default; }
.film-groups .film-group.n1 { --n: 1; } .film-groups .film-group.n2 { --n: 2; } .film-groups .film-group.n3 { --n: 3; }
.film-groups .film-group.n4 { --n: 4; } .film-groups .film-group.n5 { --n: 5; } .film-groups .film-group.n6 { --n: 6; } .film-groups .film-group.n7 { --n: 7; }
.films.n1 { --n: 1; } .films.n2 { --n: 2; } .films.n3 { --n: 3; } .films.n4 { --n: 4; } .films.n5 { --n: 5; } .films.n6 { --n: 6; } .films.n7 { --n: 7; }
.btn.btn-main.btn-build:disabled { box-shadow: none; }
.sum-pic.is-word { display: grid; place-items: center; container-type: inline-size; }
.sum-pic.is-word b { font: 900 clamp(20px, 15cqw, 44px)/.9 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.sum-pic.is-none { display: grid; place-items: center; background: var(--ink-3); color: var(--mute); font-size: 14px; font-weight: 600; }
.sum-pic.is-figs .is-wide { grid-column: 1 / -1; font: 600 15px/1.3 var(--body); color: var(--mute); }
.sum-pic .symtile { border-radius: 16%; }
.game.is-soon { background: var(--ink-2); }
.game.is-soon::before { display: none; }
.reels-soon { width: min(100%, 428px); aspect-ratio: 5 / 4; border-radius: 16px; border: 1px dashed var(--line); }
.game.is-soon .game-title { color: var(--dim); border-color: var(--line); background: none; }
.game.is-soon .game-veil { background: none; }
.side-card textarea:disabled { opacity: .6; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  /* seven stops on one line */
  .steps li + li::before { top: 14px; right: calc(50% + 19px); width: calc(100% - 38px); }
  .node { width: 30px; height: 30px; font-size: 16px; }
  .top-link.linklike { border: 0; padding-left: 0; }

  .signin h1 { font-size: 44px; }
  .signin-line { font-size: 18px; }
  .toast { bottom: 92px; }
  .empty { padding: 34px 16px; }
  .empty b { font-size: 27px; }

  .machine .shot { aspect-ratio: 358 / 170; }
  .machine-ghost { aspect-ratio: 358 / 290; }
  .base-ghost { aspect-ratio: 2.15 / 1; }

  .ideas { grid-template-columns: 1fr; gap: 14px; }
  .ideas + .ideas { margin-top: 14px; }
  .idea-title { font-size: 27px; }
  .idea-cap { gap: 12px; padding: 12px 12px 14px 14px; }
  .idea-pick { min-width: 88px; padding: 0 14px; }
  .ideas-foot .btn { width: 100%; }
  .viewer-top b { font-size: 23px; }
}
/* a phone held upright: the opened picture fills the height and is dragged sideways */
@media (max-width: 760px) and (orientation: portrait) {
  .viewer-pic { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
  .viewer-pic img { position: static; height: 100%; width: auto; max-width: none; object-fit: cover; }
}
@media (max-width: 760px) {
  .seg button { font-size: 14.5px; gap: 6px; padding: 0 2px; }
  .model-goes { font-size: 13.5px; margin-top: 4px; }

  .styles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .style-card { min-height: 146px; padding: 14px 14px 14px; }
  .style-ghost { min-height: 146px; }
  .style-card b { font-size: clamp(26px, 20cqw, 44px); }
  .s-cinematic b { font-size: clamp(22px, 16.5cqw, 40px); letter-spacing: .08em; }
  .style-line { font-size: 13.5px; margin-top: 8px; }

  .sym-group + .sym-group { margin-top: 20px; }
  .syms.n5 { --n: 3; }
  .sym-fail { top: 16%; font-size: 13px; }
  .sym-retry { left: 4px; right: 4px; bottom: 4px; }
  .sym-retry button { min-height: 32px; font-size: 12.5px; }

  .film-groups .film-group { grid-column: auto; }
  .films.n1, .films.n2, .films.n3, .films.n4, .films.n5, .films.n6, .films.n7 { --n: 3; }
  .sum-pic.is-word b { font-size: 22px; }
}
