@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: #0a0b0f; padding: 12px 16px; z-index: 10; font-family: var(--font-pixel); font-size: 10px; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.px { font-family: var(--font-pixel); }
.tm { font-size: 9px; color: var(--text-mute); }
h1, h2 { font-family: var(--font-pixel); font-weight: 400; margin: 0; line-height: 1.4; }
h2 { font-size: 20px; margin-bottom: 24px; }

/* top bar */
.topbar { background: var(--bar); border-bottom: 4px solid var(--rule); }
.topbar .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.brand { font-family: var(--font-pixel); font-size: 18px; color: var(--accent); line-height: 1.4; min-height: 44px; display: flex; align-items: center; }
.hotbar { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { width: 72px; height: 72px; background: var(--panel); border: 4px solid var(--edge); box-shadow: inset 4px 4px 0 var(--panel-hi), inset -4px -4px 0 var(--panel-lo); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; transition: transform .1s; }
.slot.is-selected { border-color: #fff; }
.slot span { font-family: var(--font-pixel); font-size: 8px; }
.slot:hover { border-color: #fff; transform: translateY(-3px); }
.back { font-family: var(--font-pixel); font-size: 10px; padding: 14px 16px; min-height: 44px; display: inline-flex; align-items: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-family: var(--font-pixel); border: 4px solid var(--edge); }
.btn:hover { filter: brightness(1.12); }
.btn-green { background: var(--accent); color: var(--bar); font-size: 12px; padding: 18px 22px; box-shadow: 4px 4px 0 var(--edge); }
.btn-gold { background: var(--gold); color: var(--bar); font-size: 12px; padding: 18px 22px; box-shadow: 4px 4px 0 var(--edge); }
.btn-white { background: #fff; color: var(--bar); font-size: 11px; padding: 16px 18px; box-shadow: 4px 4px 0 var(--panel-hi); }
.btn-lg { font-size: 13px; padding: 20px 26px; box-shadow: 4px 4px 0 var(--panel-hi); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { position: relative; background: linear-gradient(var(--sky-top), var(--sky-bottom)); border-bottom: 4px solid var(--edge); overflow: hidden; }
.cloud { position: absolute; height: 28px; background: var(--cloud, #fff); opacity: .9; animation: drift 16s ease-in-out infinite alternate; }
.cloud:nth-of-type(even) { animation-duration: 22s; animation-delay: -6s; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(28px); } }
.hero .wrap { position: relative; pointer-events: none; padding-top: 72px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; }
.hero-copy { flex: 1 1 420px; min-width: 0; padding-bottom: 56px; }
.tag { display: inline-block; background: var(--edge); color: var(--accent); font-family: var(--font-pixel); font-size: 10px; padding: 8px 12px; margin-bottom: 20px; }
.hero h1 { font-size: 40px; line-height: 1.3; color: var(--ink, var(--edge)); text-shadow: 4px 4px 0 var(--ink-shadow, #fff); margin-bottom: 20px; }
.lede { margin: 0 0 28px; font-size: 20px; line-height: 1.5; color: var(--ink, var(--edge)); max-width: 520px; font-weight: 500; }
.hero-card { flex: 0 1 340px; min-width: 260px; margin: 0 auto; padding: 16px; }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 1; border: 4px solid var(--edge); }
.hero-card .name { font-family: var(--font-pixel); font-size: 11px; margin-top: 14px; color: var(--accent); }
.hero-card .sub { font-size: 14px; color: var(--text-soft); margin-top: 6px; }
.grass { filter: brightness(var(--dim, 1)); height: 32px; background: var(--grass); border-top: 4px solid var(--edge); }
.dirt { filter: brightness(var(--dim, 1)); height: 36px; background: repeating-linear-gradient(90deg, var(--dirt) 0 32px, var(--dirt-dark) 32px 64px); border-bottom: 4px solid var(--edge); margin-bottom: -4px; }

/* status bar */
.status { margin-top: 40px; background: var(--bar); border: 4px solid var(--rule); padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.status .label { font-family: var(--font-pixel); font-size: 9px; color: var(--text-mute); margin-bottom: 10px; }
.hearts { display: flex; gap: 4px; flex-wrap: wrap; }
.xp { flex: 1 1 280px; min-width: 0; }
.xp-bar { height: 20px; background: var(--panel); border: 4px solid var(--panel-hi); }
.xp-bar div { width: 72%; height: 100%; background: var(--accent); }

/* quests */
.section { padding-top: 56px; }
.quests { --cols: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.quest { display: block; flex: 0 0 calc((100% - (var(--cols) - 1) * 20px) / var(--cols)); padding: 24px; min-height: 160px; transition: transform .1s; }
.quest:hover { transform: translate(-2px, -2px); }
.quest .q { font-family: var(--font-pixel); font-size: 10px; margin-bottom: 14px; }
.quest .t { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.quest .d { font-size: 15px; color: var(--text-soft); }

/* latest drop */
.drop { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.thumb { flex: 2 1 480px; min-width: 0; aspect-ratio: 16 / 9; position: relative; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, var(--slot-art) 0 24px, #262b3b 24px 48px); border: 4px solid var(--edge); box-shadow: 8px 8px 0 var(--edge); overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play { position: relative; width: 96px; height: 96px; background: var(--accent); border: 4px solid var(--edge); display: flex; align-items: center; justify-content: center; }
.thumb-note { position: absolute; left: 16px; bottom: 16px; background: var(--edge); padding: 6px 10px; font-size: 14px; color: var(--text-soft); }
.drop-info { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.drop-info .k { font-family: var(--font-pixel); font-size: 10px; color: var(--accent); }
.drop-title { font-size: 28px; font-weight: 700; line-height: 1.25; }
.drop-date { font-size: 15px; color: var(--text-soft); }
.drop-info .btn { align-self: flex-start; }

/* pet */
.pet { padding: 32px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; margin-top: 72px; }
.pet-art { flex: 0 0 200px; width: 200px; height: 200px; margin: 0 auto; background: var(--slot-art); border: 4px solid var(--edge); display: flex; align-items: center; justify-content: center; }
.pet-body { flex: 1 1 320px; min-width: 0; }
.pet .k { font-family: var(--font-pixel); font-size: 10px; color: var(--pink); margin-bottom: 14px; }
.pet .n { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.pet p { margin: 0 0 18px; font-size: 17px; line-height: 1.55; color: var(--text-soft); max-width: 560px; }

/* footer */
.footer { margin-top: 72px; background: var(--bar); border-top: 4px solid var(--panel-hi); }
.footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.brand { gap: 10px; }
.cube { display: block; height: 40px; width: auto; }
.brand .tm { align-self: flex-start; margin-top: 6px; margin-left: -6px; }
.footer .brand { font-size: 12px; min-height: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; color: var(--text-soft); }
.footer nav a { min-height: 44px; display: flex; align-items: center; }
.footer .made { font-size: 14px; color: var(--text-mute); }

/* fingers page */
.banner { background: linear-gradient(var(--gold), #ffe9a8); border-bottom: 4px solid var(--edge); }
.banner .wrap { padding-top: 64px; padding-bottom: 56px; }
.banner .tag { color: var(--gold); }
.banner h1 { font-size: 56px; line-height: 1.2; color: var(--edge); text-shadow: 4px 4px 0 #fff; margin-bottom: 16px; }
.banner p { margin: 0; font-size: 20px; line-height: 1.5; color: var(--edge); max-width: 620px; font-weight: 500; }
.fingers-main { padding-top: 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.preview { flex: 0 1 380px; min-width: 260px; margin: 0 auto; padding: 20px; }
.paper { display: block; width: 100%; height: auto; background: #fff; border: 4px solid var(--edge); }
.preview .cap { font-family: var(--font-pixel); font-size: 9px; color: var(--text-mute); margin-top: 14px; }
.inside { flex: 1 1 400px; min-width: 0; }
.inside h2 { font-size: 18px; margin-bottom: 20px; }
.items { list-style: none; margin: 0 0 36px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.items li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; }
.items .num { flex: 0 0 auto; width: 36px; height: 36px; background: var(--accent); color: var(--bar); font-family: var(--font-pixel); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.items .txt { font-size: 17px; line-height: 1.5; color: #e4e8f3; padding-top: 2px; }

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .quests { --cols: 1; }
  .hero h1 { font-size: 28px; }
  .banner h1 { font-size: 36px; }
  .hero .wrap { padding-top: 48px; }
  .pet { padding: 20px; }
  .thumb-note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .slot, .quest { transition: none; }
  .slot:hover, .quest:hover { transform: none; }
}

/* play page */
.game-wrap { padding-top: 40px; }
.game { max-width: 560px; margin: 0 auto; padding: 20px; }
.hud { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; margin-bottom: 16px; }
.hud .label, .game .label { font-family: var(--font-pixel); font-size: 9px; color: var(--text-mute); margin-bottom: 10px; }
.hud-score { margin-left: auto; }
.hud-score + .hud-score { margin-left: 0; }
.score { font-family: var(--font-pixel); font-size: 20px; color: var(--accent); line-height: 1; }
.life { fill: var(--heart); }
.life.lost { fill: var(--panel-hi); }
.board-wrap { position: relative; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hole { position: relative; aspect-ratio: 1; min-height: 44px; padding: 0; border: 4px solid var(--edge); background: var(--dirt); cursor: pointer; overflow: hidden; font: inherit; color: inherit; touch-action: manipulation; }
.hole::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22%; background: var(--grass); border-bottom: 4px solid var(--edge); }
.hole::after { content: ""; position: absolute; left: 14%; right: 14%; top: 34%; bottom: 8%; background: var(--bar); }
.hole:hover { border-color: #fff; }
.finger { position: absolute; left: 50%; bottom: 8%; width: 40%; transform: translate(-50%, 160%); transition: transform .08s; z-index: 1; pointer-events: none; }
.finger svg { display: block; width: 100%; height: auto; }
.hole.up .finger { transform: translate(-50%, 0); }
.hole.gold .finger .skin { fill: var(--gold); }
.hole.hit { background: var(--accent); }
.overlay { position: absolute; inset: 0; background: rgba(10, 11, 15, .92); border: 4px solid var(--edge); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 20px; z-index: 2; }
.overlay[hidden] { display: none; }
.ov-title { font-family: var(--font-pixel); font-size: 18px; line-height: 1.4; color: var(--accent); }
.ov-text { margin: 0; font-size: 17px; line-height: 1.5; color: var(--text-soft); max-width: 380px; }
.hint { margin: 16px 0 0; font-size: 14px; color: var(--text-mute); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
@media (max-width: 720px) {
  .hole { border-width: 3px; }
  .board { gap: 8px; }
  .ov-title { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .finger { transition: none; }
}

/* games menu and dodge game */
.gamebar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 560px; margin: 0 auto 20px; }
.gbtn { font-family: var(--font-pixel); font-size: 10px; line-height: 1.4; padding: 14px 16px; min-height: 44px; display: inline-flex; align-items: center; }
.gbtn:hover { border-color: #fff; }
.gbtn.is-current { border-color: #fff; color: var(--accent); }
.arena-wrap { max-width: 360px; margin: 0 auto; }
.arena { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; image-rendering: pixelated; border: 4px solid var(--edge); background: var(--sky-top); touch-action: none; }
.pad { display: flex; justify-content: center; gap: 16px; margin-top: 16px; }
.pad-btn { width: 88px; min-height: 56px; font-size: 22px; color: var(--text); cursor: pointer; touch-action: none; user-select: none; font-family: var(--font-body); }
.pad-btn:active { border-color: #fff; }

/* interactive kitten */
.pet-art { position: relative; }
.pet-btn { display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; touch-action: manipulation; }
.pet-btn svg { display: block; }
#kitten .eyes-closed, #kitten .zzz { display: none; }
#kitten.is-happy .eyes-open, #kitten.is-blink .eyes-open, #kitten.is-asleep .eyes-open { display: none; }
#kitten.is-happy .eyes-closed, #kitten.is-blink .eyes-closed, #kitten.is-asleep .eyes-closed { display: inline; }
#kitten.is-asleep .zzz { display: inline; }
.pet-btn.bounce svg { animation: kitten-bounce .35s; }
@keyframes kitten-bounce { 0% { transform: translateY(0); } 40% { transform: translateY(-10px); } 100% { transform: translateY(0); } }
.love { fill: var(--pink); }
.love.lost { fill: var(--panel-hi); }
.pet .mood { margin: 0 0 14px; font-size: 15px; color: var(--accent); min-height: 1.5em; }
.pet-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.float-heart { position: absolute; width: 22px; height: 19px; pointer-events: none; fill: var(--pink); animation: float-up .9s ease-out forwards; }
@keyframes float-up { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-70px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .pet-btn.bounce svg, .float-heart { animation: none; }
}

/* comic reader */
.reader-wrap { padding-top: 40px; }
.reader { max-width: 540px; margin: 0 auto; padding: 20px; }
.pages { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.page img { display: block; width: auto; height: auto; max-width: 100%; max-height: 78vh; margin: 0 auto; background: #fff; border: 4px solid var(--edge); }
.js-reader .pages { touch-action: pan-y; }
.js-reader .page { display: none; }
.js-reader .page.is-current { display: block; }
.reader-bar { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.js-reader .reader-bar { display: flex; }
.reader-bar .btn { font-size: 10px; padding: 14px 12px; white-space: nowrap; box-shadow: 4px 4px 0 var(--panel-hi); }
.reader-bar .btn[disabled] { opacity: .4; cursor: default; filter: none; }
.pageno { white-space: nowrap; font-family: var(--font-pixel); font-size: 9px; color: var(--text-soft); text-align: center; }
.dots { display: none; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 8px; }
.js-reader .dots { display: flex; }
.dot { width: 44px; height: 44px; padding: 0; color: var(--text); font-family: var(--font-pixel); font-size: 10px; cursor: pointer; }
.dot[aria-current="true"] { border-color: #fff; color: var(--accent); }
.reader .hint { text-align: center; }
.reader-end { justify-content: center; margin-top: 20px; }

/* trophy case */
.trophy-count { margin: -8px 0 20px; font-size: 15px; color: var(--text-soft); }
.trophy-grid { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trophy { display: flex; gap: 14px; align-items: center; padding: 16px; }
.trophy-icon { flex: 0 0 auto; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--slot-art); border: 4px solid var(--edge); }
.trophy-name { font-size: 17px; font-weight: 700; line-height: 1.25; }
.trophy-hint { font-size: 14px; color: var(--text-soft); margin-top: 4px; line-height: 1.4; }
.trophy.is-locked .trophy-icon svg { filter: grayscale(1) brightness(.5); }
.trophy.is-locked .trophy-name { color: var(--text-mute); }
.trophy.is-got { border-color: var(--gold); }
.trophy.is-got .trophy-hint { color: var(--accent); }
.trophy-reset { font-size: 10px; padding: 12px 14px; box-shadow: 4px 4px 0 var(--panel-hi); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 20; display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px); padding: 12px 16px; background: var(--panel); border: 4px solid var(--gold); box-shadow: 4px 4px 0 var(--edge); pointer-events: none; opacity: 0; transition: transform .25s, opacity .25s; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast-k { font-family: var(--font-pixel); font-size: 8px; color: var(--gold); margin-bottom: 6px; }
.toast-n { font-size: 17px; font-weight: 700; }
@media (max-width: 960px) { .trophy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .trophy-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* day and night sky */
.hero .wrap > * { pointer-events: auto; }
.stars { position: absolute; inset: 0; opacity: var(--stars, 0); pointer-events: none; }
.stars::before { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 3px; background: transparent; box-shadow: 49vw 13px 0 #fff, 28vw 162px 0 #fff, 82vw 248px 0 #fff, 6vw 136px 0 #fff, 5vw 162px 0 #fff, 73vw 223px 0 #fff, 13vw 69px 0 #fff, 74vw 106px 0 #fff, 66vw 167px 0 #fff, 24vw 286px 0 #fff, 46vw 269px 0 #fff, 61vw 274px 0 #fff, 14vw 56px 0 #fff, 77vw 188px 0 #fff, 54vw 186px 0 #fff, 25vw 88px 0 #fff, 80vw 241px 0 #fff, 10vw 42px 0 #fff, 52vw 294px 0 #fff, 9vw 269px 0 #fff, 82vw 71px 0 #fff, 94vw 26px 0 #fff, 70vw 94px 0 #fff, 10vw 119px 0 #fff, 99vw 223px 0 #fff, 72vw 234px 0 #fff, 56vw 258px 0 #fff, 79vw 264px 0 #fff, 84vw 253px 0 #fff, 57vw 35px 0 #fff, 64vw 150px 0 #fff, 22vw 30px 0 #fff, 53vw 198px 0 #fff, 81vw 240px 0 #fff, 3vw 250px 0 #fff, 29vw 225px 0 #fff, 80vw 185px 0 #fff, 9vw 72px 0 #fff, 16vw 53px 0 #fff, 30vw 101px 0 #fff, 82vw 75px 0 #fff, 29vw 81px 0 #fff, 98vw 197px 0 #fff, 27vw 91px 0 #fff, 81vw 298px 0 #fff, 80vw 282px 0 #fff; }
.orb { position: absolute; z-index: 1; width: 40px; height: 40px; margin: 0; padding: 0; border: 4px solid var(--edge); cursor: pointer; transform: translateX(-50%); }
.orb.is-sun { background: var(--gold); box-shadow: 0 0 0 8px rgba(255, 210, 94, .4); }
.orb.is-moon { background: #e8ecff; box-shadow: 0 0 0 8px rgba(232, 236, 255, .2); }
.orb.is-moon::before { content: ""; position: absolute; left: 6px; top: 6px; width: 8px; height: 8px; background: #c7cde8; box-shadow: 16px 10px 0 #c7cde8, 4px 20px 0 #c7cde8; }
.orb:hover { border-color: #fff; }
@media (max-width: 720px) { .orb { width: 32px; height: 32px; box-shadow: none; } .orb.is-sun { box-shadow: 0 0 0 6px rgba(255, 210, 94, .4); } .orb.is-moon { box-shadow: 0 0 0 6px rgba(232, 236, 255, .2); } .orb.is-moon::before { left: 4px; top: 4px; width: 6px; height: 6px; box-shadow: 12px 8px 0 #c7cde8, 3px 16px 0 #c7cde8; } }
@media (prefers-reduced-motion: reduce) { .cloud { animation: none; } }

/* pixel finger maker */
.maker-wrap { padding-top: 40px; }
.maker { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: flex-start; }
.maker-canvas { flex: 1 1 340px; max-width: 440px; padding: 20px; }
.maker-tools { flex: 1 1 340px; max-width: 440px; padding: 20px; }
.grid-wrap { position: relative; border: 4px solid var(--edge); background: repeating-conic-gradient(#2b3042 0 25%, #262b3b 0 50%) 0 0 / 12.5% 12.5%; }
.grid-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(to right, rgba(0, 0, 0, .28) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 0, 0, .28) 1px, transparent 1px); background-size: 6.25% 6.25%; }
.grid { display: block; width: 100%; height: auto; aspect-ratio: 1; image-rendering: pixelated; cursor: crosshair; touch-action: none; }
.kcursor { position: absolute; width: 6.25%; height: 6.25%; border: 3px solid #fff; outline: 2px solid var(--edge); pointer-events: none; display: none; z-index: 1; }
.kcursor.is-on { display: block; }
.maker .label { font-family: var(--font-pixel); font-size: 9px; color: var(--text-mute); margin: 16px 0 10px; }
.maker .label:first-child { margin-top: 0; }
.tool-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tool { min-height: 44px; padding: 10px 12px; font-family: var(--font-pixel); font-size: 9px; color: var(--text); background: var(--panel); border: 4px solid var(--edge); box-shadow: inset 3px 3px 0 var(--panel-hi), inset -3px -3px 0 var(--panel-lo); cursor: pointer; }
.tool:hover { border-color: #fff; }
.tool[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.swatches { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.swatch { aspect-ratio: 1; min-height: 36px; padding: 0; border: 4px solid var(--edge); cursor: pointer; }
.swatch:hover { border-color: #fff; }
.swatch[aria-pressed="true"] { border-color: #fff; outline: 3px solid var(--accent); outline-offset: 1px; }
.maker-save { margin: 20px 0 8px; }
@media (max-width: 720px) { .maker-canvas, .maker-tools { padding: 16px; } .swatches { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; } .swatch { min-height: 34px; border-width: 3px; } }
