body, html { 
      margin: 0; padding: 0; width: 100%; height: 100%; 
      overflow: hidden; background-color: white; font-family: sans-serif;
    }
    #drawCanvas { display: block; touch-action: none; cursor: crosshair; }
    #draw-area-frame {
      position: fixed; left: 24px; top: 84px; right: 24px; bottom: 96px;
      border: 3px solid rgba(32, 33, 36, 0.78); border-radius: 12px;
      box-shadow: inset 0 0 0 2px rgba(255,255,255,0.72), 0 8px 22px rgba(0,0,0,0.08);
      pointer-events: none; z-index: 2; box-sizing: border-box;
    }
    .ui-layer {
      position: absolute; top: 0; left: 0; width: 100%; height: 100%;
      pointer-events: none; display: flex; flex-direction: column; align-items: center;
    }
    .stats-bar {
      width: 100%; display: flex; justify-content: space-between;
      padding: 8px 18px; box-sizing: border-box; font-size: 16px; font-weight: bold;
    }
    #target-display {
      position: absolute; top: 34px; left: 50%; transform: translateX(-50%);
      max-width: calc(100vw - 48px); box-sizing: border-box; text-align: center;
      font-size: 20px; font-weight: bold; color: #db4437;
      background: rgba(255, 255, 255, 0.9); padding: 7px 18px; border-radius: 24px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    #ai-guess {
      position: absolute; left: 18px; right: auto; top: auto; bottom: 22px; width: min(40vw, 520px);
      height: clamp(140px, 24vh, 220px); min-height: 0; overflow: hidden; color: #1f2933;
      background: rgba(132, 184, 228, 0.82); padding: 12px; border-radius: 8px;
      text-align: left; line-height: 1.35; box-shadow: 0 8px 26px rgba(0,0,0,0.18);
      box-sizing: border-box; display: flex; flex-direction: column; z-index: 3;
    }
    #game-hippo-back {
      position: absolute;
      right: clamp(20px, 2.5vw, 36px);
      bottom: 30px;
      z-index: 4;
      width: clamp(150px, 17vw, 190px);
      height: auto;
      display: block;
      pointer-events: none;
      filter: drop-shadow(0 10px 12px rgba(36, 49, 68, .2));
    }
    .ai-chat-title {
      flex: 0 0 auto;
      color: rgba(255,255,255,0.9); font-size: 12px; font-weight: bold;
      text-align: center; margin-bottom: 10px;
    }
    .ai-chat-list {
      flex: 1; min-height: 0; overflow: hidden; display: flex;
      flex-direction: column-reverse; justify-content: flex-start;
      padding-bottom: 0;
      box-sizing: border-box;
    }
    .ai-chat-message {
      width: fit-content; max-width: 92%; margin: 8px 0; padding: 8px 11px;
      border-radius: 16px; background: white; color: #1f2933; font-size: 13px; font-weight: bold;
      box-shadow: 0 2px 6px rgba(0,0,0,0.12); word-break: break-word;
      overflow-wrap: anywhere; text-align: left;
      animation: chatBubbleRise 240ms ease-out both;
    }
    .ai-chat-message.best {
      margin-left: auto; background: #8de055; color: #17220f;
      border-bottom-right-radius: 5px;
    }
    .ai-chat-message.other {
      border-bottom-left-radius: 5px;
    }
    .ai-chat-message.typing {
      display: inline-flex; align-items: center; gap: 4px; width: auto;
      min-width: 46px; padding: 10px 13px; border-bottom-left-radius: 5px;
    }
    .ai-typing-dot {
      width: 7px; height: 7px; border-radius: 50%; background: #6b7280;
      display: inline-block; animation: aiTypingDot 900ms ease-in-out infinite;
    }
    .ai-typing-dot:nth-child(2) {
      animation-delay: 140ms;
    }
    .ai-typing-dot:nth-child(3) {
      animation-delay: 280ms;
    }
    .ai-chat-percent {
      display: block; margin-top: 3px; font-size: 10px; opacity: 0.62;
      font-weight: bold;
    }
    .ai-chat-message.correct {
      max-width: 96%; margin-left: auto; background: #ffef5a; color: #9b1c1c;
      font-size: 22px; border-radius: 22px; border-bottom-right-radius: 6px;
      padding: 14px 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.24);
      animation: correctBubblePop 340ms cubic-bezier(.2,1.35,.25,1) both;
    }
    .ai-chat-correct-label {
      display: block; font-size: 13px; color: #db4437; margin-bottom: 3px;
    }
    @media (max-width: 760px) {
      .stats-bar { padding: 6px 10px; font-size: 14px; }
      #target-display {
        top: 28px; max-width: calc(100vw - 20px); padding: 6px 12px;
        border-radius: 18px; font-size: 18px; line-height: 1.25;
      }
      #ai-guess {
        top: auto; left: 10px; right: 10px; bottom: 12px; width: auto;
        height: clamp(130px, 20vh, 175px); min-height: 0;
      }
      #game-hippo-back {
        right: clamp(8px, 3vw, 18px);
        bottom: 30px;
        width: clamp(92px, 24vw, 125px);
      }
      .ai-chat-list {
        padding-right: clamp(86px, 23vw, 122px);
        padding-bottom: 0;
      }
    }
    @keyframes chatBubbleRise {
      from { opacity: 0; transform: translateY(22px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes aiTypingDot {
      0%, 80%, 100% { opacity: 0.36; transform: translateY(0); }
      40% { opacity: 1; transform: translateY(-4px); }
    }
    @keyframes correctBubblePop {
      0% { opacity: 0; transform: translateY(20px) scale(0.7); }
      70% { opacity: 1; transform: translateY(0) scale(1.08); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }
    .controls {
      position: absolute; bottom: 30px; width: 100%; display: flex; 
      justify-content: center; gap: 15px; pointer-events: auto; z-index: 5;
    }
    #demo-mode-banner {
      position: fixed; top: 128px; left: 30px; transform: none;
      z-index: 16; display: none; pointer-events: none;
      padding: 10px 22px; border-radius: 999px;
      background: rgba(219,68,55,0.94); color: #fff;
      font-size: clamp(22px, 3vw, 38px); font-weight: 900;
      letter-spacing: 0.04em;
      text-shadow: 0 6px 18px rgba(0,0,0,0.32);
      box-shadow: 0 10px 28px rgba(219,68,55,0.34);
    }
    #demo-guide-callout {
      position: fixed;
      z-index: 40;
      display: none;
      max-width: min(420px, calc(100vw - 24px));
      box-sizing: border-box;
      padding: 15px 22px;
      border: 3px solid rgba(255,255,255,.9);
      border-radius: 20px;
      color: #60464e;
      background: #fff2b8;
      font-size: clamp(18px, 2.5vw, 27px);
      font-weight: 900;
      text-align: center;
      line-height: 1.35;
      pointer-events: none;
      opacity: 0;
      transform: scale(.88);
      box-shadow: 0 12px 32px rgba(77,55,45,.25);
      transition: opacity .2s ease, transform .2s ease;
    }
    #demo-guide-callout.visible {
      display: block;
      opacity: 1;
      transform: scale(1);
    }
    #demo-guide-callout::before {
      content: "";
      position: absolute;
      left: var(--demo-arrow-left, 50%);
      width: 0;
      height: 0;
      transform: translateX(-50%);
      border-left: 15px solid transparent;
      border-right: 15px solid transparent;
    }
    #demo-guide-callout.arrow-up::before {
      top: -18px;
      border-bottom: 18px solid #fff2b8;
    }
    #demo-guide-callout.arrow-down::before {
      bottom: -18px;
      border-top: 18px solid #fff2b8;
    }
    .demo-guide-highlight {
      z-index: 31 !important;
      animation: demoGuidePulse 720ms ease-in-out infinite !important;
    }
    #draw-area-frame.demo-guide-highlight {
      border-color: #ef725d;
      background: rgba(255, 230, 139, .12);
    }
    body.demo-guide-active::after {
      content: "";
      position: fixed;
      inset: 0;
      z-index: 30;
      background: rgba(65, 50, 47, .18);
      pointer-events: none;
    }
    body.demo-guide-active #drawCanvas,
    body.demo-guide-active .controls button:not(#demo-start-button) {
      pointer-events: none !important;
    }
    body.demo-guide-active .controls button:disabled {
      opacity: .62;
      cursor: default;
    }
    body.demo-guide-active .controls button.demo-guide-highlight {
      opacity: 1;
    }
    body.demo-guide-active #demo-start-button {
      position: relative;
      z-index: 41;
      pointer-events: auto;
    }
    @keyframes demoGuidePulse {
      0%, 100% {
        filter: brightness(1);
        box-shadow: 0 0 0 4px rgba(255,255,255,.95), 0 0 0 9px rgba(239,114,93,.45);
      }
      50% {
        filter: brightness(1.12);
        box-shadow: 0 0 0 7px rgba(255,255,255,.95), 0 0 0 17px rgba(239,114,93,.15);
      }
    }
    #urgency-alert {
      position: fixed; inset: 0; display: none; place-items: center;
      pointer-events: none; z-index: 12; color: #fff;
      font-size: clamp(72px, 18vw, 220px); font-weight: 900;
      text-shadow: 0 10px 32px rgba(0,0,0,0.48);
    }
    .urgency-strip {
      position: fixed; background: rgba(219,68,55,0.42);
      animation: urgencyPulse 620ms ease-in-out infinite;
    }
    .urgency-strip.top {
      left: 0; top: 0; width: 100vw; height: var(--draw-top, 0px);
    }
    .urgency-strip.right {
      right: 0; top: var(--draw-top, 0px);
      width: calc(100vw - var(--draw-right, 100vw));
      height: calc(var(--draw-bottom, 100vh) - var(--draw-top, 0px));
    }
    .urgency-strip.bottom {
      left: 0; top: var(--draw-bottom, 100vh);
      width: 100vw; height: calc(100vh - var(--draw-bottom, 100vh));
    }
    .urgency-strip.left {
      left: 0; top: var(--draw-top, 0px);
      width: var(--draw-left, 0px);
      height: calc(var(--draw-bottom, 100vh) - var(--draw-top, 0px));
    }
    #urgency-alert span {
      position: fixed; left: 50%; top: calc(var(--draw-top, 120px) / 2);
      transform: translate(-50%, -50%);
      animation: urgencyPop 620ms ease-in-out infinite;
    }
    body.time-warning #timer {
      color: #db4437; animation: timerPulse 620ms ease-in-out infinite;
    }
    body.time-warning #draw-area-frame {
      border-color: rgba(219, 68, 55, 0.92);
      box-shadow: inset 0 0 0 2px rgba(255,255,255,0.72), 0 0 28px rgba(219,68,55,0.38);
    }
    body.time-warning #urgency-alert {
      display: grid;
    }
    body.time-danger #target-display {
      animation: dangerShake 260ms linear infinite;
    }
    body.time-danger .urgency-strip,
    body.time-danger #urgency-alert span {
      animation-duration: 330ms;
    }
    @keyframes timerPulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.22); }
    }
    @keyframes urgencyPulse {
      0%, 100% { opacity: 0.22; }
      50% { opacity: 1; }
    }
    @keyframes urgencyPop {
      0%, 100% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.72; }
      50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
    }
    @keyframes dangerShake {
      0%, 100% { transform: translateX(-50%) translateY(0); }
      25% { transform: translateX(calc(-50% - 7px)) translateY(-2px); }
      75% { transform: translateX(calc(-50% + 7px)) translateY(2px); }
    }
    button { 
      padding: 12px 20px; font-size: 14px; border-radius: 50px; 
      border: none; background: #333; color: white; cursor: pointer;
      box-shadow: 0 4px 10px rgba(0,0,0,0.2); font-weight: bold;
    }
    #overlay { 
      display: flex; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
      background: #008080; color: white; flex-direction: column; 
      justify-content: center; align-items: center; z-index: 100; pointer-events: auto;
      box-sizing: border-box; padding: 28px;
    }
    .overlay-screen {
      display: none; width: 100%; height: 100%; flex-direction: column;
      justify-content: center; align-items: center; text-align: center;
    }
    #intro-screen-1 {
      position: relative;
      overflow: hidden;
      color: #173f3a;
      background:
        radial-gradient(circle at 12% 10%, rgba(255,255,255,.95) 0 4%, transparent 21%),
        linear-gradient(135deg, #fffdf4 0%, #f4f8d9 52%, #dff4e6 100%);
      border-radius: 28px;
      isolation: isolate;
    }
    #intro-screen-1::before,
    #intro-screen-1::after {
      content: "";
      position: absolute;
      border-radius: 999px;
      z-index: -1;
      filter: blur(1px);
    }
    #intro-screen-1::before {
      width: min(42vw, 580px);
      aspect-ratio: 1;
      left: -13vw;
      bottom: -45%;
      background: rgba(255, 208, 102, .27);
    }
    #intro-screen-1::after {
      width: min(34vw, 470px);
      aspect-ratio: 1;
      right: -12vw;
      top: -34%;
      background: rgba(99, 188, 170, .2);
    }
    .intro-landing {
      width: min(1180px, 100%);
      min-height: min(720px, 100%);
      display: grid;
      grid-template-columns: minmax(390px, 1fr) minmax(420px, 1.08fr);
      align-items: center;
      gap: clamp(26px, 5vw, 72px);
      box-sizing: border-box;
      padding: clamp(28px, 5vw, 76px);
      text-align: left;
    }
    .intro-copy {
      position: relative;
      z-index: 2;
    }
    .intro-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 16px;
      color: #218b79;
      font-size: clamp(12px, 1.3vw, 15px);
      font-weight: 900;
      letter-spacing: .18em;
    }
    .intro-eyebrow::before {
      content: "";
      width: 34px;
      height: 4px;
      border-radius: 999px;
      background: #f2aa3b;
    }
    .intro-title {
      margin: 0;
      color: #173f3a;
      font-size: clamp(44px, 5.2vw, 66px);
      font-weight: 950;
      line-height: .98;
      letter-spacing: -.055em;
    }
    .intro-title-accent {
      display: inline-block;
      white-space: nowrap;
      color: #ef725d;
      text-shadow: 3px 3px 0 rgba(255,255,255,.8);
    }
    .no-break {
      white-space: nowrap;
    }
    .intro-description {
      margin: clamp(22px, 3vw, 34px) 0;
      color: #4c6964;
      font-size: clamp(17px, 1.8vw, 22px);
      font-weight: 700;
      line-height: 1.75;
    }
    .intro-group-callout {
      width: fit-content;
      margin: 0 0 13px 8px;
      color: #218b79;
      font-size: clamp(17px, 1.8vw, 22px);
      font-weight: 950;
      transform: rotate(-3deg);
    }
    .intro-group-callout::before,
    .intro-group-callout::after {
      display: inline-block;
      color: #f2aa3b;
      font-size: 1.1em;
    }
    .intro-group-callout::before {
      content: "＼";
      margin-right: 5px;
    }
    .intro-group-callout::after {
      content: "／";
      margin-left: 5px;
    }
    .intro-play-actions {
      display: flex;
      align-items: stretch;
      gap: 11px;
      width: min(100%, 310px);
    }
    .intro-play-button {
      min-width: 0;
      min-height: 66px;
      flex: 1 1 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 17px;
      margin: 0;
      padding: 15px 24px 15px 30px;
      border: 0;
      border-radius: 18px;
      color: #fff;
      background: linear-gradient(135deg, #ef725d, #f09550);
      box-shadow: 0 13px 28px rgba(215, 93, 68, .3);
      font-size: clamp(18px, 2vw, 23px);
      font-weight: 900;
      transition: transform .18s ease, box-shadow .18s ease;
    }
    .intro-play-button:hover {
      transform: translateY(-3px);
      box-shadow: 0 17px 34px rgba(215, 93, 68, .38);
    }
    .intro-play-button:focus-visible {
      outline: 4px solid rgba(33, 139, 121, .38);
      outline-offset: 4px;
    }
    .intro-play-icon {
      width: 35px;
      height: 35px;
      display: inline-grid;
      place-items: center;
      border-radius: 50%;
      background: rgba(255,255,255,.22);
      font-size: 13px;
      padding-left: 2px;
    }
    .intro-features {
      display: flex;
      flex-wrap: wrap;
      gap: 9px 16px;
      margin: 22px 0 0;
      padding: 0;
      color: #627873;
      font-size: 13px;
      font-weight: 800;
      list-style: none;
    }
    .intro-features li::before {
      content: "✓";
      margin-right: 6px;
      color: #218b79;
    }
    .intro-visual {
      position: relative;
      min-width: 0;
    }
    .intro-image-frame {
      position: relative;
      overflow: hidden;
      aspect-ratio: 16 / 10;
      border: 10px solid rgba(255,255,255,.92);
      border-radius: clamp(24px, 4vw, 46px);
      background: #dceecf;
      box-shadow:
        0 28px 70px rgba(34, 90, 75, .21),
        0 0 0 1px rgba(33, 109, 91, .08);
      transform: rotate(1.2deg);
    }
    .intro-image-frame img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }
    .intro-ai-bubble {
      position: absolute;
      left: -26px;
      bottom: 26px;
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 13px 18px;
      border: 1px solid rgba(23,63,58,.08);
      border-radius: 16px;
      color: #365b55;
      background: rgba(255,255,255,.94);
      box-shadow: 0 12px 30px rgba(34, 90, 75, .18);
      font-size: 14px;
      font-weight: 900;
      transform: rotate(-2deg);
    }
    .intro-ai-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #43b79c;
      box-shadow: 0 0 0 5px rgba(67,183,156,.15);
    }
    @media (max-width: 800px) {
      #overlay { padding: 12px; }
      #intro-screen-1 { border-radius: 22px; }
      .intro-landing {
        min-height: 100%;
        grid-template-columns: 1fr;
        align-content: center;
        gap: 22px;
        padding: 26px 20px;
        text-align: center;
      }
      .intro-copy { order: 2; }
      .intro-visual {
        order: 1;
        width: min(100%, 540px);
        margin: 0 auto;
      }
      .intro-image-frame {
        aspect-ratio: 16 / 8.7;
        border-width: 6px;
        border-radius: 25px;
        transform: none;
      }
      .intro-image-frame img { object-position: center 43%; }
      .intro-ai-bubble {
        left: 12px;
        bottom: -10px;
        padding: 9px 13px;
        font-size: 12px;
      }
      .intro-eyebrow { margin-bottom: 10px; }
      .intro-title {
        font-size: clamp(31px, 9vw, 52px);
        line-height: 1.02;
      }
      .intro-title br { display: none; }
      .intro-description {
        margin: 14px 0 18px;
        font-size: clamp(15px, 4.5vw, 19px);
        line-height: 1.55;
      }
      .intro-group-callout { margin: 0 auto 11px; }
      .intro-play-actions {
        width: min(100%, 310px);
        margin: 0 auto;
      }
      .intro-play-button {
        min-height: 58px;
        padding: 12px 13px;
        font-size: clamp(14px, 4vw, 18px);
      }
      .intro-play-icon {
        width: 29px;
        height: 29px;
      }
      .intro-features { justify-content: center; margin-top: 16px; }
    }
    @media (max-height: 680px) and (max-width: 800px) {
      .intro-landing {
        grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr);
        gap: 22px;
        padding: 18px;
        text-align: left;
      }
      .intro-copy { order: 1; }
      .intro-visual { order: 2; }
      .intro-title br { display: initial; }
      .intro-title { font-size: clamp(30px, 4.5vw, 44px); }
      .intro-description { font-size: 15px; }
      .intro-features { display: none; }
      .intro-ai-bubble { left: -14px; }
    }
    @media (max-width: 430px) {
      .intro-play-button { min-height: 52px; }
    }
    #group-participant-screen {
      overflow: hidden;
      color: #173f3a;
      background:
        radial-gradient(circle at 12% 12%, rgba(255,255,255,.9), transparent 22%),
        linear-gradient(135deg, #fffdf4 0%, #f3f8dc 50%, #e0f3e8 100%);
      border-radius: 28px;
    }
    .participant-entry-card {
      width: min(760px, 100%);
      max-height: 100%;
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
      padding: clamp(20px, 4vh, 42px) clamp(18px, 4vw, 46px);
      text-align: left;
    }
    .participant-entry-header {
      flex: 0 0 auto;
      text-align: center;
    }
    .participant-entry-eyebrow {
      margin: 0 0 7px;
      color: #218b79;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: .18em;
    }
    .participant-entry-header h2 {
      margin: 0;
      color: #173f3a;
      font-size: clamp(30px, 4.3vw, 48px);
      font-weight: 950;
      letter-spacing: -.04em;
    }
    .participant-entry-header > p:last-child {
      margin: 10px 0 18px;
      color: #5c716d;
      font-size: clamp(14px, 1.8vw, 17px);
      font-weight: 700;
      line-height: 1.55;
    }
    .participant-table-wrap {
      min-height: 180px;
      flex: 1 1 auto;
      overflow-y: auto;
      border: 2px solid rgba(239, 183, 112, .36);
      border-radius: 24px;
      background:
        radial-gradient(circle at 8px 8px, rgba(242,170,59,.12) 0 2px, transparent 2.5px) 0 0 / 18px 18px,
        rgba(255, 252, 239, .9);
      box-shadow:
        0 14px 34px rgba(34,90,75,.1),
        inset 0 0 0 5px rgba(255,255,255,.5);
      padding: 0 10px 9px;
      scrollbar-color: #efb770 transparent;
    }
    .participant-entry-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0 7px;
      table-layout: fixed;
    }
    .participant-entry-table th {
      position: sticky;
      top: 0;
      z-index: 1;
      padding: 11px 14px 5px;
      color: #42655f;
      background: #fffcef;
      font-size: 13px;
      font-weight: 900;
      text-align: left;
    }
    .participant-entry-table th:first-child,
    .participant-entry-table td:first-child {
      width: 54px;
      text-align: center;
    }
    .participant-entry-table td {
      height: 46px;
      padding: 0;
      color: #6b7d79;
      background: rgba(255,255,255,.94);
      font-size: 13px;
      font-weight: 800;
      box-shadow: 0 4px 12px rgba(63,93,84,.08);
    }
    .participant-entry-table tbody tr:nth-child(even) td {
      background: rgba(239, 248, 235, .96);
    }
    .participant-entry-table tbody tr:nth-child(3n) td {
      background: rgba(255, 242, 226, .96);
    }
    .participant-entry-table td:first-child {
      border-radius: 15px 0 0 15px;
    }
    .participant-entry-table td:last-child {
      border-radius: 0 15px 15px 0;
      overflow: hidden;
    }
    .participant-number-badge {
      width: 29px;
      height: 29px;
      display: inline-grid;
      place-items: center;
      border-radius: 50%;
      color: #fff;
      background: linear-gradient(135deg, #67b9a5, #43a48f);
      box-shadow: 0 3px 7px rgba(33,139,121,.22);
      font-size: 12px;
      font-weight: 950;
    }
    .participant-entry-table tbody tr:nth-child(even) .participant-number-badge {
      background: linear-gradient(135deg, #f2b45b, #ed9058);
    }
    .participant-entry-table tbody tr:nth-child(3n) .participant-number-badge {
      background: linear-gradient(135deg, #9a8fca, #8175b8);
    }
    .participant-name-input {
      width: 100%;
      height: 46px;
      box-sizing: border-box;
      padding: 7px 13px;
      border: 0;
      outline: 0;
      color: #173f3a;
      background: transparent;
      font: inherit;
      font-size: 16px;
      font-weight: 700;
    }
    .participant-name-input::placeholder {
      color: #a6b4b0;
      font-weight: 600;
    }
    .participant-name-input:focus {
      border-radius: 0 15px 15px 0;
      background: #fffefa;
      box-shadow: inset 0 0 0 2px #ef9b69;
    }
    .participant-entry-meta {
      min-height: 22px;
      display: flex;
      justify-content: space-between;
      gap: 12px;
      margin: 10px 2px 0;
      color: #657a75;
      font-size: 12px;
      font-weight: 800;
    }
    #participant-entry-status.is-error {
      color: #c84e3c;
    }
    #participant-entry-status.is-ready {
      color: #218b79;
    }
    .participant-entry-actions {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-top: 13px;
    }
    .participant-entry-actions button {
      min-height: 50px;
      margin: 0;
      padding: 11px 28px;
      border-radius: 14px;
      font-size: 17px;
      font-weight: 900;
    }
    .participant-back-button {
      color: #47706a;
      border: 2px solid rgba(33,139,121,.25);
      background: rgba(255,255,255,.78);
    }
    .participant-next-button {
      min-width: 160px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      color: #fff;
      background: linear-gradient(135deg, #ef725d, #f09550);
      box-shadow: 0 10px 24px rgba(215,93,68,.25);
    }
    .participant-next-button:disabled {
      opacity: .45;
      cursor: not-allowed;
      box-shadow: none;
    }
    @media (max-width: 600px) {
      #overlay { padding: 9px; }
      #group-participant-screen { border-radius: 20px; }
      .participant-entry-card { padding: 18px 13px 14px; }
      .participant-entry-header > p:last-child { margin-bottom: 12px; }
      .participant-desktop-break { display: none; }
      .participant-entry-meta {
        align-items: flex-end;
        flex-direction: column;
        gap: 2px;
      }
      .participant-entry-actions button {
        flex: 1 1 0;
        padding-inline: 12px;
      }
    }
    .player-buttons {
      display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
      max-width: 760px; max-height: 55vh; overflow-y: auto; margin-top: 18px;
    }
    .player-buttons button {
      min-width: 70px; font-size: 20px; background: #4285f4;
    }
    #title-screen {
      position: relative;
      overflow: hidden;
      color: #5b403d;
      border-radius: 28px;
      background:
        radial-gradient(circle at 14% 16%, rgba(255,255,255,.9) 0 3px, transparent 4px),
        radial-gradient(circle at 85% 23%, rgba(255,255,255,.75) 0 5px, transparent 6px),
        linear-gradient(145deg, #fff9e9 0%, #ffe9dd 48%, #e6f4df 100%);
      background-size: 66px 66px, 92px 92px, auto;
    }
    #title-screen::before,
    #title-screen::after {
      content: "";
      position: absolute;
      width: clamp(180px, 28vw, 420px);
      aspect-ratio: 1;
      border-radius: 50%;
      pointer-events: none;
    }
    #title-screen::before {
      left: -10%; bottom: -24%;
      background: rgba(246, 184, 194, .32);
    }
    #title-screen::after {
      right: -9%; top: -22%;
      background: rgba(151, 206, 183, .28);
    }
    .title-card {
      position: relative;
      z-index: 1;
      display: flex;
      width: min(920px, 94%);
      max-height: 96%;
      box-sizing: border-box;
      padding: clamp(16px, 2.7vh, 30px) clamp(18px, 4vw, 50px);
      flex-direction: column;
      align-items: center;
      justify-content: center;
      border: 3px solid rgba(255,255,255,.82);
      border-radius: clamp(24px, 4vw, 42px);
      background: rgba(255, 253, 246, .72);
      box-shadow: 0 20px 55px rgba(116, 83, 68, .16), inset 0 0 35px rgba(255,255,255,.65);
      backdrop-filter: blur(8px);
    }
    .title-sparkles span {
      position: absolute;
      color: #ee9d74;
      font-size: clamp(18px, 3vw, 34px);
      animation: titleFloat 3.2s ease-in-out infinite;
    }
    .title-sparkles span:nth-child(1) { left: 5%; top: 12%; color: #e8a0ad; }
    .title-sparkles span:nth-child(2) { right: 7%; top: 17%; color: #e6b84f; animation-delay: -.8s; }
    .title-sparkles span:nth-child(3) { left: 9%; bottom: 18%; color: #82bea4; animation-delay: -1.6s; }
    .title-sparkles span:nth-child(4) { right: 8%; bottom: 16%; color: #b9a0d6; animation-delay: -2.2s; }
    @keyframes titleFloat {
      0%, 100% { transform: translateY(0) rotate(-5deg); }
      50% { transform: translateY(-8px) rotate(7deg); }
    }
    .title-hero-frame {
      width: min(590px, 78vw);
      aspect-ratio: 2814 / 1536;
      margin: -6px 0 4px;
    }
    .title-hero-image {
      width: 100%; height: 100%;
      object-fit: contain; object-position: center; display: block;
      -webkit-mask-image: radial-gradient(ellipse 68% 66% at center, #000 66%, rgba(0,0,0,.86) 78%, transparent 100%);
      mask-image: radial-gradient(ellipse 68% 66% at center, #000 66%, rgba(0,0,0,.86) 78%, transparent 100%);
    }
    .title-eyebrow {
      margin: 0 0 clamp(14px, 2.4vh, 24px);
      color: #9b6b60;
      font-size: clamp(13px, 1.8vw, 18px);
      font-weight: 800;
      letter-spacing: .12em;
    }
    .title-start {
      background: #4285f4; font-size: 24px; padding: 16px 46px;
    }
    .title-main-actions {
      display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
    }
    #title-screen .title-start,
    #title-screen .title-test,
    #title-screen .title-settings {
      width: 220px; min-height: 58px; margin: 0; padding: 0 18px;
      font-size: 20px; white-space: nowrap;
      display: inline-flex; align-items: center; justify-content: center;
      box-sizing: border-box;
    }
    #title-screen .title-start {
      background: linear-gradient(135deg, #ef8b79, #f2a46c);
      box-shadow: 0 8px 18px rgba(224, 113, 88, .25);
    }
    #title-screen .title-test {
      color: #634936;
      background: linear-gradient(135deg, #ffd868, #f6b95f);
      box-shadow: 0 8px 18px rgba(214, 156, 49, .24);
    }
    #title-screen .title-start,
    #title-screen .title-test {
      gap: 8px;
      border: 3px solid rgba(255,255,255,.62);
      transition: transform .18s ease, box-shadow .18s ease;
    }
    #title-screen .title-start:hover,
    #title-screen .title-test:hover {
      transform: translateY(-3px) rotate(-1deg);
      box-shadow: 0 12px 24px rgba(119, 79, 61, .24);
    }
    #title-screen .title-settings {
      margin-top: 14px;
      min-height: 42px;
      color: #6d6860;
      background: rgba(255,255,255,.72);
      border: 2px solid rgba(121, 103, 91, .12);
      box-shadow: none;
    }
    @media (max-height: 700px), (max-width: 560px) {
      .title-card { padding-block: 10px 14px; }
      .title-hero-frame { width: min(510px, 82vw); }
      .title-eyebrow { letter-spacing: .05em; }
      #title-screen .title-start,
      #title-screen .title-test { min-height: 50px; font-size: 17px; }
      #title-screen .title-settings { margin-top: 8px; }
    }
    .demo-complete-modal {
      position: fixed;
      inset: 0;
      z-index: 60;
      display: none;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      padding: 24px;
      overflow: hidden;
      color: #563f45;
      background:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,.28) 0 4px, transparent 5px),
        linear-gradient(145deg, rgba(255,248,232,.58) 0%, rgba(255,232,224,.6) 52%, rgba(228,243,223,.58) 100%);
      background-size: 72px 72px, auto;
      backdrop-filter: blur(2px);
    }
    .demo-complete-modal.visible {
      display: flex;
    }
    .mode-explanation-card {
      position: relative;
      display: grid;
      width: min(1080px, 94%);
      max-height: 94%;
      grid-template-columns: minmax(340px, 1.12fr) minmax(320px, .88fr);
      align-items: center;
      gap: clamp(12px, 3vw, 38px);
      box-sizing: border-box;
      padding: clamp(18px, 4vw, 48px);
      border: 3px solid rgba(255,255,255,.85);
      border-radius: clamp(24px, 4vw, 42px);
      background: rgba(255,253,247,.78);
      box-shadow: 0 20px 55px rgba(116,83,68,.16);
      backdrop-filter: blur(8px);
    }
    .mode-explanation-visual {
      width: min(520px, 100%);
      min-width: 0;
      aspect-ratio: 2814 / 1536;
      justify-self: center;
    }
    .mode-explanation-visual img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: contain;
      object-position: center;
      -webkit-mask-image: radial-gradient(ellipse 50% 55% at center, #000 66%, rgba(0,0,0,.86) 10%, transparent 100%);
      mask-image: radial-gradient(ellipse 50% 55% at center, #000 66%, rgba(0,0,0,.86) 10%, transparent 100%);
    }
    .mode-explanation-copy {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .mode-explanation-label {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin: 0 0 12px;
      padding: 0 0 7px;
      border-bottom: 3px dotted rgba(217, 119, 104, .42);
      border-radius: 0;
      color: #c86f63;
      background: transparent;
      font-size: clamp(15px, 1.8vw, 20px);
      font-weight: 900;
      letter-spacing: .12em;
      box-shadow: none;
    }
    .mode-explanation-label::before {
      content: "✿";
      color: #e2a74d;
      font-size: 1.1em;
    }
    #game-explanation-text {
      max-width: 520px;
      margin: 0 0 clamp(18px, 3vh, 30px);
      color: #634a50;
      font-size: clamp(20px, 2.6vw, 32px);
      line-height: 1.62;
      text-shadow: 0 2px 0 #fff;
    }
    .mode-explanation-actions {
      display: flex;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .mode-explanation-actions button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin: 0;
      min-height: 54px;
      padding: 12px 25px;
      font-size: clamp(16px, 1.8vw, 20px);
    }
    .mode-explanation-actions .title-start {
      border: 3px solid rgba(255,255,255,.7);
      background: linear-gradient(135deg, #ef8b79, #f2a46c);
      box-shadow: 0 9px 20px rgba(224,113,88,.25);
    }
    .mode-explanation-actions .title-test {
      color: #5d554a;
      border: 2px solid rgba(102,142,119,.22);
      background: rgba(255,255,255,.88);
      box-shadow: 0 7px 17px rgba(83,109,91,.13);
    }
    .mode-explanation-sparkles span {
      position: absolute;
      z-index: 2;
      color: #e6b84f;
      font-size: clamp(20px, 3vw, 34px);
      animation: titleFloat 3.2s ease-in-out infinite;
    }
    .mode-explanation-sparkles span:nth-child(1) { left: 3%; top: 7%; }
    .mode-explanation-sparkles span:nth-child(2) { right: 4%; top: 9%; color: #e8a0ad; animation-delay: -1s; }
    .mode-explanation-sparkles span:nth-child(3) { right: 5%; bottom: 8%; color: #82bea4; animation-delay: -2s; }
    @media (max-width: 760px) {
      .mode-explanation-card {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 12px 16px 18px;
      }
      .mode-explanation-visual { width: min(430px, 90%); margin-bottom: -4px; }
      #game-explanation-text { font-size: clamp(17px, 4.5vw, 23px); line-height: 1.48; }
      .mode-explanation-label { margin-bottom: 5px; padding-block: 5px; }
      .demo-complete-modal { padding: 10px; }
      .mode-explanation-actions { gap: 8px; }
      .mode-explanation-actions button { min-height: 46px; padding: 9px 16px; font-size: 15px; }
    }
    #probability-topic-screen {
      position: relative;
      overflow: hidden;
      color: #594750;
      border-radius: 28px;
      background:
        radial-gradient(circle at 12% 16%, rgba(255,255,255,.9) 0 4px, transparent 5px),
        linear-gradient(145deg, #fff8e8 0%, #ffe5df 50%, #dff2e2 100%);
      background-size: 72px 72px, auto;
    }
    .probability-topic-card {
      position: relative;
      display: grid;
      width: min(1020px, 94%);
      max-height: 94%;
      grid-template-columns: minmax(360px, .9fr) minmax(320px, 1fr);
      align-items: center;
      gap: clamp(16px, 4vw, 50px);
      box-sizing: border-box;
      padding: clamp(24px, 5vw, 58px);
      border: 3px solid rgba(255,255,255,.88);
      border-radius: clamp(28px, 4vw, 44px);
      background: rgba(255,253,247,.78);
      box-shadow: 0 20px 55px rgba(116,83,68,.16);
      backdrop-filter: blur(7px);
      text-align: left;
    }
    .probability-topic-left {
      display: flex;
      min-width: 0;
      flex-direction: column;
      align-items: stretch;
      justify-content: center;
    }
    .probability-topic-picker {
      position: relative;
      z-index: 3;
      width: min(100%, 430px);
      margin: -8px auto 0;
      text-align: left;
    }
    .probability-topic-copy { position: relative; z-index: 2; }
    .probability-topic-eyebrow {
      margin: 0 0 8px;
      color: #d27a6b;
      font-size: clamp(14px, 1.8vw, 18px);
      font-weight: 900;
      letter-spacing: .08em;
    }
    .probability-topic-copy h2 {
      margin: 0 0 12px;
      color: #684e62;
      font-size: clamp(34px, 5vw, 58px);
      line-height: 1.1;
      text-shadow: 0 3px 0 #fff, 0 8px 18px rgba(118,78,96,.13);
    }
    .probability-topic-description {
      margin: 0 0 24px;
      color: #725f5b;
      font-size: clamp(17px, 2.3vw, 23px);
      font-weight: 800;
      line-height: 1.55;
    }
    .probability-topic-label {
      display: block;
      margin: 0 0 7px;
      color: #a3665c;
      font-size: 15px;
      font-weight: 900;
    }
    #probability-topic-select {
      width: 100%;
      box-sizing: border-box;
      padding: 14px 42px 14px 17px;
      border: 3px solid rgba(223,148,129,.32);
      border-radius: 16px;
      outline: none;
      color: #594750;
      background: rgba(255,255,255,.94);
      font-size: clamp(18px, 2.3vw, 23px);
      font-weight: 800;
      box-shadow: 0 8px 20px rgba(111,78,64,.1);
    }
    #probability-topic-select:focus {
      border-color: #e69382;
      box-shadow: 0 0 0 5px rgba(230,147,130,.15);
    }
    .probability-topic-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 18px;
    }
    .probability-topic-actions button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin: 0;
      min-height: 48px;
      padding: 11px 20px;
      border: 3px solid rgba(255,255,255,.68);
      font-size: 16px;
    }
    .probability-start-button {
      background: linear-gradient(135deg, #ef8b79, #f2a46c);
      box-shadow: 0 9px 20px rgba(224,113,88,.23);
    }
    .probability-random-button {
      color: #5d5142;
      background: linear-gradient(135deg, #ffe083, #f6bf67);
      box-shadow: 0 9px 20px rgba(196,145,54,.18);
    }
    .probability-back-button {
      color: #6a625b;
      background: rgba(255,255,255,.78);
      box-shadow: none;
    }
    .probability-topic-visual {
      position: relative;
      min-width: 0;
    }
    .probability-topic-visual img {
      display: block;
      width: min(100%, 330px);
      max-height: 42vh;
      margin: 0 auto;
      object-fit: contain;
      filter: drop-shadow(0 16px 18px rgba(91,64,59,.17));
      animation: probabilityHippoPoint 3s ease-in-out infinite;
    }
    .probability-topic-bubble {
      position: absolute;
      top: -20px;
      left: 4%;
      z-index: 2;
      padding: 10px 16px;
      border: 3px solid rgba(255,255,255,.85);
      border-radius: 18px 18px 6px 18px;
      color: #7b5d56;
      background: #fff2bd;
      font-size: clamp(15px, 2vw, 20px);
      font-weight: 900;
      box-shadow: 0 8px 18px rgba(104,75,62,.14);
    }
    .probability-topic-decoration span {
      position: absolute;
      z-index: 3;
      color: #e6b84f;
      font-size: clamp(20px, 3vw, 34px);
      animation: titleFloat 3.2s ease-in-out infinite;
    }
    .probability-topic-decoration span:nth-child(1) { left: 3%; top: 7%; }
    .probability-topic-decoration span:nth-child(2) { right: 4%; top: 8%; color: #df9dac; animation-delay: -1s; }
    .probability-topic-decoration span:nth-child(3) { right: 5%; bottom: 7%; color: #77b89a; animation-delay: -2s; }
    @keyframes probabilityHippoPoint {
      0%, 100% { transform: translateY(0) rotate(-1deg); }
      50% { transform: translateY(-7px) rotate(1deg); }
    }
    @media (max-width: 720px) {
      .probability-topic-card {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 20px 18px 10px;
        text-align: center;
      }
      .probability-topic-description { margin-bottom: 14px; }
      .probability-topic-label { text-align: left; }
      .probability-topic-actions { justify-content: center; margin-top: 12px; }
      .probability-topic-actions button { flex: 1 1 150px; padding-inline: 12px; }
      .probability-topic-left { order: 2; }
      .probability-topic-copy { order: 1; }
      .probability-topic-picker { margin-top: -5px; }
      .probability-topic-visual img { width: min(42vw, 175px); max-height: 20vh; }
      .probability-topic-bubble { top: 4px; left: -30%; }
      .probability-topic-decoration { display: none; }
    }
    .title-test {
      background: #f4b400; color: #222; font-size: 18px; padding: 12px 30px;
      margin-top: 14px;
    }
    .title-settings {
      background: #333; font-size: 18px; padding: 12px 30px;
      margin-top: 14px;
    }
    .judge-range-setting {
      display: grid; gap: 10px; justify-items: center;
      width: min(82vw, 560px); color: #202124; font-weight: bold;
    }
    .judge-range-row {
      display: grid; gap: 6px; justify-items: center; width: 100%;
    }
    .judge-range-row label {
      font-size: 20px;
    }
    .judge-range-controls {
      display: flex; align-items: center; gap: 12px;
    }
    .judge-range-controls input[type="range"] {
      width: min(48vw, 320px);
    }
    .judge-range-value {
      min-width: 74px; padding: 8px 12px; border-radius: 8px;
      background: rgba(255, 255, 255, 0.94); color: #202124;
      font-size: 20px; text-align: center;
    }
    #start-screen {
      position: relative;
      overflow: hidden;
      color: #5b454d;
      border-radius: 28px;
      background:
        radial-gradient(circle at 11% 15%, rgba(255,255,255,.92) 0 4px, transparent 5px),
        linear-gradient(145deg, #fff8e8 0%, #ffe6df 50%, #dff2e2 100%);
      background-size: 70px 70px, auto;
    }
    .challenge-start-card {
      position: relative;
      display: grid;
      width: min(980px, 94%);
      max-height: calc(100% - 24px);
      grid-template-columns: minmax(300px, .82fr) minmax(360px, 1fr);
      align-items: center;
      gap: clamp(18px, 5vw, 62px);
      box-sizing: border-box;
      padding: clamp(24px, 5vw, 58px);
      border: 3px solid rgba(255,255,255,.88);
      border-radius: clamp(28px, 4vw, 44px);
      background: rgba(255,253,247,.78);
      box-shadow: 0 20px 55px rgba(116,83,68,.16);
      backdrop-filter: blur(7px);
      overflow-y: auto;
    }
    .challenge-start-visual {
      position: relative;
      min-width: 0;
      align-self: end;
    }
    .challenge-start-visual img {
      display: block;
      width: min(100%, 390px);
      max-height: 65vh;
      margin: 0 auto -22px;
      object-fit: contain;
      filter: drop-shadow(0 16px 18px rgba(91,64,59,.18));
      animation: fightHippoBounce 1.5s ease-in-out infinite;
    }
    .challenge-cheer-bubble {
      position: absolute;
      top: 3%;
      right: -2%;
      z-index: 2;
      padding: 10px 17px;
      border: 3px solid rgba(255,255,255,.88);
      border-radius: 18px 18px 18px 6px;
      color: #a86057;
      background: #fff1b5;
      font-size: clamp(16px, 2vw, 21px);
      font-weight: 900;
      box-shadow: 0 8px 18px rgba(104,75,62,.14);
    }
    .challenge-start-copy { position: relative; z-index: 2; text-align: left; }
    .challenge-start-eyebrow {
      margin: 0 0 8px;
      color: #d27868;
      font-size: clamp(15px, 2vw, 19px);
      font-weight: 900;
      letter-spacing: .2em;
    }
    #challenge-player-title {
      margin: 0 0 16px;
      color: #674d61;
      font-size: clamp(32px, 5vw, 54px);
      line-height: 1.25;
      text-shadow: 0 3px 0 #fff, 0 8px 18px rgba(118,78,96,.13);
    }
    #next-player-standby {
      min-height: 1.5em;
      margin: 0 0 28px;
      padding: 11px 15px;
      border-radius: 14px;
      color: #6e5d56;
      background: rgba(255,242,191,.72);
      font-size: clamp(16px, 2.3vw, 22px);
      font-weight: 800;
      line-height: 1.5;
    }
    #next-player-standby:empty { display: none; }
    .challenge-start-actions {
      display: flex;
      align-items: center;
      gap: 11px;
      flex-wrap: wrap;
    }
    .challenge-start-actions button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      margin: 0;
      min-height: 54px;
      padding: 13px 26px;
      border: 3px solid rgba(255,255,255,.7);
      font-size: 18px;
    }
    .challenge-begin-button {
      background: linear-gradient(135deg, #ef8b79, #f2a46c);
      box-shadow: 0 10px 24px rgba(224,113,88,.25);
    }
    .challenge-demo-button {
      color: #625a50;
      background: rgba(255,255,255,.82);
      box-shadow: 0 7px 18px rgba(91,70,61,.1);
    }
    .challenge-start-decoration span {
      position: absolute;
      z-index: 3;
      color: #e6b84f;
      font-size: clamp(20px, 3vw, 34px);
      animation: titleFloat 3.2s ease-in-out infinite;
    }
    .challenge-start-decoration span:nth-child(1) { left: 4%; top: 8%; }
    .challenge-start-decoration span:nth-child(2) { right: 5%; top: 9%; color: #df9dac; animation-delay: -1s; }
    .challenge-start-decoration span:nth-child(3) { right: 7%; bottom: 8%; color: #77b89a; animation-delay: -2s; }
    @keyframes fightHippoBounce {
      0%, 100% { transform: translateY(0) rotate(-1deg); }
      45% { transform: translateY(-8px) rotate(1deg); }
      60% { transform: translateY(-5px) rotate(0); }
    }
    @media (max-width: 720px) {
      #start-screen { justify-content: flex-start; overflow-y: auto; padding: 8px 0; box-sizing: border-box; }
      .challenge-start-card {
        grid-template-columns: 1fr;
        gap: 0;
        flex: 0 0 auto;
        max-height: none;
        padding: 12px 18px 16px;
        text-align: center;
      }
      .challenge-start-visual { align-self: center; }
      .challenge-start-visual img { width: min(44vw, 190px); max-height: 27vh; margin-bottom: -8px; }
      .challenge-cheer-bubble {
        right: 0;
        max-width: calc(100% - 8px);
        box-sizing: border-box;
        white-space: nowrap;
      }
      .challenge-start-copy { text-align: center; }
      #challenge-player-title { margin-bottom: 10px; }
      #next-player-standby { margin-bottom: 15px; }
      .challenge-start-actions { justify-content: center; }
      .challenge-start-actions button { min-height: 48px; padding: 10px 18px; font-size: 16px; }
      .challenge-start-decoration { display: none; }
    }
    @media (max-height: 620px) {
      .challenge-start-card { padding-top: 10px; padding-bottom: 12px; }
      .challenge-start-visual img { max-height: 24vh; width: min(38vw, 165px); }
      .challenge-start-eyebrow { margin-bottom: 3px; font-size: 13px; }
      #challenge-player-title { margin-bottom: 7px; font-size: clamp(25px, 7vw, 36px); }
      #next-player-standby { margin-bottom: 8px; padding: 7px 10px; font-size: 14px; }
      .challenge-start-actions button { min-height: 42px; padding: 7px 14px; font-size: 14px; }
    }
    .settings-modal {
      position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
      background: rgba(0,0,0,0.36); z-index: 220; pointer-events: auto;
      box-sizing: border-box; padding: 24px;
    }
    .settings-dialog {
      width: min(92vw, 640px); max-height: min(86vh, 720px); overflow-y: auto;
      background: rgba(255,255,255,0.96); color: #202124; border-radius: 8px;
      box-shadow: 0 24px 80px rgba(0,0,0,0.34); padding: 28px;
      box-sizing: border-box; display: grid; gap: 22px; justify-items: center;
    }
    .settings-dialog h2 {
      margin: 0; font-size: 32px;
    }
    .settings-actions {
      display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    }
    .settings-actions button {
      min-width: 120px;
    }
    .settings-actions-bottom {
      width: 100%;
      margin-top: 4px;
      padding-top: 16px;
      border-top: 1px solid rgba(32,33,36,.14);
    }
    .settings-actions .settings-reset-button {
      background: #fff4d6;
      color: #6b554d;
      border: 2px solid #edc979;
      box-shadow: none;
    }
    .app-legal-footer {
      position: fixed; left: 50%; bottom: 8px; z-index: 150; transform: translateX(-50%);
      display: flex; align-items: center; justify-content: center; gap: 16px;
      width: min(92vw, 760px); padding: 7px 16px; box-sizing: border-box;
      border: 1px solid rgba(126, 91, 83, .14); border-radius: 999px;
      background: rgba(255, 253, 248, .88); color: #826c65;
      box-shadow: 0 8px 24px rgba(102, 72, 66, .08); backdrop-filter: blur(8px);
      font-size: 12px;
    }
    .app-legal-footer[hidden] { display: none; }
    .app-legal-footer nav { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
    .app-legal-footer a { color: #826c65; text-decoration: none; font-weight: 700; }
    .app-legal-footer a:hover { color: #dd8875; text-decoration: underline; }
    .app-legal-footer small { white-space: nowrap; }
    @media (max-width: 620px) {
      .app-legal-footer { gap: 5px; flex-direction: column; border-radius: 18px; bottom: 5px; }
      .app-legal-footer nav { gap: 10px; }
    }
    .audio-test-panel {
      width: 100%; display: grid; gap: 12px; justify-items: stretch;
      padding: 16px 18px; border: 1px solid rgba(32,33,36,0.14); border-radius: 8px;
      background: rgba(255,255,255,0.92); box-sizing: border-box; color: #202124;
    }
    .audio-test-title {
      font-size: 20px; font-weight: bold; text-align: center;
    }
    .audio-test-buttons {
      display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
    }
    .audio-test-buttons button {
      min-width: 110px; padding: 10px 14px; font-size: 13px; border-radius: 999px;
    }
    .audio-test-status {
      min-height: 20px; font-size: 12px; font-weight: bold; text-align: center;
      color: rgba(32,33,36,0.72);
    }
    .button-guide {
      width: min(94vw, 980px); display: grid; grid-template-columns: 1fr 1fr;
      gap: 34px; align-items: end; margin-bottom: 30px;
    }
    .button-guide-item {
      display: grid; justify-items: center; gap: 12px; color: white;
    }
    .guide-demo-button {
      display: inline-flex; align-items: center; justify-content: center;
      min-width: 140px; padding: 12px 24px; border-radius: 50px;
      color: white; background: #333; font-size: 18px; font-weight: bold;
      box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    .guide-demo-button.skip {
      background: #f4b400; color: white;
    }
    .guide-arrow {
      width: 190px; height: 74px; overflow: visible;
    }
    .guide-arrow path {
      fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round;
      stroke-linejoin: round; filter: drop-shadow(0 3px 5px rgba(0,0,0,0.45));
    }
    .guide-arrow text {
      fill: #fff; font-size: 18px; font-weight: 800;
      text-shadow: 0 3px 8px rgba(0,0,0,0.65);
    }
    .guide-note {
      font-size: clamp(20px, 3vw, 30px); font-weight: 800; line-height: 1.35;
      min-height: 82px; display: flex; align-items: center;
    }
    @media (max-width: 680px) {
      .button-guide { grid-template-columns: 1fr; gap: 20px; }
      .guide-note { min-height: auto; }
    }
    @media (max-width: 980px) {
      .works-content {
        grid-template-columns: 1fr;
      }
    }
    #recognized-gallery {
      width: min(88vw, 850px); max-height: 38vh; overflow-y: auto;
      display: grid; grid-template-columns: repeat(auto-fit, minmax(116px, 132px));
      justify-content: center; justify-items: center;
      gap: 12px; margin: 16px auto 22px; padding: 4px 8px;
      box-sizing: border-box;
    }
    .recognized-card {
      background: rgba(255,255,255,.9); color: #5b4844; border-radius: 16px; padding: 9px;
      width: 116px; box-sizing: border-box;
      text-align: center; font-size: 12px; font-weight: bold;
      border: 2px solid rgba(255,255,255,.92);
      box-shadow: 0 7px 16px rgba(111,78,64,.12);
    }
    .recognized-card img {
      width: 72px; height: 72px; object-fit: contain; image-rendering: pixelated;
      display: block; margin: 0 auto 6px; background: #fff;
    }
    #ranking-list {
      width: min(92vw, 760px); display: grid; gap: 10px; margin: 12px 0 18px;
    }
    .ranking-row {
      display: grid; grid-template-columns: 70px 1fr 88px; align-items: center;
      gap: 12px; background: rgba(255,255,255,0.12); border-radius: 8px; padding: 10px;
    }
    .ranking-row img {
      width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated;
      background: white; border-radius: 10px;
    }
    #gameover-screen {
      position: relative;
      overflow: hidden;
      color: #5c454c;
      border-radius: 28px;
      background:
        radial-gradient(circle at 9% 13%, rgba(255,255,255,.92) 0 4px, transparent 5px),
        linear-gradient(145deg, #fff8e8 0%, #ffe8e0 52%, #e2f2df 100%);
      background-size: 68px 68px, auto;
    }
    .gameover-card {
      position: relative;
      width: min(960px, 94%);
      max-height: 94%;
      overflow-y: auto;
      box-sizing: border-box;
      padding: clamp(22px, 4vw, 46px);
      border: 3px solid rgba(255,255,255,.88);
      border-radius: clamp(26px, 4vw, 42px);
      background: rgba(255,253,247,.78);
      box-shadow: 0 20px 55px rgba(116,83,68,.16);
      backdrop-filter: blur(7px);
    }
    .gameover-eyebrow,
    .ranking-eyebrow {
      margin: 0 0 7px;
      color: #d17a6c;
      font-size: clamp(12px, 1.5vw, 16px);
      font-weight: 900;
      letter-spacing: .18em;
    }
    #next-player-message {
      margin: 0;
      color: #664d56;
      font-size: clamp(25px, 4vw, 40px);
      line-height: 1.3;
      text-shadow: 0 2px 0 #fff;
    }
    .gameover-summary {
      display: grid;
      grid-template-columns: minmax(0, 1fr) clamp(125px, 19vw, 190px);
      align-items: center;
      gap: clamp(12px, 3vw, 34px);
      max-width: 760px;
      margin: 0 auto;
      text-align: left;
    }
    .gameover-hippo {
      width: 100%;
      max-height: 210px;
      object-fit: contain;
      display: block;
      filter: drop-shadow(0 12px 14px rgba(91,64,59,.16));
      animation: tiredHippoBreathe 3s ease-in-out infinite;
    }
    .gameover-handoff {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 20px;
      padding: 10px 18px;
      border-radius: 14px;
      color: #6b5a4f;
      background: #fff2bf;
      font-size: clamp(16px, 2.3vw, 21px);
      font-weight: 800;
    }
    .gameover-next-button {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 15px 38px;
      border: 3px solid rgba(255,255,255,.72);
      background: linear-gradient(135deg, #ef8b79, #f2a46c);
      font-size: 20px;
      box-shadow: 0 10px 24px rgba(224,113,88,.25);
    }
    .gameover-decoration span,
    .ranking-decoration span {
      position: absolute;
      color: #e7bb4e;
      font-size: clamp(22px, 3vw, 36px);
      animation: titleFloat 3.2s ease-in-out infinite;
    }
    .gameover-decoration span:nth-child(1) { left: 4%; top: 8%; }
    .gameover-decoration span:nth-child(2) { right: 5%; top: 10%; color: #df9dac; animation-delay: -1s; }
    .gameover-decoration span:nth-child(3) { right: 6%; bottom: 8%; color: #77b89a; animation-delay: -2s; }
    #podium {
      position: relative; width: min(94vw, 940px); display: grid; grid-template-columns: repeat(3, 1fr);
      align-items: end; gap: clamp(8px, 2vw, 18px); margin-top: 12px;
      transform: translateY(110vh);
    }
    #podium.podium-enter {
      animation: podiumSlideIn 900ms cubic-bezier(.2,.85,.2,1) forwards;
    }
    .podium-place {
      position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
    }
    .podium-place img {
      width: 150px; height: 150px; object-fit: contain; image-rendering: pixelated;
      background: #fffdf8; border-radius: 22px; padding: 7px;
      border: 4px solid rgba(255,255,255,.94);
      box-shadow: 0 12px 28px rgba(79,57,52,.18);
    }
    .podium-block {
      position: relative; width: 100%; border-radius: 24px 24px 8px 8px; display: flex; flex-direction: column;
      justify-content: center; align-items: center; color: #5b4940; font-weight: 900;
      border: 4px solid rgba(255,255,255,.62); box-sizing: border-box;
      box-shadow: inset 0 8px 16px rgba(255,255,255,.28), 0 14px 24px rgba(82,59,49,.16);
      text-shadow: 0 2px 0 rgba(255,255,255,.7);
    }
    .podium-1 { height: 220px; background: linear-gradient(145deg, #ffe88a, #f5b941); }
    .podium-2 { height: 170px; background: linear-gradient(145deg, #f2f4f5, #bac8ce); }
    .podium-3 { height: 135px; background: linear-gradient(145deg, #f2c299, #c9875d); }
    .podium-art-slot {
      position: relative; width: 162px; height: 190px; display: flex; flex-direction: column;
      align-items: center; justify-content: flex-end; gap: 8px;
    }
    .podium-art-slot img {
      width: 150px; height: 150px; object-fit: contain; image-rendering: pixelated;
      background: #fffdf8; border-radius: 22px; padding: 7px;
      border: 4px solid rgba(255,255,255,.94);
      box-shadow: 0 12px 28px rgba(79,57,52,.18);
    }
    .podium-place:nth-child(2) .podium-art-slot::before {
      content: "♛";
      position: absolute;
      top: -34px;
      z-index: 2;
      color: #f3b928;
      font-size: 46px;
      line-height: 1;
      transform: rotate(-5deg);
      filter: drop-shadow(0 4px 3px rgba(112,78,25,.18));
    }
    #ranking-screen {
      position: relative;
      justify-content: center;
      overflow-y: auto;
      box-sizing: border-box;
      padding: clamp(16px, 3vh, 28px) clamp(16px, 3vw, 28px) 100px;
      color: #5b454d;
      border-radius: 28px;
      background:
        radial-gradient(circle at 10% 15%, rgba(255,255,255,.9) 0 4px, transparent 5px),
        linear-gradient(145deg, #fff8e9 0%, #fce6df 48%, #e3f1df 100%);
      background-size: 74px 74px, auto;
    }
    .ranking-heading {
      position: absolute;
      top: clamp(42px, 6vh, 62px);
      left: 50%;
      z-index: 5;
      margin: 0;
      color: #6a4d61;
      font-size: clamp(32px, 5vw, 50px);
      line-height: 1.1;
      text-shadow: 0 3px 0 #fff, 0 7px 16px rgba(119,76,95,.13);
      transform: translateX(-50%);
      white-space: nowrap;
    }
    #ranking-screen > .ranking-eyebrow {
      position: absolute;
      top: clamp(18px, 2.5vh, 28px);
      left: 50%;
      z-index: 5;
      margin: 0;
      transform: translateX(-50%);
      white-space: nowrap;
    }
    #ranking-topic-title {
      position: absolute;
      top: clamp(105px, 13vh, 122px);
      left: 50%;
      z-index: 5;
      color: #9a675f;
      transform: translateX(-50%);
      white-space: nowrap;
    }
    .ranking-decoration span:nth-child(1) { left: 4%; top: 8%; }
    .ranking-decoration span:nth-child(2) { right: 5%; top: 9%; color: #df9dac; animation-delay: -1s; }
    .ranking-decoration span:nth-child(3) { right: 8%; bottom: 8%; color: #77b89a; animation-delay: -2s; }
    .ranking-actions {
      position: fixed;
      left: 50%;
      bottom: max(14px, env(safe-area-inset-bottom));
      z-index: 25;
      display: flex;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
      width: min(94vw, 720px);
      margin: 0;
      padding: 10px 14px;
      box-sizing: border-box;
      border: 2px solid rgba(255,255,255,.75);
      border-radius: 999px;
      background: rgba(255,253,247,.76);
      box-shadow: 0 10px 28px rgba(91,64,59,.16);
      backdrop-filter: blur(8px);
      transform: translateX(-50%);
    }
    .ranking-actions button {
      margin: 0;
      padding: 13px 27px;
      font-size: 18px;
      border: 3px solid rgba(255,255,255,.7);
    }
    .ranking-works-button { background: linear-gradient(135deg, #76aeda, #779ed5); }
    .ranking-replay-button { background: linear-gradient(135deg, #72bc9c, #59a78b); }
    @media (max-width: 620px) {
      .gameover-card { padding: 24px 14px; }
      .gameover-decoration, .ranking-decoration { display: none; }
      #podium { gap: 5px; }
      .podium-art-slot { width: 30vw; height: 135px; }
      .podium-art-slot img, .podium-place img { width: 25vw; height: 25vw; max-width: 108px; max-height: 108px; }
      .podium-1 { height: 180px; }
      .podium-2 { height: 145px; }
      .podium-3 { height: 115px; }
      .podium-block { border-width: 2px; border-radius: 16px 16px 6px 6px; }
      #ranking-screen { padding-bottom: 132px; }
      .ranking-actions { border-radius: 24px; }
      .ranking-actions button { flex: 1 1 210px; padding: 10px 14px; font-size: 15px; }
    }
    #reveal-stage {
      display: none; position: fixed; inset: 0; z-index: 150;
      background: #008080; color: white; align-items: center;
      justify-content: center; flex-direction: column; pointer-events: none;
      overflow: hidden;
    }
    #reveal-hippo {
      position: absolute;
      right: clamp(18px, 6vw, 90px);
      bottom: clamp(18px, 4vh, 50px);
      z-index: 3;
      width: clamp(150px, 23vw, 280px);
      height: clamp(190px, 39vh, 430px);
      object-fit: contain;
      object-position: center bottom;
      display: block;
      filter: drop-shadow(0 16px 18px rgba(24,65,63,.3));
      transform-origin: center bottom;
    }
    #reveal-hippo.reveal-hippo-waiting {
      animation: wishHippoBreathe 850ms ease-in-out infinite alternate;
    }
    #reveal-hippo.reveal-hippo-jumping {
      animation: hippoJumpUp 1250ms cubic-bezier(.08,.62,.18,1) forwards;
    }
    #works-stage {
      display: none; position: fixed; inset: 0; z-index: 180;
      background:
        radial-gradient(circle at 10% 14%, rgba(255,255,255,.9) 0 4px, transparent 5px),
        linear-gradient(145deg, #fff8e8 0%, #fce4e2 50%, #dff1e4 100%);
      background-size: 72px 72px, auto;
      color: #604851; align-items: center;
      justify-content: center; flex-direction: column; pointer-events: auto;
      box-sizing: border-box; padding: 20px 28px 26px;
    }
    .works-content {
      width: min(94vw, 1240px); display: grid;
      grid-template-columns: minmax(0, 780px) minmax(280px, 360px);
      gap: 18px; align-items: center; justify-content: center;
    }
    #reveal-title {
      font-size: clamp(56px, 12vw, 140px); font-weight: 900; line-height: 1;
      text-shadow: 0 8px 30px rgba(0,0,0,0.5);
    }
    #works-title {
      display: grid; gap: 5px; margin-bottom: 14px;
      text-shadow: 0 2px 0 #fff, 0 7px 18px rgba(101,68,81,.12);
    }
    #works-owner {
      font-size: clamp(22px, 3.8vw, 44px); font-weight: 900;
      opacity: 0;
    }
    #works-topic {
      font-size: clamp(28px, 5vw, 60px); font-weight: 900;
      opacity: 0;
    }
    #works-probability {
      font-size: clamp(20px, 3.4vw, 40px); font-weight: 900;
      opacity: 0;
    }
    #reveal-rank {
      font-size: clamp(28px, 5vw, 64px); color: #fbbc04; font-weight: 900;
      margin-bottom: 18px;
    }
    #reveal-image {
      display: none; width: 96vw; height: 88vh;
      object-fit: contain; image-rendering: pixelated; background: white;
      border-radius: 18px; padding: 18px; box-shadow: 0 24px 80px rgba(255,255,255,0.2);
    }
    #works-image {
      display: block; width: min(84vw, 780px); height: min(58vh, 560px);
      object-fit: contain; image-rendering: pixelated; background: rgba(255,255,255,.92);
      border: 5px solid rgba(255,255,255,.9);
      border-radius: 28px; padding: 14px; box-shadow: 0 18px 48px rgba(91,64,59,.18);
      box-sizing: border-box; opacity: 0; visibility: hidden; cursor: pointer;
    }
    .works-side-panel {
      position: relative;
      width: 100%;
      height: min(58vh, 560px);
      min-height: 280px;
      display: block;
    }
    #works-hippo {
      position: absolute;
      right: clamp(-8px, -1vw, 0px);
      bottom: -4px;
      z-index: 3;
      width: min(68%, 220px);
      height: min(48%, 240px);
      object-fit: contain;
      object-position: right bottom;
      pointer-events: none;
      filter: drop-shadow(0 12px 14px rgba(91,64,59,.17));
      transition: transform .18s ease;
      animation: thinkingHippoSway 2.8s ease-in-out infinite;
    }
    #works-hippo.is-writing {
      animation: writingHippoPop .32s cubic-bezier(.2,1.35,.25,1) both;
    }
    .works-chat-panel {
      width: 100%; height: 100%; min-height: 0; overflow: hidden;
      background: rgba(205,218,242,.88); border: 3px solid rgba(255,255,255,.8);
      border-radius: 22px; box-sizing: border-box;
      padding: 12px; box-shadow: 0 10px 24px rgba(79,76,108,.14); display: none;
      grid-template-rows: auto minmax(0, 1fr); gap: 10px;
    }
    .works-chat-panel.active {
      display: grid;
    }
    .works-chat-title {
      font-size: 14px; font-weight: 900; color: #665a7a; text-align: center;
    }
    .works-chat-list {
      min-height: 0; overflow-y: auto; display: grid; gap: 8px; align-content: start;
      padding: 0 4px clamp(105px, 23vh, 180px) 0;
      box-sizing: border-box;
    }
    .works-chat-list .ai-chat-message {
      margin: 0;
      font-size: 16px;
      line-height: 1.5;
      padding: 10px 13px;
    }
    .works-chat-meta {
      display: block; margin-top: 5px; font-size: 12px; font-weight: bold; opacity: 0.68;
    }
    .works-chat-empty {
      color: rgba(82,73,102,.68); font-size: 13px; font-weight: bold; text-align: center;
      align-self: center;
    }
    .works-actions {
      display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
      margin-top: 20px;
    }
    .works-actions button {
      min-width: 140px;
      border: 3px solid rgba(255,255,255,.72);
      background: linear-gradient(135deg, #e47e72, #e99873) !important;
      box-shadow: 0 9px 20px rgba(185,91,76,.2);
    }
    @media (max-width: 980px) {
      .works-content { grid-template-columns: 1fr; }
      .works-side-panel {
        width: min(90vw, 680px);
        height: min(30vh, 260px);
        min-height: 180px;
      }
      #works-hippo { width: min(38%, 190px); height: min(76%, 190px); }
      .works-chat-list { padding-bottom: clamp(80px, 16vh, 130px); }
    }
    @media (max-width: 620px) {
      #works-stage { padding: 12px 10px 16px; }
      .works-content { gap: 8px; }
      #works-image { height: min(38vh, 330px); }
      .works-side-panel { height: min(23vh, 190px); min-height: 140px; }
      #works-hippo { width: min(42%, 150px); height: min(80%, 150px); }
      .works-chat-list { padding-bottom: clamp(68px, 13vh, 100px); }
    }
    #reveal-stage.reveal-image-mode #reveal-rank,
    #reveal-stage.reveal-image-mode #reveal-title {
      display: none;
    }
    #reveal-stage.reveal-image-mode #reveal-image {
      position: fixed; inset: 0; width: 100vw; height: 100vh;
      box-sizing: border-box; border-radius: 0; padding: 24px;
      max-width: none; max-height: none;
    }
    #reveal-image.reveal-pop {
      display: block; animation: revealPop 320ms cubic-bezier(.2,1.35,.25,1) both;
    }
    #works-image.reveal-pop {
      visibility: visible; animation: revealPop 320ms cubic-bezier(.2,1.35,.25,1) both;
    }
    .works-fade-in {
      animation: worksFadeIn 820ms ease-out both;
    }
    .works-fade-out {
      animation: worksFadeOut 680ms ease-in both;
    }
    .confetti-layer {
      position: fixed; inset: 0; z-index: 260; pointer-events: none;
      overflow: hidden;
    }
    .confetti-piece {
      position: absolute; top: -18px; width: 10px; height: 16px;
      opacity: 0.95; animation: confettiFall linear forwards;
      transform: translate3d(0, 0, 0) rotate(0deg);
    }
    @keyframes podiumSlideIn {
      from { transform: translateY(110vh); }
      to { transform: translateY(0); }
    }
    @keyframes tiredHippoBreathe {
      0%, 100% { transform: translateY(0) rotate(-1deg); }
      50% { transform: translateY(-4px) rotate(1deg); }
    }
    @keyframes wishHippoBreathe {
      from { transform: translateY(0) scale(1); }
      to { transform: translateY(-5px) scale(1.018); }
    }
    @keyframes hippoJumpUp {
      0% { transform: translateY(0) scale(1, .96) rotate(-2deg); }
      16% { transform: translateY(-15vh) scale(.98, 1.03) rotate(2deg); }
      45% { transform: translateY(-29vh) scale(1) rotate(-1deg); }
      72% { transform: translateY(-37vh) scale(1) rotate(1deg); }
      100% { transform: translateY(-41vh) scale(1) rotate(0); }
    }
    @keyframes thinkingHippoSway {
      0%, 100% { transform: translateY(0) rotate(-2deg); }
      50% { transform: translateY(-5px) rotate(2deg); }
    }
    @keyframes writingHippoPop {
      0% { transform: scale(.82) rotate(-5deg); opacity: .5; }
      75% { transform: scale(1.06) rotate(2deg); opacity: 1; }
      100% { transform: scale(1) rotate(0); opacity: 1; }
    }
    @keyframes revealPop {
      0% { transform: scale(0.45); opacity: 0; filter: blur(8px); }
      75% { transform: scale(1.08); opacity: 1; filter: blur(0); }
      100% { transform: scale(1); opacity: 1; filter: blur(0); }
    }
    @keyframes worksFadeIn {
      from { opacity: 0; transform: translateY(18px); filter: blur(8px); }
      to { opacity: 1; transform: translateY(0); filter: blur(0); }
    }
    @keyframes worksFadeOut {
      from { opacity: 1; transform: translateY(0); filter: blur(0); }
      to { opacity: 0; transform: translateY(-16px); filter: blur(8px); }
    }
    @keyframes confettiFall {
      0% { transform: translate3d(0, -20px, 0) rotate(0deg); }
      100% { transform: translate3d(var(--drift), 110vh, 0) rotate(var(--spin)); }
    }
    /* デバッグ用：AIに渡されている画像 */
    #debugCanvas {
      position: fixed; bottom: 10px; right: 10px; border: 2px solid #db4437;
      zoom: 0.4; background: black; pointer-events: none;
    }
