:root { --forest:#485935; --sage:#93A267; --pale:#CADBB7; --sky:#9FBAD6; --peony:#F7DDD5; --rose:#D8A4AF; --lav:#CCC3D1; --ink:#1F2A3A; --rust:#8B3E12; }
  * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  html, body { margin: 0; height: 100%; background: #CFE6F5; overflow: hidden; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); touch-action: manipulation; }
  #game { position: fixed; inset: 0; display: block; width: 100%; height: 100%; }
  .hud { position: fixed; top: max(12px, env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; z-index: 5; }
  .pill { background: rgba(255,255,255,.88); border-radius: 999px; padding: 8px 14px; font-weight: 800; box-shadow: 0 4px 14px rgba(31,42,58,.12); display: flex; gap: 8px; align-items: center; font-size: 15px; }
  .pill small { font-weight: 600; opacity: .6; font-size: 12px; }
  .hud button { pointer-events: auto; border: 0; background: rgba(255,255,255,.88); width: 40px; height: 40px; border-radius: 50%; font-size: 18px; box-shadow: 0 4px 14px rgba(31,42,58,.12); cursor: pointer; }
  .combo { color: var(--rust); }
  /* Bottom: what to say */
  .say { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom)); width: min(460px, calc(100% - 24px)); background: #fff; border-radius: 26px; padding: 14px 16px 12px; box-shadow: 0 10px 30px rgba(31,42,58,.18); z-index: 5; display: none; }
  .say.on { display: block; }
  .say .row { display: flex; align-items: center; gap: 12px; }
  .say .emo { font-size: 38px; line-height: 1; width: 48px; text-align: center; }
  .say .word { font-family: 'DynaPuff', system-ui; font-weight: 700; font-size: 26px; color: var(--forest); line-height: 1.15; }
  .say .mean { font-size: 13px; opacity: .65; margin-top: 2px; }
  .say .tools { display: flex; gap: 8px; margin-left: auto; }
  .say .tools button { border: 0; border-radius: 14px; background: #EEF3E6; width: 44px; height: 44px; font-size: 19px; cursor: pointer; }
  .mic { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; padding-top: 10px; border-top: 1px solid #EEF0EA; min-height: 30px; }
  .dot { width: 12px; height: 12px; border-radius: 50%; background: #C25A68; box-shadow: 0 0 0 0 rgba(194,90,104,.5); animation: pulse 1.4s infinite; flex: none; }
  .dot.off { background: #bbb; animation: none; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(194,90,104,.5); } 70% { box-shadow: 0 0 0 10px rgba(194,90,104,0); } 100% { box-shadow: 0 0 0 0 rgba(194,90,104,0); } }
  .heard { opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .heard b { color: var(--forest); opacity: 1; }
  .hint { color: var(--rust); font-weight: 700; }
  /* Screens */
  .screen { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 10; padding: 20px; background: rgba(207,230,245,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
  .screen.on { display: flex; }
  .card { background: #fff; border-radius: 30px; padding: 26px 22px 22px; width: min(420px, 100%); max-height: calc(100dvh - 40px); overflow: auto; box-shadow: 0 20px 50px rgba(31,42,58,.22); text-align: center; position: relative; }
  h1 { font-family: 'DynaPuff', system-ui; font-weight: 700; font-size: 44px; color: var(--forest); margin: 4px 0 2px; letter-spacing: -.5px; }
  h2 { font-family: 'DynaPuff', system-ui; font-weight: 700; font-size: 30px; color: var(--forest); margin: 4px 0 6px; line-height: 1.1; }
  .tag { font-size: 16px; margin: 0 0 16px; opacity: .8; }
  .kicker { display: inline-block; background: var(--peony); color: #8a4a55; font-weight: 800; font-size: 12px; padding: 5px 12px; border-radius: 999px; letter-spacing: .4px; text-transform: uppercase; }
  .langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 8px 0 14px; }
  .langs button { border: 2px solid #E7ECDF; background: #FAFBF7; border-radius: 14px; padding: 8px 2px 6px; font: inherit; font-weight: 700; font-size: 12px; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; }
  .langs button img { width: 30px; height: 22px; border-radius: 5px; object-fit: cover; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
  .langs button.sel { border-color: var(--forest); background: #EEF3E6; }
  .how { display: grid; gap: 8px; text-align: left; margin: 0 0 18px; }
  .how div { display: flex; gap: 10px; align-items: center; background: #F6F8F2; border-radius: 14px; padding: 9px 12px; font-size: 14px; }
  .how span { font-size: 22px; }
  .btn { border: 0; background: var(--forest); color: #fff; font: inherit; font-weight: 800; font-size: 18px; border-radius: 999px; padding: 15px 28px; width: 100%; cursor: pointer; box-shadow: 0 6px 0 #33401F; transition: transform .1s; }
  .btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #33401F; }
  .btn.soft { background: var(--sky); color: var(--ink); box-shadow: 0 6px 0 #7F9BB8; margin-top: 10px; }
  .btn.wa { background: #1E7A40; box-shadow: 0 6px 0 #145a2e; margin-top: 10px; }
  .uil { position: absolute; top: 14px; right: 14px; font-size: 13px; font-weight: 800; }
  .uil a { color: #9aa29a; text-decoration: none; padding: 2px 4px; cursor: pointer; }
  .uil a.on { color: var(--forest); }
  .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; margin: 12px 0 14px; }
  .stats div { background: #F6F8F2; border-radius: 16px; padding: 10px 6px; }
  .stats b { display: block; font-size: 22px; font-family: 'DynaPuff', system-ui; color: var(--forest); }
  .stats small { font-size: 12px; opacity: .7; }
  .prize { background: linear-gradient(135deg, #FDF1EC, #F7DDD5); border: 2px dashed var(--rose); border-radius: 20px; padding: 14px; margin: 6px 0 4px; }
  .prize b { font-family: 'DynaPuff', system-ui; font-size: 20px; color: #8a4a55; display: block; }
  .prize small { font-size: 12px; opacity: .7; }
  .warn { background: #FFF4E5; border-radius: 14px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
  .count { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 8; pointer-events: none; font-family: 'DynaPuff', system-ui; font-size: 110px; color: #fff; text-shadow: 0 6px 0 var(--forest), 0 10px 30px rgba(0,0,0,.2); }
  .count.on { display: flex; }
  .foot { font-size: 12px; opacity: .55; margin-top: 12px; }

/* page chrome + flags (27 Oct 2026) */
.home { position: absolute; top: 14px; left: 16px; }
.home img { height: 30px; width: auto; display: block; }
.card { padding-top: 58px; }
.bunting { display: flex; justify-content: center; gap: 3px; margin: 0 -4px 12px; padding-top: 2px; border-top: 2px solid #D8CBBD; }
.bunting img { flex: 1 1 0; min-width: 0; max-width: 22px; height: 24px; object-fit: cover; clip-path: polygon(0 0, 100% 0, 50% 100%); animation: flutter 2.6s ease-in-out infinite; transform-origin: top center; }
.bunting img:nth-child(odd) { animation-delay: -1.3s; }
.bunting img:nth-child(3n) { animation-duration: 3.1s; }
@keyframes flutter { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.pick { font-weight: 800; font-size: 13px; margin: 0; text-align: left; color: var(--forest); }
.say .roman { font-size: 14px; font-style: italic; color: #6B7A5A; margin-top: 1px; }
.say .roman:empty { display: none; }
.prize .cta { display: block; margin-top: 12px; background: var(--sky); color: var(--ink); box-shadow: 0 6px 0 #7F9BB8; text-decoration: none; font-size: 16px; padding: 13px; }
#playBtn { position: sticky; bottom: 0; z-index: 2; }
