* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            touch-action: manipulation;
        }
        
        :root {
            --layout-padding: clamp(8px, 2vw, 24px);
            --control-button-size: clamp(64px, 12vw, 80px);
            --joystick-size: clamp(80px, 16vw, 112px);
            --control-bottom-offset: clamp(12px, 4vh, 28px);
            --control-side-offset: clamp(12px, 5vw, 32px);
            --control-stack-gap: clamp(10px, 3vh, 16px);
            --ui-font-size: clamp(14px, 2.4vw, 16px);
            --ui-heading-font-size: clamp(18px, 2.8vw, 20px);
            --hud-scale: 0.6667;
            --menu-panel-width: 420px;
        }

        body {
            background-color: #222;
            color: #fff;
            font-family: Arial, sans-serif;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100dvh;
            padding: var(--layout-padding);
        }

        body.fullscreen-active {
            justify-content: flex-start;
        }

        #gameContainer {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9;
            max-height: none;
        }

        body.fullscreen-active #gameContainer {
            max-width: none;
        }

        #gameCanvas {
            background-color: #111;
            display: block;
            width: 100%;
            height: 100%;
            border-radius: 12px;
            touch-action: none;
        }
        
        #uiContainer {
            position: absolute;
            top: clamp(6px, 2vh, 12px);
            left: clamp(6px, 2vw, 16px);
            z-index: 10;
            display: flex;
            flex-direction: column;
            gap: 10px;
            font-size: var(--ui-font-size);
            min-width: clamp(280px, 28vw, 360px);
            max-width: clamp(320px, 60vw, 420px);
            transform: scale(var(--hud-scale));
            transform-origin: top left;
        }

        #hudStatusContainer {
            position: absolute;
            top: clamp(6px, 2vh, 12px);
            right: clamp(6px, 2vw, 16px);
            z-index: 10;
            display: flex;
            flex-direction: column;
            gap: 6px;
            font-size: var(--ui-font-size);
            min-width: clamp(180px, 26vw, 240px);
            align-items: stretch;
            transform: scale(var(--hud-scale));
            transform-origin: top right;
        }

        #hudTopRow {
            display: flex;
            gap: 8px;
            align-items: stretch;
            flex-wrap: wrap;
        }

        #hudProgressRow {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .hud-card {
            background: rgba(12, 18, 26, 0.32);
            padding: 10px 12px;
            border-radius: 12px;
        }

        .health-card {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1 1 260px;
        }

        .status-card {
            display: flex;
            flex-direction: column;
            gap: 6px;
            flex: 0 1 200px;
        }

        .status-row {
            display: flex;
            justify-content: space-between;
            gap: 8px;
            font-weight: 600;
            color: #e6edff;
            padding: 0;
            border-radius: 0;
        }

        .status-row .value {
            color: #f9d66b;
        }

        .hud-bar-group {
            display: flex;
            flex-direction: column;
            gap: 4px;
            flex: 1 1 auto;
        }

        .hud-value {
            font-weight: 700;
            color: #f0f4ff;
        }

        .hud-icon {
            width: 38px;
            height: 38px;
            object-fit: contain;
        }

        .ui-bar,
        #healthBar,
        .progress-bar {
            width: 100%;
            height: 22px;
            background-color: rgba(255, 255, 255, 0.08);
            overflow: hidden;
            border-radius: 12px;
        }

        #healthBar {
            justify-content: flex-start;
        }

        #healthFill {
            height: 100%;
            width: 100%;
            background: linear-gradient(90deg, #4caf50, #7fe07d);
            transition: width 0.3s;
        }

        .progress-card {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 12px;
            background: rgba(0, 0, 0, 0.26);
            flex: 1 1 260px;
        }

        .progress-body {
            display: flex;
            flex-direction: column;
            gap: 4px;
            flex: 1 1 auto;
        }

        .progress-label {
            font-weight: 700;
            color: #e6edff;
            letter-spacing: 0.02em;
        }

        .progress-bar {
            height: 18px;
            border-radius: 10px;
        }

        .progress-fill {
            height: 100%;
            width: 0;
            transition: width 0.25s ease;
        }

        .clue-bar .progress-fill {
            background: linear-gradient(90deg, #2ecc71, #7bed9f);
        }

        .upgrade-bar .progress-fill {
            background: linear-gradient(90deg, #f4d03f, #f39c12);
        }

        .value-bar {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .bar-value {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            color: #ffffff;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
            pointer-events: none;
        }

        .progress-value {
            font-weight: 800;
            color: #ffffff;
        }
        
        #controls {
            position: absolute;
            inset: 0;
            z-index: 10;
            pointer-events: none;
        }

        #joystickControls {
            position: absolute;
            left: var(--control-side-offset);
            bottom: var(--control-bottom-offset);
            display: flex;
            align-items: flex-end;
            pointer-events: none;
            gap: clamp(12px, 3vw, 20px);
        }

        #joystickContainer {
            position: relative;
            width: var(--joystick-size);
            height: var(--joystick-size);
            pointer-events: auto;
            touch-action: none;
        }

        #joystickBase {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            border: 2px solid rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(6px);
            touch-action: none;
        }

        #joystickHandle {
            position: absolute;
            width: clamp(32px, 8vw, 44px);
            height: clamp(32px, 8vw, 44px);
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.35);
            border: 2px solid rgba(255, 255, 255, 0.6);
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            margin-left: 0;
            margin-top: 0;
            transition: transform 0.1s ease;
            touch-action: none;
            pointer-events: none;
        }

        #buttonControls {
            position: absolute;
            inset: 0;
            pointer-events: none;
        }

        #buttonControls .button-move-group,
        #buttonControls .button-action-group {
            display: flex;
            pointer-events: auto;
        }

        #buttonControls .button-move-group {
            flex-direction: row;
            gap: clamp(12px, 4vw, 20px);
        }

        #buttonControls .button-action-group {
            flex-direction: column;
            gap: clamp(12px, 4vw, 20px);
        }

        .control-anchor-left,
        .control-anchor-right {
            position: absolute;
            bottom: var(--control-bottom-offset);
        }

        .control-anchor-left {
            left: var(--control-side-offset);
        }

        .control-anchor-right {
            right: var(--control-side-offset);
        }

        #attackBtn {
            position: absolute;
            right: var(--control-side-offset);
            bottom: var(--control-bottom-offset);
            pointer-events: auto;
        }

        .control-btn {
            width: var(--control-button-size);
            height: var(--control-button-size);
            background-color: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.5);
            border-radius: 50%;
            color: white;
            font-size: clamp(22px, 5vw, 28px);
            display: flex;
            align-items: center;
            justify-content: center;
            user-select: none;
            -webkit-user-select: none;
            touch-action: none;
            backdrop-filter: blur(6px);
            pointer-events: auto;
        }

        .control-btn.has-texture {
            background-repeat: no-repeat;
            background-position: center;
            background-size: 70%;
            font-weight: 700;
        }

        .control-btn:active {
            background-color: rgba(255, 255, 255, 0.4);
        }

        .control-btn.disabled {
            opacity: 0.45;
            pointer-events: none;
            filter: grayscale(0.35);
        }

        .attack-btn {
            background-color: rgba(255, 70, 70, 0.7);
        }

        .ability-btn {
            background-color: rgba(255, 215, 0, 0.75);
            color: #221;
            font-weight: bold;
        }

        #abilityBtn {
            position: absolute;
            right: var(--control-side-offset);
            bottom: calc(var(--control-bottom-offset) + var(--control-button-size) + var(--control-stack-gap));
            pointer-events: auto;
        }

        #controls.buttons-mode #abilityBtn {
            bottom: var(--control-bottom-offset);
            right: calc(var(--control-side-offset) + var(--control-button-size) + var(--control-stack-gap));
        }

        .control-btn.cooldown {
            opacity: 0.55;
        }

        #controlSchemeSection {
            max-width: 640px;
            margin-bottom: clamp(16px, 4vh, 28px);
            text-align: left;
        }

        #controlSchemeHeading {
            font-size: var(--ui-heading-font-size);
            margin-bottom: 10px;
            text-align: center;
        }

        .control-descriptions {
            display: flex;
            flex-direction: column;
            gap: 6px;
            font-size: var(--ui-font-size);
            margin-bottom: 14px;
        }

        #controlSchemeOptions {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 12px;
        }

        .control-option {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 14px;
            border-radius: 24px;
            background-color: rgba(255, 255, 255, 0.12);
            cursor: pointer;
            font-size: var(--ui-font-size);
            user-select: none;
        }

        #controlMenuButtons {
            margin-top: 16px;
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .control-option input[type="radio"] {
            accent-color: #ffcc00;
        }

        @media (max-width: 900px) {
            :root {
                --layout-padding: clamp(6px, 3vw, 18px);
            }

            #uiContainer {
                gap: clamp(4px, 2vw, 10px);
            }

            #menuButtons {
                gap: clamp(6px, 2vw, 12px);
            }
        }

        @media (max-width: 768px) {
            body {
                padding: clamp(6px, 3vw, 16px);
            }

            #gameContainer {
                max-width: 100%;
            }

            #uiContainer {
                left: clamp(8px, 4vw, 20px);
            }

            #controls {
                padding: 0;
            }
        }

        @media (max-width: 600px) {
            body {
                padding: clamp(4px, 2.5vw, 12px);
            }

            #gameContainer {
                max-height: 100dvh;
            }

            #uiContainer {
                top: clamp(8px, 4vh, 18px);
                left: clamp(8px, 5vw, 20px);
            }

            #mobileInstructions {
                font-size: 13px;
            }
        }

        @media (max-width: 768px) and (orientation: portrait) {
            #screen {
                grid-template-columns: 1fr;
                grid-template-areas:
                    "logo"
                    "menu"
                    "instructions";
                align-items: center;
            }

            #logoContainer {
                width: min(320px, 70%);
                justify-self: center;
            }

            #menuButtons {
                gap: clamp(6px, 2vw, 12px);
                width: var(--menu-panel-width);
                max-width: 100%;
                justify-self: center;
                grid-area: menu;
            }
        }

        @media (max-width: 768px) and (orientation: landscape) {
            #screen {
                grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
                grid-template-areas:
                    "menu logo"
                    "menu instructions";
                align-items: start;
                gap: clamp(10px, 2.4vw, 20px);
            }

            #logoContainer {
                width: min(360px, 58vw);
                justify-self: end;
                grid-area: logo;
            }

            #menuButtons {
                width: var(--menu-panel-width);
                max-width: 100%;
                align-self: start;
                justify-self: start;
                grid-area: menu;
            }

            #mobileInstructions {
                text-align: right;
                grid-area: instructions;
                margin-top: 4px;
            }
        }
        
        #screen {
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100%;
            display: grid;
            grid-template-columns: minmax(360px, 1.1fr) minmax(260px, 0.9fr);
            grid-template-areas:
                "menu logo"
                "menu instructions";
            align-items: start;
            gap: clamp(14px, 3vw, 32px);
            padding: clamp(12px, 3vw, 28px);
            background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('./Background.png') center/cover no-repeat;
            z-index: 40;
            overflow: hidden;
        }

        #screen.playflow-active {
            grid-template-columns: 1fr;
            grid-template-areas:
                "menu";
            justify-items: center;
            align-items: start;
        }

        #logoContainer {
            display: flex;
            justify-content: center;
            align-items: center;
            width: min(420px, 42%);
            max-width: 520px;
            max-height: clamp(160px, 28vh, 280px);
            grid-area: logo;
        }

        #screen.playflow-active #logoContainer {
            display: none;
        }

        #gameLogo {
            width: 100%;
            height: auto;
            max-height: 100%;
            max-width: 100%;
            object-fit: contain;
            filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
        }

        #difficultySection {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 14px;
            padding: 16px 18px;
            margin-bottom: 10px;
            width: min(100%, 620px);
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        #screen.playflow-active #difficultySection {
            width: 100%;
        }

        #difficultySection h2 {
            font-size: clamp(18px, 2.6vw, 24px);
            color: #f5f7ff;
            margin: 0;
        }

        .difficulty-hint {
            color: #cfd8ff;
            font-size: clamp(13px, 2.3vw, 17px);
            line-height: 1.4;
        }

        #difficultyOptions {
            display: grid;
            grid-template-columns: repeat(2, minmax(180px, 1fr));
            grid-auto-rows: auto;
            gap: 12px;
        }

        .difficulty-option {
            display: flex;
            align-items: center;
            gap: 10px;
            background-color: #cf7805;
            border: 1px solid #b56704;
            border-radius: 12px;
            padding: 8px 12px;
            font-size: 14px;
            color: #ffffff;
            box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36);
            cursor: pointer;
            transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
            width: 100%;
            text-align: left;
            appearance: none;
            user-select: none;
        }

        .difficulty-option:hover {
            background-color: #b56704;
            border-color: #9f5a03;
            box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38);
            transform: translateY(-1px);
        }

        .difficulty-option:focus-within {
            outline: 2px solid #ffcc66;
            outline-offset: 3px;
        }

        .difficulty-option.selected {
            background-color: #b56704;
            border-color: #9f5a03;
            box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38);
        }

        .difficulty-body {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .difficulty-title {
            font-weight: 700;
            font-size: clamp(15px, 2.4vw, 18px);
            color: #fff;
            line-height: 1.2;
        }

        .difficulty-option.selected .difficulty-title {
            color: #ffe2ae;
        }
        
        button {
            padding: clamp(10px, 2vh, 16px) clamp(18px, 3vw, 28px);
            font-size: clamp(16px, 2.6vw, 22px);
            background-color: #cf7805;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            margin: 0;
            transition: background-color 0.3s;
        }

        button:hover {
            background-color: #b56704;
        }

        #menuButtons {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            justify-content: center;
            gap: clamp(10px, 2vh, 18px);
            width: var(--menu-panel-width);
            max-width: 100%;
            grid-area: menu;
        }

        #screen.playflow-active #menuButtons {
            width: min(720px, 100%);
            max-width: none;
            align-items: center;
        }

        #screen.playflow-active #playFlow {
            width: 100%;
            align-items: center;
        }

        .menu-panel {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: clamp(8px, 1.6vh, 14px);
            align-items: stretch;
            background: rgba(0, 0, 0, 0.32);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: clamp(10px, 2vw, 18px);
            backdrop-filter: blur(6px);
        }

        #screen.playflow-active .menu-panel {
            max-width: none;
        }

        .menu-panel-header {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: clamp(8px, 1.5vw, 14px);
        }

        .back-button {
            padding: clamp(8px, 1.6vh, 12px) clamp(12px, 2.4vw, 18px);
            background: rgba(255, 255, 255, 0.16);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #fff;
            border-radius: 10px;
        }

        #playFlow {
            display: flex;
            flex-direction: column;
            gap: 12px;
            width: 100%;
            align-items: stretch;
        }

        #modeSelection button {
            flex: 1 1 200px;
        }

        .menu-button-row {
            display: flex;
            gap: 12px;
            width: 100%;
            justify-content: space-between;
            flex-wrap: wrap;
        }

        .menu-button-row button {
            flex: 1 1 240px;
            min-width: 200px;
            white-space: nowrap;
        }

        @media (max-width: 480px) {
            #screen {
                flex-direction: column;
                padding: 16px;
            }

            #logoContainer {
                width: 80%;
                margin-bottom: 12px;
            }

            .menu-button-row {
                flex-direction: column;
                gap: 10px;
            }

            .menu-button-row button {
                min-width: auto;
                width: 100%;
            }
        }

        @media (orientation: landscape) and (max-height: 540px) {
            #screen,
            .screen {
                gap: clamp(8px, 2vw, 16px);
                padding: clamp(8px, 2vw, 18px);
                grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
                grid-template-areas:
                    "menu logo"
                    "menu instructions";
                align-items: start;
            }

            #logoContainer {
                width: min(320px, 34vw);
                max-height: clamp(140px, 26vh, 220px);
                align-self: start;
                justify-self: end;
                grid-area: logo;
            }

            #menuButtons {
                width: var(--menu-panel-width);
                max-width: 100%;
                gap: clamp(8px, 1.6vh, 14px);
                grid-area: menu;
                align-self: start;
            }

            #mobileInstructions {
                grid-area: instructions;
                margin-top: 0;
                text-align: right;
                align-self: start;
            }

            button {
                font-size: clamp(14px, 2vw, 18px);
                padding: clamp(8px, 1.6vh, 12px) clamp(14px, 2.4vw, 22px);
            }

            .menu-panel {
                gap: clamp(6px, 1.2vh, 12px);
            }

            #difficultySection {
                padding: clamp(12px, 2vh, 16px);
            }

            .tutorial-container {
                max-height: calc(100dvh - clamp(36px, 10vh, 96px));
            }
        }

        .screen {
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('./Background.png') center/cover no-repeat;
            z-index: 50;
            pointer-events: auto;
            padding: clamp(12px, 3vw, 28px);
            gap: clamp(10px, 2vw, 20px);
            overflow: hidden;
        }

        .orientation-overlay {
            position: fixed;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: radial-gradient(circle at 20% 20%, rgba(255, 136, 0, 0.15), transparent 32%),
                radial-gradient(circle at 80% 80%, rgba(255, 203, 106, 0.12), transparent 34%),
                rgba(0, 0, 0, 0.9);
            z-index: 120;
            padding: clamp(16px, 4vw, 36px);
            text-align: center;
        }

        .orientation-card {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 16px;
            padding: clamp(18px, 4vw, 28px);
            max-width: 520px;
            width: 100%;
            box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
        }

        .orientation-card h2 {
            margin-bottom: 10px;
            font-size: clamp(20px, 3vw, 26px);
        }

        .orientation-card p {
            color: #f0f0f0;
            line-height: 1.5;
            font-size: clamp(15px, 2.4vw, 18px);
        }

        body.portrait-locked {
            overflow: hidden;
        }

        .hidden {
            display: none !important;
        }

        .scene-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background-color: #000;
            color: #fff;
            text-align: center;
            z-index: 55;
            pointer-events: auto;
            padding: 24px;
        }

        .story-scene-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: clamp(16px, 4vmin, 32px);
            width: 100%;
            height: 100%;
            max-width: none;
            padding: clamp(16px, 4vmin, 40px);
            overflow: auto;
        }

        #storySceneImage {
            width: auto;
            max-width: min(90vw, 960px);
            max-height: min(75vh, 720px);
            height: auto;
            object-fit: contain;
            border: 6px solid rgba(255, 255, 255, 0.65);
            border-radius: 16px;
            box-shadow: 0 0 24px rgba(0, 0, 0, 0.75);
            background-color: #111;
        }

        #storySceneText {
            font-size: clamp(16px, 2.5vmin, 28px);
            line-height: 1.5;
            color: #f0f0f0;
            max-width: min(90vw, 960px);
        }

        #storySceneHint {
            font-size: clamp(13px, 2vmin, 18px);
            color: #bbbbbb;
            max-width: min(90vw, 960px);
        }
        
        #mobileInstructions {
            margin-top: 20px;
            text-align: center;
            font-size: 14px;
            color: #aaa;
            grid-area: instructions;
            align-self: start;
        }

        #screen.playflow-active #mobileInstructions {
            display: none;
        }

        #tutorialScreen {
            justify-content: center;
            align-items: center;
            padding: clamp(20px, 5vw, 40px);
        }

        .tutorial-container {
            background: rgba(0, 0, 0, 0.85);
            border-radius: 16px;
            padding: clamp(20px, 4vw, 36px);
            width: min(640px, 90vw);
            display: flex;
            flex-direction: column;
            gap: 18px;
            box-shadow: 0 0 32px rgba(0, 0, 0, 0.6);
        }

        .tutorial-container h2 {
            text-align: center;
            font-size: clamp(22px, 3vw, 30px);
        }

        .tutorial-content {
            display: flex;
            flex-direction: column;
            gap: 16px;
            max-height: min(70vh, 520px);
            overflow-y: auto;
            padding-right: 6px;
        }

        .tutorial-actions {
            display: flex;
            justify-content: center;
        }

        .tutorial-step {
            display: flex;
            align-items: center;
            gap: 16px;
            background: rgba(255, 255, 255, 0.06);
            border-radius: 12px;
            padding: 14px 16px;
        }

        .tutorial-text {
            flex: 1 1 auto;
            font-size: clamp(16px, 2.2vw, 20px);
            line-height: 1.4;
        }

        .tutorial-media {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .tutorial-icon {
            height: 2.2em;
            width: auto;
            object-fit: contain;
        }

        .tutorial-icon.platform-preview {
            height: 0.55em;
            width: auto;
        }

        .tutorial-icon-group {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .clue-texture-grid {
            justify-content: flex-start;
        }

        .clue-texture {
            --clue-texture-size: calc(64px / 1.5);
            height: var(--clue-texture-size);
            width: var(--clue-texture-size);
            border-radius: 10px;
            object-fit: cover;
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
            background: rgba(0, 0, 0, 0.35);
        }

        .clue-texture--compact {
            height: calc(var(--clue-texture-size) / 2);
            width: calc(var(--clue-texture-size) / 2);
        }

        .tutorial-powerups .tutorial-media {
            justify-content: space-between;
            width: 100%;
        }

        .powerup-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 10px;
            width: 100%;
        }

        .powerup-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 10px;
            padding: 10px 12px;
        }

        .powerup-label {
            font-weight: 700;
            color: #f0f4ff;
        }

        .powerup-chip {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: 800;
            color: #1d1d1d;
            background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 223, 128, 0.92));
            border: 2px solid rgba(255, 195, 15, 0.9);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
        }

        @media (max-width: 720px) {
            .tutorial-step {
                flex-direction: column;
                align-items: flex-start;
            }

            .tutorial-media {
                justify-content: flex-start;
            }
        }
