/* ─────────────────────────────────────────────────────────────────────
   Good Taste — coming soon ("Niluluto pa.") + the Saluhin! game
   Drawn in the logo's own language: red line art on white paper.
   Markup: resources/views/coming-soon.blade.php · Game: public/js/gt-saluhin.js
   ───────────────────────────────────────────────────────────────────── */
:root{
  --red:#e81012;          /* the logo red */
  --red-deep:#a50d12;     /* text-safe red on white */
  --ink:#141414;
  --paper:#ffffff;
  --smoke:#5f5f5f;
  --rule:#f1d4d4;
  --disp:'Anton','Arial Narrow','Roboto Condensed',Impact,sans-serif;
  --body:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){ html{scroll-behavior:auto} }
#saluhin{scroll-margin-top:12px}
html,body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);
  font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit}
::selection{background:var(--red);color:#fff}

.soon{min-height:100vh;min-height:100svh;display:flex;flex-direction:column}

/* ─── header ─────────────────────────────────────────────────────────── */
.soon-top,.soon-main,.soon-foot{width:100%;max-width:1180px;margin-left:auto;margin-right:auto}
.soon-top{padding:20px clamp(18px,5vw,56px) 0}
.soon-logo{width:clamp(190px,30vw,300px);height:auto}

/* ─── main: copy + game ─────────────────────────────────────────────── */
.soon-main{flex:1;display:grid;gap:28px;
  padding:18px clamp(18px,5vw,56px) 36px;align-items:center}
@media (min-width:900px){
  .soon-main{grid-template-columns:minmax(0,1fr) minmax(360px,440px);gap:clamp(40px,6vw,88px)}
}

.soon-h{margin:0;font-family:var(--disp);font-weight:400;text-transform:uppercase;
  color:var(--red);line-height:.86;letter-spacing:.005em;
  font-size:clamp(4.1rem,17vw,9.6rem)}
@media (min-width:900px){ .soon-h{font-size:clamp(4.6rem,7.4vw,8.2rem)} }
.soon-line{margin:18px 0 0;max-width:30rem;font-size:clamp(1.05rem,1.6vw,1.22rem);
  font-weight:500;line-height:1.5}

.soon-facts{margin:28px 0 0;padding:0;max-width:30rem;border-top:2px solid var(--red)}
.soon-facts > div{display:grid;grid-template-columns:76px 1fr;gap:12px;padding:11px 0;
  border-bottom:1px solid var(--rule)}
.soon-facts dt{font-weight:800;color:var(--red-deep);font-size:.92rem}
.soon-facts dd{margin:0;font-size:.95rem}

.soon-links{display:flex;flex-wrap:wrap;gap:8px 18px;margin:16px 0 0;font-weight:700}
.soon-links a{color:var(--red-deep);text-underline-offset:3px}

/* phones: the game sits below the fold, so point to it */
.soon-nudge{display:inline-block;margin:24px 0 0;font-weight:800;color:var(--red-deep);
  text-underline-offset:4px}
@media (min-width:900px){ .soon-nudge{display:none} }

/* ─── footer ─────────────────────────────────────────────────────────── */
.soon-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 20px;
  padding:16px clamp(18px,5vw,56px) calc(18px + env(safe-area-inset-bottom));
  font-size:.8rem;color:var(--smoke);position:relative}
.soon-foot::before{content:"";position:absolute;top:0;left:50%;width:100vw;transform:translateX(-50%);
  border-top:1px solid var(--rule)}
.soon-foot a{color:var(--smoke)}

/* ════════════════════════════════════════════════════════════════════
   Saluhin! — the game card
   ════════════════════════════════════════════════════════════════════ */
.soon-game{width:100%;max-width:520px;justify-self:center}
.sal{position:relative;width:100%;height:min(74svh,640px);min-height:440px;
  border:3px solid var(--red);border-radius:22px;overflow:hidden;background:var(--paper);
  -webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
@media (min-width:900px){ .sal{height:min(80vh,680px)} }
.sal-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;
  touch-action:none;cursor:pointer}
.sal.is-playing .sal-canvas{cursor:ew-resize}

/* score, lives, pause */
.sal-hud{position:absolute;left:0;right:0;top:0;z-index:2;display:flex;align-items:flex-start;
  justify-content:space-between;gap:10px;padding:12px 14px;pointer-events:none}
.sal-score b[data-score]{display:block;font-family:var(--disp);font-weight:400;font-size:2.3rem;
  line-height:1;color:var(--red)}
.sal-score span{display:block;margin-top:2px;font-size:.74rem;font-weight:700;color:var(--smoke)}
.sal-score span b{color:var(--ink)}
.sal-mult{align-self:center;font-family:var(--disp);font-size:1.4rem;color:var(--paper);
  background:var(--red);border-radius:999px;padding:2px 12px;line-height:1.3}
.sal-mult[hidden]{display:none}
.sal-right{display:flex;align-items:center;gap:8px}
.sal-lives{display:flex;gap:4px}
.sal-lives svg{width:22px;height:22px;fill:var(--red);transition:transform .25s ease,opacity .25s ease}
.sal-lives svg.is-lost{fill:none;stroke:var(--red);stroke-width:1.6;opacity:.5;transform:scale(.85)}
.sal-pause{pointer-events:auto;width:40px;height:40px;border-radius:999px;border:2px solid var(--red);
  background:var(--paper);color:var(--red);display:none;align-items:center;justify-content:center;
  cursor:pointer;padding:0}
.sal-pause svg{width:16px;height:16px;fill:currentColor}
.sal.is-playing .sal-pause{display:inline-flex}

/* start / paused / game-over cards */
.sal-screen{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;
  justify-content:center;text-align:center;padding:24px 22px;gap:10px;
  background:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.sal-screen[hidden]{display:none}
.sal-chef{width:78px;height:auto}
.sal-title{margin:0;font-family:var(--disp);font-weight:400;text-transform:uppercase;color:var(--red);
  font-size:clamp(2.6rem,11vw,3.4rem);line-height:.95}
.sal-rules{margin:0;max-width:22rem;font-weight:500;font-size:.98rem}
.sal-legend{list-style:none;margin:6px 0 4px;padding:0;display:grid;grid-template-columns:1fr 1fr;
  gap:4px 14px;width:100%;max-width:330px;text-align:left}
.sal-legend li{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:8px;
  font-size:.84rem;font-weight:700}
.sal-legend img{width:34px;height:34px}
.sal-legend b{font-family:var(--disp);font-weight:400;font-size:1rem;color:var(--red)}
.sal-legend .is-bad b{color:var(--ink)}
.sal-btn{margin-top:6px;font-family:var(--body);font-weight:800;font-size:1.05rem;color:#fff;
  background:var(--red);border:0;border-radius:999px;padding:15px 44px;cursor:pointer;
  box-shadow:0 6px 0 var(--red-deep);transition:transform .08s ease,box-shadow .08s ease}
.sal-btn:hover{background:#d50e10}
.sal-btn:active{transform:translateY(4px);box-shadow:0 2px 0 var(--red-deep)}
.sal-hint{margin:6px 0 0;font-size:.8rem;color:var(--smoke)}
.sal-hint .for-mouse{display:none}
@media (hover:hover) and (pointer:fine){
  .sal-hint .for-touch{display:none}
  .sal-hint .for-mouse{display:inline}
}
.sal-final{margin:0;font-weight:700}
.sal-final b{display:block;font-family:var(--disp);font-weight:400;font-size:4.2rem;line-height:1;
  color:var(--ink)}
.sal-bestline{margin:0;font-size:.88rem;color:var(--smoke)}
.sal-bestline b{color:var(--ink)}

/* short phones: tighten the start card */
@media (max-height:700px){
  .sal-chef{display:none}
  .sal-legend li{font-size:.78rem}
  .sal-legend img{width:28px;height:28px}
}

.sal button:focus-visible,.soon a:focus-visible{outline:3px solid var(--ink);outline-offset:3px}

@media (prefers-reduced-motion:reduce){
  .sal-btn,.sal-lives svg{transition:none}
}
