@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('./assets/fonts/barlow-600.ttf') format('truetype'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('./assets/fonts/barlow-700.ttf') format('truetype'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('./assets/fonts/barlow-800.ttf') format('truetype'); }
:root { color-scheme: dark; --bg: #171c17; --panel: #20261f; --line: #3b4436; --muted: #8e9885; --ink: #f6f5e9; --lime: #d4fc57; --orange: #ff9a56; --pink: #f391a1; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Noto Sans SC', sans-serif; font-size: 14px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; border: 0; transition: background .18s, transform .18s, border-color .18s; }
button:active { transform: translateY(1px); }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
button:hover:not(:disabled) { filter: brightness(1.1); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
.site-header { height: 104px; max-width: 1440px; padding: 0 52px; margin: auto; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333b2f; }
.brand { display: flex; gap: 12px; align-items: center; font: 800 29px/.95 'Barlow Condensed', Impact, sans-serif; letter-spacing: -.5px; }
.brand-light { font-weight: 600; color: #c7cebc; margin-left: 3px; }
.brand small { display: block; font: 500 9px 'Noto Sans SC', sans-serif; letter-spacing: 5px; padding: 7px 0 0 2px; color: #a6b09c; }
.header-actions { display: flex; gap: 22px; align-items: center; }
.local-badge { font-size: 11px; color: #b1bda5; display: flex; align-items: center; gap: 7px; }
.local-badge i, .live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); display: inline-block; }
.quiet-button, .share-button { background: transparent; padding: 11px 14px; border: 1px solid #434d3b; border-radius: 7px; font-size: 12px; }
.quiet-button span { padding-left: 8px; color: #a9b59c; }
.share-button { background: #e8eadb; color: #20251b; font-weight: 700; padding: 12px 17px; }
.share-button span { margin-left: 19px; font-size: 18px; }
main { max-width: 1440px; padding: 0 52px; margin: auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; padding: 34px 0 30px; }
.eyebrow { color: var(--muted); letter-spacing: 2px; font: 600 10px 'Barlow Condensed', sans-serif; margin: 0 0 10px; }
h1 { font-size: 29px; font-weight: 700; letter-spacing: -1px; margin: 0; }
h1 > span { color: var(--lime); }
.heading-note { color: #8e9885; text-align: right; font-size: 11px; line-height: 1.9; margin: 10px 0 0; }
.play-layout { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 22px; align-items: start; }
.game-panel { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #20261e; }
.game-toolbar { height: 64px; display: flex; justify-content: space-between; align-items: center; padding: 0 19px; border-bottom: 1px solid var(--line); }
.mode-tabs { display: flex; padding: 4px; border: 1px solid #394331; border-radius: 7px; gap: 4px; }
.mode-tabs button { background: transparent; color: #98a38b; padding: 8px 13px; border-radius: 4px; font-size: 11px; }
.mode-tabs button.active { background: #3a432f; color: var(--lime); }
.mode-tabs small { margin-left: 4px; opacity: .65; }
.game-actions { display: flex; gap: 7px; }
.icon-button { background: transparent; border: 1px solid #3b4533; border-radius: 6px; height: 31px; width: 33px; color: #b5bea8; position: relative; font-size: 17px; }
.off-mark { position: absolute; right: 3px; top: 1px; font-size: 10px; }
.arena { position: relative; height: 526px; overflow: hidden; background-color: #242e1f; background-image: radial-gradient(ellipse at 50% 48%, #34412b66, transparent 65%), linear-gradient(#91a66a09 1px, transparent 1px), linear-gradient(90deg, #91a66a09 1px, transparent 1px); background-size: auto, 44px 44px, 44px 44px; }
#game-canvas { position: absolute; inset: 0; height: 100%; width: 100%; touch-action: none; cursor: crosshair; }
.scoreboard { position: absolute; pointer-events: none; top: 24px; left: 27px; right: 27px; display: flex; justify-content: space-between; }
.scoreboard > div { min-width: 100px; }
.stat-label { display: block; color: #89987a; letter-spacing: 1.1px; font: 500 9px 'Barlow Condensed', sans-serif; }
.scoreboard strong { font: 700 37px/1.1 'Barlow Condensed', Impact, sans-serif; display: block; color: #e9eddc; padding-top: 4px; letter-spacing: 1px; }
.scoreboard #score { color: var(--lime); }
.scoreboard #time { font-size: 31px; }
.scoreboard #time span { font-size: 15px; color: #9daa8c; margin-left: 4px; }
.center-stat { text-align: center; }
.best-stat { text-align: right; }
.scoreboard .best-stat strong { font-size: 25px; color: #aab69b; padding-top: 7px; }
.game-overlay { position: absolute; inset: 105px 0 39px; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; text-align: center; }
.game-overlay button { pointer-events: auto; }
.outline-pill { border: 1px solid #758061; color: #bec9ae; padding: 6px 10px; border-radius: 3px; font: 500 9px 'Barlow Condensed', sans-serif; letter-spacing: 2px; }
.game-overlay h2 { font-weight: 900; font-size: clamp(32px, 3.8vw, 54px); line-height: 1.28; margin: 18px 0 12px; letter-spacing: -2px; transform: rotate(-3deg); text-shadow: 0 2px 10px #24301e; }
.game-overlay h2 span { display: block; color: var(--lime); }
.game-overlay p { color: #bac5aa; font-size: 11px; margin: 0 0 24px; }
.lime-button { background: var(--lime); color: #24301a; font-weight: 800; font-size: 13px; padding: 15px 26px; border-radius: 6px; box-shadow: 0 4px 0 #899e3b; }
.lime-button span { margin-left: 28px; font-size: 19px; }
.start-hint { margin-top: 21px; font-size: 10px; color: #93a27f; display: flex; align-items: center; gap: 6px; }
.mouse-icon { font-size: 16px; }
.arena-bottom { position: absolute; bottom: 17px; left: 25px; right: 25px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; color: #87967a; font-size: 10px; }
.arena-bottom > span:first-child { display: flex; gap: 8px; align-items: center; }
#lives { color: #c4d0b3; letter-spacing: 6px; font-size: 21px; }
.game-footer { display: flex; align-items: center; height: 49px; padding: 0 24px; gap: 22px; border-top: 1px solid var(--line); color: #9da88f; font-size: 10px; }
.game-footer > span { display: flex; align-items: center; gap: 7px; }
.mini-dot { width: 5px; height: 5px; border-radius: 50%; }
.lime { background: var(--lime); }.orange { background: var(--orange); }.pink { background: var(--pink); }
.keyboard-hint { margin-left: auto; } kbd { background: #313a2b; font: 9px sans-serif; padding: 3px 5px; border: 1px solid #46503d; border-radius: 3px; }
.material-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 23px 20px 18px; }
.section-title { display: flex; justify-content: space-between; align-items: center; }
.section-title .eyebrow { font-size: 9px; margin-bottom: 6px; }
.section-title h2 { font-size: 20px; font-weight: 600; margin: 0; }
.count-badge { color: #b6c4a4; font: 600 11px 'Barlow Condensed', sans-serif; background: #343d2d; padding: 5px 8px; border-radius: 4px; }
.panel-description { font-size: 10px; color: #96a08b; margin: 12px 0 18px; }
.material-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.material-wrap { position: relative; min-width: 0; }
.material { background: #293222; border: 1px solid #455338; border-radius: 7px; padding: 8px 3px 7px; width: 100%; position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.material[aria-pressed="false"] { opacity: .45; border-color: #37412f; }
.material[aria-pressed="true"]::after { content: '✓'; position: absolute; right: 4px; top: 3px; color: var(--lime); font-size: 9px; }
.material img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 4px 3px #0003); transition: transform .18s; }
.material:hover img { transform: rotate(-9deg) scale(1.1); }
.material span { font-size: 9px; color: #c5cebb; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.delete-material { position: absolute; top: -5px; left: -5px; background: #714b44; height: 18px; width: 18px; border-radius: 50%; font-size: 12px; z-index: 1; }
.separator { height: 1px; background: var(--line); margin: 21px 0; }
.upload-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.upload-heading h3 { font-size: 12px; font-weight: 500; margin: 0; }
.upload-heading > span { font-size: 9px; color: var(--lime); background: #344028; border-radius: 3px; padding: 3px 5px; }
.upload-zone { width: 100%; min-height: 145px; background: #262e21; border: 1px dashed #586647; border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--lime); background: #303c24; }
.upload-icon { color: var(--lime); font-size: 23px; font-weight: 300; margin-bottom: 6px; }
.upload-zone strong { font-size: 11px; font-weight: 500; }.upload-zone small { margin-top: 7px; font-size: 9px; color: #a0ac93; }
.format-note { color: #68765d; font: 500 9px 'Barlow Condensed', sans-serif; letter-spacing: .3px; margin-top: 12px; }
.privacy-note { font-size: 9px; color: #859279; margin: 11px 0 18px; display: flex; gap: 5px; }
.tip-card { display: flex; gap: 9px; background: #323c28; border-radius: 6px; padding: 13px 11px; }.tip-card > span { color: var(--lime); font-size: 24px; }
.tip-card strong { font-size: 10px; font-weight: 500; color: #c5d3b6; }.tip-card p { font-size: 9px; color: #919e84; line-height: 1.8; margin: 5px 0 0; }
.site-footer { display: flex; align-items: center; justify-content: space-between; color: #6f7b65; padding: 24px 0 30px; font-size: 10px; }
.site-footer > span { font: 600 11px 'Barlow Condensed', sans-serif; letter-spacing: 1.5px; }.site-footer p { margin: 0; font-size: 9px; }.site-footer p span { margin: 0 12px; color: #a1b185; }.site-footer button { background: none; color: #879379; font-size: 9px; }
.glass { background: #1b241bea; backdrop-filter: blur(10px); inset: 0; z-index: 4; pointer-events: auto; }.glass h2 { font-size: 39px; }.text-button { background: transparent; color: #a7b298; font-size: 11px; margin-top: 22px; padding: 8px; }
.combo { position: absolute; pointer-events: none; top: 106px; width: 100%; color: var(--lime); text-align: center; font: italic 800 26px 'Barlow Condensed', sans-serif; text-shadow: 0 2px 12px #000; }.combo.pop { animation: pop .22s ease-out; }
@keyframes pop { from { transform: scale(1.4); } to { transform: scale(1); } }
.result-score { font: 800 86px/.95 'Barlow Condensed', Impact, sans-serif; color: var(--lime); margin-bottom: 20px; }.result-buttons { display: flex; gap: 12px; align-items: center; }
dialog { border: 1px solid #536145; border-radius: 15px; color: var(--ink); background: #222b1f; padding: 32px; width: 440px; max-width: calc(100vw - 24px); max-height: 90dvh; box-shadow: 0 30px 120px #0008; }dialog::backdrop { background: #0d130dc9; backdrop-filter: blur(6px); }dialog h2 { font-size: 23px; margin: 6px 0 23px; }dialog p { color: #a9b59e; font-size: 12px; line-height: 1.8; }.close-dialog { position: absolute; top: 13px; right: 16px; font-size: 23px; color: #9eaa93; background: transparent; }.how-list { list-style: none; padding: 0; margin: 0; }.how-list li { display: flex; gap: 18px; margin: 22px 0; }.how-list b { font: 600 25px 'Barlow Condensed', sans-serif; color: #768b5c; }.how-list strong { font-size: 13px; }.how-list p { margin: 5px 0; font-size: 11px; line-height: 1.8; }.close-help { width: 100%; margin-top: 10px; }
.checkerboard { height: 190px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: conic-gradient(#35412f 25%, #2c3627 0 50%, #35412f 0 75%, #2c3627 0) 0 0/20px 20px; }.checkerboard img { max-width: 95%; max-height: 95%; object-fit: contain; }#upload-status { font-size: 11px; min-height: 20px; margin: 12px 0; }.crop-options { display: flex; gap: 5px; }.crop-options button { flex: 1; padding: 8px 4px; background: #303d28; font-size: 10px; border: 1px solid #46563b; border-radius: 5px; }.crop-options button.active { color: var(--lime); border-color: #95ab54; }.name-label { font-size: 11px; display: block; margin: 17px 0 7px; }#material-name { width: 100%; border: 1px solid #47553d; border-radius: 5px; padding: 10px; background: #1b2418; color: var(--ink); font-size: 12px; }#save-material { width: 100%; margin-top: 18px; }.dialog-note { font-size: 10px; margin: 16px 0 0; }#about-dialog a { color: var(--lime); }#clear-data { margin-top: 16px; }.toast { position: fixed; z-index: 20; bottom: 28px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; padding: 13px 20px; background: #e1edc6; border: 1px solid #fff8; border-radius: 8px; color: #26301b; font-size: 12px; box-shadow: 0 8px 30px #0005; }
@media (min-width: 1500px) { main { padding-top: 12px; }.arena { height: 590px; }.material-panel { padding-bottom: 24px; }.upload-zone { min-height: 183px; } }
@media (max-width: 1100px) { main, .site-header { padding-left: 26px; padding-right: 26px; }.play-layout { grid-template-columns: minmax(0, 1fr) 254px; gap: 16px; }.material-panel { padding: 20px 16px; }.arena { height: 520px; }.game-footer { gap: 12px; padding: 0 16px; }.game-overlay h2 { font-size: 39px; }.game-overlay p { font-size: 10px; }.keyboard-hint { display: none !important; } }
@media (max-width: 800px) { .site-header { height: 80px; padding: 0 20px; }.brand { font-size: 25px; }.brand img { width: 34px; height: 34px; }.header-actions { gap: 8px; }.local-badge, #help-button { display: none; }.share-button { font-size: 11px; padding: 8px 12px; }.share-button span { margin-left: 10px; }main { padding: 0 18px; }.page-heading { padding: 26px 0 22px; }h1 { font-size: 25px; }.heading-note { display: none; }.play-layout { grid-template-columns: 1fr; }.arena { height: min(570px, 65dvh); min-height: 420px; }.game-overlay h2 { font-size: 48px; }.material-panel { padding: 20px; }.material-grid { grid-template-columns: repeat(6, 1fr); }.upload-zone { min-height: 125px; }.tip-card { display: none; }.privacy-note { margin-bottom: 0; }.site-footer p { display: none; }.game-toolbar { padding: 0 12px; height: 60px; }.material img { width: 45px; height: 45px; } }
@media (max-width: 450px) { main { padding: 0 12px; }.site-header { padding: 0 16px; }.eyebrow { font-size: 9px; }.page-heading { padding: 23px 2px 20px; }h1 { font-size: 23px; }.arena { min-height: 440px; }.scoreboard { left: 18px; right: 18px; top: 20px; }.scoreboard > div { min-width: 76px; }.stat-label { font-size: 8px; }.mode-tabs button { padding: 8px; font-size: 10px; }.mode-tabs small { display: none; }.material-grid { grid-template-columns: repeat(3, 1fr); }.material img { width: 56px; height: 56px; }.material span { font-size: 10px; }.game-overlay h2 { font-size: 43px; }.game-overlay { inset: 90px 0 40px; }.game-overlay.glass { inset: 0; }.game-footer { gap: 16px; font-size: 9px; }.scoreboard strong { font-size: 31px; }.scoreboard #time { font-size: 28px; }.scoreboard .best-stat strong { font-size: 24px; }.header-actions { gap: 0; }dialog { padding: 28px 22px; } }
@media (prefers-reduced-motion: reduce) { button, .material img { transition: none; }.combo.pop { animation: none; } }
