*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.grid{display:grid}.resize{resize:both}.rounded{border-radius:.25rem}.border{border-width:1px}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}*{box-sizing:border-box}html,body,#root{height:100%;height:100dvh;width:100%;margin:0;overflow:hidden}body{background:#1a1410;color:#f5ebe0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;overscroll-behavior:none;-webkit-tap-highlight-color:transparent}.game-root{position:relative;display:flex;flex-direction:column;height:100%;width:100%;overflow:hidden;background:#1a1410}.game-container{position:relative;flex:1 1 auto;min-height:0;width:100%;overflow:hidden;touch-action:none;overscroll-behavior:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.game-container canvas{display:block;width:100%;height:100%;touch-action:none}.overlay-screen{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:10;padding:calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));animation:fadeInSlide .3s ease-out}@keyframes fadeInSlide{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:10px 20px;border-radius:10px;border:1px solid rgba(212,168,67,.3);background:#3d2817cc;color:#f5ebe0;font-size:16px;font-weight:600;cursor:pointer;transition:background .15s,transform .1s;touch-action:manipulation;-moz-user-select:none;user-select:none;-webkit-user-select:none}.btn:hover{background:#3d2817}.btn:active{transform:scale(.96)}.btn:disabled{opacity:.4;cursor:not-allowed}.btn--primary{background:#d4a843;color:#1a1410;border-color:#d4a843}.btn--primary:hover{background:#e0b850}.btn--danger{border-color:#c4453666;color:#c44536}.btn--icon{min-width:44px;min-height:44px;padding:10px;font-size:20px}.main-menu{background:linear-gradient(180deg,#1a1410,#2a1a10)}.main-menu__motif{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:.3;pointer-events:none}.main-menu__content{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:16px;max-width:400px;width:100%}.main-menu__title{font-size:clamp(32px,8vw,48px);font-weight:800;color:#d4a843;margin:0;text-shadow:0 2px 8px rgba(0,0,0,.5);letter-spacing:-.02em}.main-menu__subtitle{font-size:15px;color:#a89888;text-align:center;margin:0 0 8px;line-height:1.5}.main-menu__buttons{display:flex;flex-direction:column;gap:12px;width:100%;max-width:280px}.board-selection{background:#1a1410}.board-selection__header{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:500px;margin-bottom:24px}.board-selection__title{font-size:24px;font-weight:700;color:#d4a843;margin:0}.board-selection__cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:16px;width:100%;max-width:500px}.board-card{display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:14px;border:1px solid rgba(212,168,67,.2);background:#3d281799;cursor:pointer;transition:border-color .15s,transform .1s;min-height:44px}.board-card:hover{border-color:#d4a843}.board-card:active{transform:scale(.97)}.board-card__preview{position:relative;width:100%;aspect-ratio:1;border-radius:8px;background:#1a0f0899;overflow:hidden}.board-card__dot{position:absolute;width:8px;height:8px;border-radius:50%;background:#e8d5b0;transform:translate(-50%,-50%)}.board-card__info{display:flex;flex-direction:column;gap:2px}.board-card__name{font-size:16px;font-weight:700;color:#f5ebe0}.board-card__meta{font-size:13px;color:#a89888}.hud{position:absolute;top:0;left:0;right:0;display:flex;flex-direction:column;gap:8px;padding:calc(8px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) 8px calc(12px + env(safe-area-inset-left));z-index:5;pointer-events:none}.hud__stats{display:flex;gap:8px;justify-content:center}.hud__pill{display:flex;flex-direction:column;align-items:center;min-width:80px;padding:6px 12px;border-radius:10px;background:#1a1410bf;border:1px solid rgba(212,168,67,.2);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.hud__pill-label{font-size:11px;color:#a89888;text-transform:uppercase;letter-spacing:.05em}.hud__pill-value{font-size:18px;font-weight:700;color:#f5ebe0}.hud__controls{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;pointer-events:auto}.hud__btn{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:6px 10px;border-radius:10px;border:1px solid rgba(212,168,67,.2);background:#1a1410bf;color:#f5ebe0;font-size:18px;cursor:pointer;transition:background .15s;touch-action:manipulation;-moz-user-select:none;user-select:none;-webkit-user-select:none;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.hud__btn:hover{background:#3d2817e6}.hud__btn:active{transform:scale(.95)}.hud__btn:disabled{opacity:.35;cursor:not-allowed}.hud__btn span{font-size:10px;font-weight:600;margin-top:2px}.pause-menu{background:#1a1410d9;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.pause-menu__panel{display:flex;flex-direction:column;align-items:center;gap:20px;padding:32px;border-radius:16px;background:#3d2817;border:1px solid rgba(212,168,67,.3);max-width:320px;width:100%}.pause-menu__title{font-size:28px;font-weight:800;color:#d4a843;margin:0}.pause-menu__buttons{display:flex;flex-direction:column;gap:10px;width:100%;max-width:240px}.result-screen{background:#1a1410e6;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.result-screen__panel{display:flex;flex-direction:column;align-items:center;gap:16px;padding:32px 24px;border-radius:16px;background:#3d2817;border:1px solid rgba(212,168,67,.3);max-width:360px;width:100%;max-height:90vh;overflow-y:auto}.result-screen--win .result-screen__panel{border-color:#d4a843}.result-screen__medal{display:flex;flex-direction:column;align-items:center;gap:4px}.result-screen__medal-icon{font-size:64px;line-height:1}.result-screen__medal-label{font-size:18px;font-weight:700;color:#d4a843}.result-screen__title{font-size:28px;font-weight:800;color:#f5ebe0;margin:0}.result-screen--win .result-screen__title{color:#d4a843}.result-screen__message{font-size:14px;color:#a89888;text-align:center;margin:0;line-height:1.5}.result-screen__stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px;width:100%}.result-stat{display:flex;flex-direction:column;align-items:center;padding:8px;border-radius:8px;background:#1a0f0880}.result-stat__label{font-size:11px;color:#a89888;text-transform:uppercase}.result-stat__value{font-size:18px;font-weight:700;color:#f5ebe0}.result-screen__buttons{display:flex;flex-direction:column;gap:10px;width:100%;max-width:240px;margin-top:8px}.stats-screen{background:#1a1410;justify-content:flex-start;padding-top:calc(48px + env(safe-area-inset-top))}.stats-screen__header{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:500px;margin-bottom:24px}.stats-screen__title{font-size:24px;font-weight:700;color:#d4a843;margin:0}.stats-screen__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;width:100%;max-width:500px;margin-bottom:24px}.stat-card{display:flex;flex-direction:column;align-items:center;gap:4px;padding:16px 12px;border-radius:12px;background:#3d281799;border:1px solid rgba(212,168,67,.15)}.stat-card__label{font-size:13px;color:#a89888}.stat-card__value{font-size:24px;font-weight:800;color:#f5ebe0}.stat-card--gold{border-color:#d4a84380}.stat-card--silver{border-color:#a8988880}.stat-card--bronze{border-color:#c4643666}.settings-panel{background:#1a1410e6;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.settings-panel__header{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:400px;margin-bottom:24px}.settings-panel__title{font-size:24px;font-weight:700;color:#d4a843;margin:0}.settings-panel__body{display:flex;flex-direction:column;gap:16px;width:100%;max-width:400px;margin-bottom:24px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-radius:10px;background:#3d281780;cursor:pointer}.setting-row__label{font-size:15px;color:#f5ebe0;font-weight:600}.setting-row__value{font-size:14px;color:#a89888;min-width:40px;text-align:right}.setting-row input[type=range]{flex:1;max-width:180px;accent-color:#d4a843}.setting-row--toggle{position:relative}.setting-row--toggle input[type=checkbox]{opacity:0;position:absolute;width:44px;height:44px;cursor:pointer}.toggle-switch{width:44px;height:24px;border-radius:12px;background:#1a0f08cc;border:1px solid rgba(212,168,67,.2);position:relative;transition:background .2s;pointer-events:none}.toggle-switch:after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#a89888;transition:transform .2s,background .2s}.setting-row--toggle input:checked~.toggle-switch{background:#d4a843}.setting-row--toggle input:checked~.toggle-switch:after{transform:translate(20px);background:#1a1410}.touch-controls{flex:0 0 auto;display:flex;justify-content:space-between;align-items:flex-end;gap:12px;padding:12px calc(12px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left))}.touch-controls__dpad{display:grid;grid-template-columns:repeat(3,52px);grid-template-rows:repeat(3,52px);gap:6px}.touch-controls__up{grid-area:1 / 2}.touch-controls__left{grid-area:2 / 1}.touch-controls__right{grid-area:2 / 3}.touch-controls__down{grid-area:3 / 2}.touch-controls__actions{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;justify-content:flex-end}.touch-controls__btn{min-width:52px;min-height:52px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:#0f172a8c;color:#f8fafc;font-size:20px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;touch-action:none;-moz-user-select:none;user-select:none;-webkit-user-select:none;cursor:pointer;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.touch-controls__btn:active{background:#38bdf899}@media(max-width:640px),(max-height:520px){.touch-controls{gap:8px;padding:8px calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left))}.touch-controls__dpad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,44px);gap:4px}.touch-controls__btn{min-width:44px;min-height:44px;font-size:18px}.hud__pill{min-width:70px;padding:4px 8px}.hud__pill-value{font-size:16px}.hud__btn span{display:none}.hud__btn{padding:6px 8px;font-size:20px}}@media(max-height:520px){.hud{flex-direction:row;align-items:flex-start;justify-content:space-between}.hud__stats{flex-direction:column;gap:4px}.hud__pill{min-width:60px;padding:3px 8px}.hud__pill-label{font-size:9px}.hud__pill-value{font-size:14px}}
