      /* ================================================================
         TUO STYLE — INTATTO
         ================================================================ */
      :root {
        --s: clamp(130px, 34vmin, 200px);
        --h: calc(var(--s) / 2);

        --ivory: #f6efdd;
        --gold: #e9b954;
        --cream: #efe6cd;

        --felt-hi: #1a5a41;
        --felt-deep: #071c14;
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        min-height: 100vh;
        font-family: "Manrope", system-ui, sans-serif;
        color: var(--cream);

        background:
          radial-gradient(90rem 60rem at 50% 18%, var(--felt-hi), transparent 55%),
          radial-gradient(120rem 90rem at 50% 115%, #0e3325, var(--felt-deep) 70%),
          var(--felt-deep);

        overflow-x: hidden;
      }

      body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
        opacity: 0.07;
        mix-blend-mode: overlay;
      }

      body::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: radial-gradient(120% 90% at 50% 38%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
      }

      .dust {
        position: fixed;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        overflow: hidden;
      }

      .dust i {
        position: absolute;
        bottom: -12px;
        border-radius: 50%;
        background: var(--gold);
        opacity: 0;
        animation: rise linear infinite;
      }

      @keyframes rise {
        0% { transform: translateY(0); opacity: 0; }
        12% { opacity: 0.35; }
        90% { opacity: 0.12; }
        100% { transform: translateY(-105vh); opacity: 0; }
      }

      header {
        position: relative;
        z-index: 10;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px clamp(18px, 4vw, 42px);
        gap: 0.75rem;
      }

      .header-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        margin-left: auto;
        flex-wrap: nowrap;
      }

      .brand {
        display: flex;
        align-items: center;
        gap: 13px;
        font-family: "Bungee", cursive;
        font-size: clamp(1rem, 2.4vw, 1.25rem);
        letter-spacing: 0.04em;
        color: var(--ivory);
        text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
      }

      .brand-die {
        width: 30px;
        height: 30px;
        flex: none;
        background: var(--ivory);
        border-radius: 7px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        padding: 5px;
        transform: rotate(-8deg);
        box-shadow: 0 3px 9px rgba(0, 0, 0, 0.45);
      }

      .brand-die span {
        place-self: center;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #191712;
      }

      #langSelector,
      #diceCountSelector {
        appearance: none;
        -webkit-appearance: none;
        font-family: "Manrope", sans-serif;
        font-weight: 700;
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--cream);
        background-color: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(233, 185, 84, 0.35);
        border-radius: 999px;
        padding: 9px 30px 9px 14px;
        cursor: pointer;
        transition: 0.25s;
        background-image:
          linear-gradient(45deg, transparent 50%, var(--gold) 50%),
          linear-gradient(135deg, var(--gold) 50%, transparent 50%);
        background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
        background-size: 5px 5px, 5px 5px;
        background-repeat: no-repeat;
      }

      #langSelector:hover,
      #diceCountSelector:hover {
        background-color: rgba(233, 185, 84, 0.15);
        border-color: rgba(233, 185, 84, 0.6);
        color: var(--gold);
        transform: translateY(-1px);
      }

      #langSelector:focus,
      #diceCountSelector:focus {
        outline: none;
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(233, 185, 84, 0.12);
      }

      #langSelector option,
      #diceCountSelector option {
        color: #efe6cd;
        background: #0e3325;
        font-family: "Manrope", sans-serif;
        font-weight: 700;
      }

      .coin-btn,
      .ghost-btn {
        font-family: "Manrope", sans-serif;
        font-weight: 700;
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--cream);
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(233, 185, 84, 0.35);
        border-radius: 999px;
        padding: 9px 14px;
        cursor: pointer;
        transition: 0.25s;
      }

      .coin-btn {
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        position: relative;
        margin-left: auto;
      }

      .coin-btn:hover,
      .ghost-btn:hover {
        background: rgba(233, 185, 84, 0.15);
        transform: translateY(-1px);
      }

      .coin-btn:hover {
        color: var(--gold);
        text-decoration: none;
      }

      .dropdown {
        position: relative;
        margin-left: auto;
        z-index: 10;
      }

      .coin-btn .dd-arrow {
        display: inline-block;
        margin-left: 6px;
        font-size: 0.65rem;
        transition: transform 0.25s;
      }

      .dropdown.open .dd-arrow { transform: rotate(180deg); }

      .dropdown-menu {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        min-width: 210px;
        background: rgba(10, 40, 28, 0.97);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(233, 185, 84, 0.3);
        border-radius: 14px;
        padding: 6px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: 0.22s ease;
        z-index: 200;
      }

      .dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
      }

      .dropdown-menu a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 11px 14px;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--cream);
        text-decoration: none;
        border-radius: 10px;
        transition: 0.18s;
      }

      .dropdown-menu a:hover {
        background: rgba(233, 185, 84, 0.14);
        color: var(--gold);
      }

      .dropdown-menu a:focus-visible {
        outline: 2px solid var(--gold);
        outline-offset: 2px;
      }

      .ghost-btn .dot {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--gold);
        margin-right: 8px;
        vertical-align: 1px;
        box-shadow: 0 0 8px var(--gold);
        transition: 0.25s;
      }

      .ghost-btn[aria-pressed="false"] .dot {
        background: rgba(255, 255, 255, 0.25);
        box-shadow: none;
      }

      main {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 20px 30px;
      }

      .stage {
        position: relative;
        width: 100%;
        height: clamp(340px, 62vmin, 540px);
        display: grid;
        place-items: center;
        user-select: none;
        -webkit-user-select: none;
      }

      .ring {
        position: absolute;
        width: min(92vmin, 620px);
        aspect-ratio: 1;
        border: 1.5px dashed rgba(233, 185, 84, 0.25);
        border-radius: 50%;
        animation: spin 80s linear infinite;
      }

      .ring::after {
        content: "";
        position: absolute;
        inset: 6%;
        border: 1px solid rgba(233, 185, 84, 0.12);
        border-radius: 50%;
      }

      @keyframes spin {
        to { transform: rotate(360deg); }
      }

      .dice-row {
        position: relative;
        z-index: 3;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: clamp(8px, 3vmin, 28px);
        animation: bob 4.5s ease-in-out infinite;
      }

      @keyframes bob {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-9px); }
      }

      .stage.rolling .dice-row {
        animation: shake 0.6s ease-in-out;
        pointer-events: none;
      }

      @keyframes shake {
        0%, 100% { transform: translate(0, 0); }
        20% { transform: translate(-6px, 3px) rotate(-1deg); }
        40% { transform: translate(5px, -3px) rotate(1deg); }
        60% { transform: translate(-4px, 2px); }
        80% { transform: translate(3px, -2px); }
      }

      .die-btn {
        position: relative;
        width: calc(var(--s) + 44px);
        height: calc(var(--s) + 44px);
        display: grid;
        place-items: center;
        background: none;
        border: 0;
        cursor: pointer;
        perspective: 1200px;
        -webkit-tap-highlight-color: transparent;
      }

      .die-btn:focus-visible {
        outline: 3px solid var(--gold);
        outline-offset: 10px;
        border-radius: 50%;
      }

      .die-btn::after {
        content: "";
        position: absolute;
        top: calc(100% + var(--s) * 0.18);
        left: 50%;
        transform: translateX(-50%);
        width: calc(var(--s) * 0.7);
        height: calc(var(--s) * 0.1);
        background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0,0,0,0.45), rgba(0,0,0,0.15) 55%, transparent 78%);
        filter: blur(3px);
        border-radius: 50%;
        animation: shadowBob 4.5s ease-in-out infinite;
        pointer-events: none;
      }

      @keyframes shadowBob {
        0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 1; }
        50% { transform: translateX(-50%) scaleX(0.82); opacity: 0.7; }
      }

      .stage.rolling .die-btn::after {
        animation: shadowRoll 1.9s ease-in-out;
      }

      @keyframes shadowRoll {
        0% { transform: translateX(-50%) scaleX(1); }
        25% { transform: translateX(-50%) scaleX(0.45); }
        55% { transform: translateX(-50%) scaleX(1.1); }
        75% { transform: translateX(-50%) scaleX(0.7); }
        100% { transform: translateX(-50%) scaleX(1); }
      }

      .scene {
        width: var(--s);
        height: var(--s);
        transform-style: preserve-3d;
        transition: transform 0.35s ease;
      }

      .die-btn:hover .scene { transform: scale(1.05); }

      .cube {
        position: absolute;
        inset: 0;
        transform-style: preserve-3d;
        will-change: transform;
        transform: rotateX(-18deg) rotateY(26deg);
      }

      .face {
        position: absolute;
        inset: 0;
        background: linear-gradient(145deg, #fbf6e8 0%, #efe6cd 100%);
        border: 1px solid rgba(90, 70, 30, 0.35);
        border-radius: 0;
        box-shadow: inset 0 0 22px rgba(120, 90, 40, 0.18), inset 0 -10px 18px rgba(120, 90, 40, 0.14);
        backface-visibility: hidden;
        display: grid;
        place-items: center;
      }

      .pips {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        width: 100%;
        height: 100%;
        padding: 10%;
      }

      .pip {
        place-self: center;
        width: 48%;
        height: 48%;
        border-radius: 50%;
        background: radial-gradient(circle at 32% 28%, #4d4635 0%, #16130c 70%);
        box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.55), 0 1px 1px rgba(255, 255, 255, 0.35);
      }

      .burst-pip {
        position: absolute;
        left: 50%;
        top: 50%;
        z-index: 5;
        width: 12px;
        height: 12px;
        margin: -6px 0 0 -6px;
        border-radius: 50%;
        background: var(--ivory);
        box-shadow: 0 0 14px rgba(233, 185, 84, 0.85);
        pointer-events: none;
      }

      .result {
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 18px;
        flex-wrap: wrap;
        margin-top: 2px;
        min-height: 92px;
      }

      .result .word {
        font-size: clamp(0.85rem, 1.6vw, 1rem);
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: rgba(239, 230, 205, 0.75);
        width: 100%;
        text-align: center;
      }

      .result .nums {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        flex-wrap: wrap;
      }

      .result .num {
        font-family: "Bungee", cursive;
        font-size: clamp(3.2rem, 9vw, 5rem);
        line-height: 1;
        color: var(--gold);
        text-shadow: 0 8px 30px rgba(233, 185, 84, 0.35), 0 2px 0 rgba(0, 0, 0, 0.3);
      }

      .result .num:empty { display: none; }

      .result .num-sep {
        font-family: "Bungee", cursive;
        font-size: clamp(1.8rem, 4vw, 2.6rem);
        color: rgba(239, 230, 205, 0.4);
      }

      .num.pop { animation: pop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1); }

      @keyframes pop {
        0% { transform: scale(0.2) rotate(-12deg); opacity: 0; }
        100% { transform: scale(1) rotate(0); opacity: 1; }
      }

      .hint {
        margin-top: 12px;
        font-size: 0.85rem;
        color: rgba(239, 230, 205, 0.6);
        animation: hintPulse 2.4s ease-in-out infinite;
      }

      .hint kbd {
        font-family: inherit;
        font-size: 0.75rem;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-bottom-width: 2px;
        padding: 2px 7px;
        border-radius: 5px;
      }

      .hint.dim { animation: none; opacity: 0.55; }

      @keyframes hintPulse {
        0%, 100% { opacity: 0.5; }
        50% { opacity: 0.95; }
      }

      .stats { margin-top: 36px; width: min(760px, 100%); }

      .panel-head {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 14px;
      }

      .panel-head h2 {
        font-family: "Bungee", cursive;
        font-size: 1rem;
        letter-spacing: 0.06em;
        color: var(--ivory);
      }

      .panel-head span {
        font-size: 0.8rem;
        font-weight: 600;
        color: rgba(239, 230, 205, 0.6);
      }

      .stat-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
      }

      .stat {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.045);
        border: 1px solid rgba(233, 185, 84, 0.16);
        border-radius: 12px;
        padding: 13px 10px 14px;
        transition: 0.3s;
      }

      .stat:hover {
        transform: translateY(-3px);
        background: rgba(255, 255, 255, 0.08);
      }

      .stat.hit {
        border-color: var(--gold);
        box-shadow: 0 0 0 1px var(--gold), 0 8px 24px rgba(233, 185, 84, 0.2);
      }

      .mini {
        width: 38px;
        height: 38px;
        background: var(--ivory);
        border-radius: 9px;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
      }

      .stat b {
        font-family: "Bungee", cursive;
        font-size: 0.9rem;
        color: var(--cream);
      }

      .stat .cnt {
        font-size: 0.72rem;
        font-weight: 700;
        color: rgba(239, 230, 205, 0.55);
      }

      .bar {
        width: 100%;
        height: 5px;
        border-radius: 99px;
        background: rgba(0, 0, 0, 0.35);
        overflow: hidden;
      }

      .bar i {
        display: block;
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg, var(--gold), #f4d488);
        border-radius: 99px;
        transition: width 0.7s cubic-bezier(0.3, 1, 0.4, 1);
      }

      .history { margin-top: 32px; width: min(760px, 100%); }

      .chips {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
        min-height: 44px;
        margin-top: 12px;
      }

      .chips .empty {
        font-size: 0.85rem;
        font-style: italic;
        color: rgba(239, 230, 205, 0.45);
      }

      .chip {
        width: 40px;
        height: 40px;
        background: var(--ivory);
        border-radius: 9px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
        animation: chipIn 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
      }

      @keyframes chipIn {
        from { transform: scale(0) rotate(-40deg); opacity: 0; }
        to { transform: scale(1) rotate(0); opacity: 1; }
      }

      footer {
        position: relative;
        z-index: 2;
        padding: 26px 20px 36px;
        text-align: center;
        font-size: 0.78rem;
        color: rgba(239, 230, 205, 0.45);
      }

      footer b { color: var(--gold); font-weight: 800; }

      footer a {
        color: var(--gold);
        text-decoration: none;
        transition: 0.25s;
      }

      footer a:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
      }

      @media (max-width: 700px) {
        header { flex-wrap: wrap; }
        .brand { width: 100%; }
        .dropdown { margin-left: auto; }
        .header-actions {
          width: 100%;
          justify-content: flex-end;
          margin-left: auto;
          flex-wrap: wrap;
          gap: 6px;
        }
        .coin-btn,
        .ghost-btn,
        #langSelector,
        #diceCountSelector {
          font-size: 0.68rem;
          padding: 8px 12px;
        }
        #diceCountSelector { padding-right: 28px; }

        .stage.dice-2 { --s: clamp(80px, 26vmin, 120px); --h: calc(var(--s) / 2); }
        .stage.dice-3 { --s: clamp(64px, 22vmin, 95px); --h: calc(var(--s) / 2); }
        .stage.dice-2 .die-btn,
        .stage.dice-3 .die-btn {
          width: calc(var(--s) + 22px);
          height: calc(var(--s) + 22px);
        }
        .stage.dice-2 .dice-row { gap: 6px; }
        .stage.dice-3 .dice-row { gap: 4px; }
      }

      .stage.dice-2 .die-btn,
      .stage.dice-3 .die-btn {
        width: calc(var(--s) + 26px);
        height: calc(var(--s) + 26px);
      }

      .stage.dice-2 .dice-row { gap: clamp(4px, 2vmin, 14px); }
      .stage.dice-3 .dice-row { gap: clamp(4px, 1.4vmin, 10px); }

      @media (max-width: 560px) {
        .stat-grid { grid-template-columns: repeat(3, 1fr); }
        .result { gap: 12px; }
        .result .word { font-size: 0.75rem; }

        .stage.dice-2 { --s: clamp(68px, 24vmin, 105px); --h: calc(var(--s) / 2); }
        .stage.dice-3 { --s: clamp(56px, 20vmin, 82px); --h: calc(var(--s) / 2); }
        .stage.dice-2 .die-btn,
        .stage.dice-3 .die-btn {
          width: calc(var(--s) + 18px);
          height: calc(var(--s) + 18px);
        }
        .stage.dice-3 .dice-row { gap: 4px; }
      }

      .cookie-banner {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: rgba(8, 28, 20, 0.96);
        backdrop-filter: blur(14px);
        border-top: 1px solid rgba(233, 185, 84, 0.3);
        padding: 18px clamp(18px, 4vw, 42px);
        transform: translateY(100%);
        transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
      }

      .cookie-banner.visible { transform: translateY(0); }

      .cookie-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        flex-wrap: wrap;
        max-width: 860px;
        margin: 0 auto;
      }

      .cookie-content p {
        font-size: 0.84rem;
        line-height: 1.5;
        color: rgba(239, 230, 205, 0.8);
      }

      .cookie-content p b { color: var(--gold); font-weight: 700; }

      .cookie-actions {
        display: flex;
        gap: 10px;
        flex-shrink: 0;
      }

      .cookie-actions .coin-btn {
        margin-left: 0;
        background: rgba(233, 185, 84, 0.18);
        color: var(--gold);
        border-color: var(--gold);
        font-weight: 800;
      }

      .cookie-actions .coin-btn:hover { background: rgba(233, 185, 84, 0.3); }

      @media (max-width: 560px) {
        .cookie-content { flex-direction: column; text-align: center; }
        .cookie-actions { width: 100%; justify-content: center; }
      }
