:root {
  --pink: #ff6f9f;
  --pink-deep: #e0507f;
  --cream: #fff8ef;
  --ink: #5b3d5f;
  --gold: #c98a10;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: #ffd6e2;
  color: var(--ink);
  font-family: 'DotGothic16', 'M PLUS Rounded 1c', monospace;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
#wrap { position: fixed; inset: 0; display: grid; place-items: center; overflow: hidden; }
#game { display: block; touch-action: none; image-rendering: pixelated; }
#mute {
  position: absolute; right: max(8px, env(safe-area-inset-right)); bottom: 8px; z-index: 5;
  font: inherit; font-size: 13px; padding: 6px 10px; border: 0; background: #fff; color: var(--ink); cursor: pointer;
  box-shadow: 0 0 0 3px var(--ink);
}
/* pixel frame: square corners with a stepped border */
.panel {
  position: absolute; z-index: 4; width: min(92vw, 660px); max-height: 94vh; overflow: auto;
  background: var(--cream); padding: 20px 26px 0; text-align: center;
  box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--ink), 8px 8px 0 8px rgba(91, 61, 95, .35);
  animation: pop .25s steps(4);
}
.panel.wide { width: min(94vw, 920px); }
.panel { scrollbar-width: thin; scrollbar-color: #ffb0c8 transparent; }
@keyframes pop { from { transform: scale(.8); } to { transform: scale(1); } }
.panel h1 { margin: 0; font-size: clamp(34px, 6vw, 58px); color: var(--pink); letter-spacing: .06em; text-shadow: 4px 4px 0 #ffc2d4; font-weight: 400; }
.panel h2 { margin: 0 0 4px; font-size: clamp(22px, 3.4vw, 30px); color: var(--pink); font-weight: 400; }
.day { margin: 4px 0 0; font-size: 28px; }
.rank { margin: 2px 0; font-size: 16px; color: var(--gold); }
.stats { margin: 0 0 10px; font-size: 13px; color: #8a7390; }
.row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 10px 0 18px; }
.row.sticky { position: sticky; bottom: 0; background: var(--cream); margin: 8px -26px 0; padding: 12px 0 18px; }
.panel button {
  font: inherit; font-size: 17px; border: 0; cursor: pointer; padding: 10px 18px; background: #fff; color: var(--pink-deep);
  box-shadow: 0 0 0 4px var(--ink), 0 6px 0 4px var(--ink); margin-bottom: 6px; position: relative;
}
.panel button.big { background: var(--pink); color: #fff; font-size: 22px; padding: 12px 30px; }
.panel button:active { transform: translateY(4px); box-shadow: 0 0 0 4px var(--ink), 0 2px 0 4px var(--ink); }
.panel button:disabled { opacity: .45; cursor: default; }
.panel button.link { background: none; box-shadow: none; color: #b9a3c2; font-size: 12px; padding: 4px; margin: 0 0 10px; }
.new { position: absolute; top: -14px; right: -12px; background: #ff8a3d; color: #fff; font-size: 12px; padding: 2px 6px; box-shadow: 0 0 0 3px var(--ink); }
.sales { margin: 0; font-size: 48px; color: var(--gold); }
.sales.small { font-size: 30px; }
.sub { margin: 0 0 8px; font-size: 14px; }
#r-goals { list-style: none; padding: 0; margin: 6px auto; max-width: 520px; text-align: left; }
#r-goals li { padding: 4px 10px; margin: 4px 0; background: #fff; box-shadow: 0 0 0 3px #ead9e6; color: #a08aa8; }
#r-goals li.done { color: #2f9e60; box-shadow: 0 0 0 3px #a6efc2; }
#r-goals li.stamp { background: #fff3c4; color: var(--gold); box-shadow: 0 0 0 3px #ffd166; }
#r-list { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
#r-list li { display: grid; grid-template-columns: 52px 4.5em 1fr; align-items: center; text-align: left; background: #fff; box-shadow: 0 0 0 3px #ead9e6; padding: 4px 10px; column-gap: 8px; }
#r-list li canvas { grid-row: span 2; }
#r-list li small { grid-column: 2 / 4; color: #8a7390; }
.hearts i { font-style: normal; font-size: 20px; color: #f2d6e0; margin-right: 1px; }
.hearts i.on { color: #ff4f86; }
.hearts i.lost { color: #c9b3cf; text-decoration: line-through; }
.hearts i.gain { animation: beat .6s steps(3) both; }
@keyframes beat { 0% { transform: scale(0); color: #f2d6e0; } 60% { transform: scale(1.6); } 100% { transform: scale(1); color: #ff4f86; } }
.friend { display: flex; align-items: center; gap: 12px; background: #fff0f5; box-shadow: 0 0 0 3px #ffb0c8; padding: 6px 14px; text-align: left; margin: 10px 0; animation: pop .4s .5s steps(4) both; }
.friend.rank { background: #fff3c4; box-shadow: 0 0 0 3px #ffd166; color: var(--gold); }
#nb-grid, #s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 8px; }
.card, .item { background: #fff; box-shadow: 0 0 0 3px #ead9e6; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.card canvas { image-rendering: pixelated; }
.card b, .item b { font-size: 18px; font-weight: 400; }
.card p { margin: 0; font-size: 12px; }
.card small, .item small { font-size: 12px; color: #9a86a3; }
.card.locked, .item.locked { background: #f6eef6; }
.item canvas { width: 48px; height: 48px; image-rendering: pixelated; }
.item.owned { box-shadow: 0 0 0 3px #a6efc2; }
.item button { font-size: 15px; padding: 6px 14px; margin-top: 6px; }
@media (max-height: 480px) {
  .panel { padding: 10px 16px 0; }
  .panel h1 { font-size: 30px; }
  .day { font-size: 20px; margin: 0; }
  .sales { font-size: 30px; }
  .panel button { padding: 7px 12px; font-size: 14px; }
  .panel button.big { font-size: 17px; padding: 9px 20px; }
  .row.sticky { margin: 6px -16px 0; padding: 8px 0 12px; }
}

/* ---------- title screen (over the pixel shop on the canvas) ---------- */
.title-screen {
  position: absolute; z-index: 4; width: var(--stage-w, 100vw); height: var(--stage-h, 100vh);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; pointer-events: none;
}
.title-screen > * { pointer-events: auto; }
.logo { margin: calc(var(--stage-h, 720px) * 0.03) 0 0; display: flex; flex-direction: column; align-items: center; font-family: 'M PLUS Rounded 1c', sans-serif; font-weight: 800; line-height: 1; }
.logo .small { font-size: calc(var(--stage-h, 720px) * 0.06); color: #8a4f8f; -webkit-text-stroke: 0; text-shadow: 3px 0 #fff, -3px 0 #fff, 0 3px #fff, 0 -3px #fff, 4px 4px 0 #ffd0de; }
.logo .big { font-size: calc(var(--stage-h, 720px) * 0.13); letter-spacing: .02em; text-shadow: 5px 0 #fff, -5px 0 #fff, 0 5px #fff, 0 -5px #fff, 4px 4px #fff, -4px -4px #fff, 4px -4px #fff, -4px 4px #fff, 8px 8px 0 rgba(160, 80, 120, .35); }
.logo .p { color: #ff5f95; }
.logo .m { color: #43c2a0; }
.logo .v { color: #a7569f; }
.logo .ribbon { width: calc(var(--stage-w, 1280px) * 0.3); height: calc(var(--stage-h, 720px) * 0.02); margin-top: calc(var(--stage-h, 720px) * 0.012); background: #ff9fbd; box-shadow: 0 0 0 3px #fff; }
.title-buttons { display: flex; gap: calc(var(--stage-w, 1280px) * 0.02); margin-bottom: calc(var(--stage-h, 720px) * 0.05); }
.tb {
  font-family: 'DotGothic16', monospace; font-size: calc(var(--stage-h, 720px) * 0.045); border: 0; cursor: pointer;
  padding: calc(var(--stage-h, 720px) * 0.018) calc(var(--stage-w, 1280px) * 0.03); display: flex; align-items: center; gap: .5em;
  box-shadow: 0 0 0 4px #fff, 0 0 0 8px #5b3d5f, 0 8px 0 8px #5b3d5f; color: #5b3d5f;
}
.tb i { font-style: normal; }
.tb.pink { background: #ff7fa8; color: #fff; }
.tb.lav { background: #d9c8ff; }
.tb.cream { background: #fff6e8; }
.tb:active { transform: translateY(6px); box-shadow: 0 0 0 4px #fff, 0 0 0 8px #5b3d5f, 0 2px 0 8px #5b3d5f; }
.tb:disabled { opacity: .5; cursor: default; }

/* ---------- before opening ---------- */
.next { margin: 4px 0 8px; padding: 6px 10px; background: #fff3c4; box-shadow: 0 0 0 3px #ffd166; color: var(--gold); }
.stampcard { background: #fff; box-shadow: 0 0 0 3px #ffb0c8; padding: 8px 10px; margin: 10px 0 4px; }
.stampcard b { font-weight: 400; color: var(--pink-deep); }
#h-stamps { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 6px 0; }
#h-stamps i { font-style: normal; aspect-ratio: 1; display: grid; place-items: center; background: #fff0f5; box-shadow: 0 0 0 2px #ffd0de; color: #ffc2d4; font-size: 16px; }
#h-stamps i.on { background: #ff8fb1; color: #fff; }
#h-stamps i.prize { box-shadow: 0 0 0 2px #ffd166; color: #e8a91c; }
#h-stamps i.prize.on { color: #fff; }
.stampcard small { font-size: 12px; color: #8a7390; }
.row.col { flex-direction: column; align-items: center; }
.panel { overflow-x: hidden; scrollbar-width: none; }
.panel::-webkit-scrollbar { display: none; }
.friend.stamp { background: #fff3c4; box-shadow: 0 0 0 3px #ffd166; color: var(--gold); }

[hidden] { display: none !important; }

/* ---------- full screen, phones, settings ---------- */
html, body { height: 100dvh; }
#wrap { height: 100dvh; }
.panel button.danger { background: #fff0f3; color: #e0506f; }
.ask { background: #fff0f3; box-shadow: 0 0 0 3px #ffb0c8; padding: 10px 14px; margin-top: 6px; }
.ask p { margin: 0 0 8px; font-size: 14px; }
.stampcard b { display: block; }
#rotate { display: none; position: fixed; inset: 0; z-index: 10; background: #ffd6e2; place-items: center; text-align: center; font-size: 22px; color: #5b3d5f; }
#rotate b { color: #ff4f86; font-weight: 400; }
@media (orientation: portrait) and (max-width: 820px) { #rotate { display: grid; } }
/* touch: no long-press menus or text selection on the play field */
#game { -webkit-touch-callout: none; }
@media (max-height: 480px) {
  .panel { max-height: 96dvh; width: min(96vw, 760px); }
  .panel.wide { width: 96vw; }
  .stats, .stampcard small { font-size: 11px; }
  #h-stamps i { font-size: 12px; }
  .next { padding: 3px 8px; margin: 2px 0 4px; font-size: 13px; }
  .stampcard { padding: 4px 8px; margin: 4px 0 0; }
  .tb { font-size: 18px; }
}

/* ---------- settings over the game, four languages, the monthly stamp card ---------- */
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 16px; margin: 12px 4px 8px; }
.set-grid button { margin: 0; }
.easy-note { margin: 2px 0 6px; font-size: 12px; color: #8a7390; }
.paused { margin: 0; color: #fff; background: #ff8fb1; display: inline-block; padding: 2px 12px; font-size: 14px; }
.langs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin: 8px 0 14px; font-size: 15px; }
.langs #set-langs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.panel .langs button { padding: 6px 12px; font-size: 15px; margin: 0; }
.panel .langs button.on { background: var(--pink); color: #fff; }
#h-stamps.month { grid-template-columns: repeat(7, 1fr); gap: 3px; }
#h-stamps.month i { font-size: 11px; color: #c9a3b5; aspect-ratio: auto; height: 22px; position: relative; }
#h-stamps.month i.on { color: #fff; font-size: 14px; }
#h-stamps.month i.today { box-shadow: 0 0 0 2px var(--pink); }
#h-stamps.month i.miss { background: #f2edf2; color: #d0c3d4; }
#h-stamps.month i.blank { background: none; box-shadow: none; }
.prizes { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; margin: 4px 0; font-size: 12px; }
.prizes span { color: #9a86a3; }
.prizes span.got { color: #2f9e60; }
.prizes span.full { color: var(--gold); }
.stampcard .rule { display: block; color: #a08aa8; }
.friend.item { background: #e9f8ff; box-shadow: 0 0 0 3px #9fd0ff; }
html.lang-en .logo .big, html.lang-zh .logo .big { letter-spacing: 0; }
@media (max-height: 480px) {
  .set-grid { gap: 10px 12px; margin: 8px 0 4px; }
  #h-stamps.month i { height: 16px; font-size: 9px; }
  .prizes { font-size: 10px; }
}
canvas.marble { width: 22px; height: 22px; vertical-align: -4px; image-rendering: pixelated; margin-left: 6px; }
.sales canvas.marble { width: 34px; height: 34px; vertical-align: -2px; }
.item small.fan { display: flex; align-items: center; gap: 4px; }
.item small.fan canvas { width: 28px; height: auto; }
#h-news .friend { margin: 6px 0; }
#settings { width: min(96vw, 820px); }
.set-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.set-grid button { font-size: 16px; white-space: nowrap; padding: 10px 8px; }
@media (max-height: 480px) { .set-grid button { font-size: 13px; padding: 7px 6px; } .set-grid { grid-template-columns: repeat(3, 1fr); } }
.help { margin: 2px 0 6px; font-size: 14px; color: #3f9fd0; }
.help canvas.marble { margin: 0 4px 0 0; }
/* room between the rows of settings (the buttons' pixel shadow reaches 10px below them) */
.set-grid { gap: 26px 18px; margin: 16px 4px 18px; }
.langs { margin: 20px 0 30px; gap: 14px; }
.langs #set-langs { gap: 14px; }
.easy-note { margin: 4px 0 4px; }
@media (max-height: 480px) { .set-grid { gap: 20px 12px; margin: 10px 2px 12px; } .langs { margin: 12px 0 20px; } }
/* ---------- monthly ranking ---------- */
.rk-div { display: flex; gap: 12px; justify-content: center; margin: 6px 0 2px; }
.panel .rk-div button { padding: 6px 16px; font-size: 15px; }
.panel .rk-div button.on { background: var(--pink); color: #fff; }
.rk-note { display: block; font-size: 12px; color: #9a86a3; margin-bottom: 8px; }
#rk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.rk-card { background: #fff; box-shadow: 0 0 0 3px #ead9e6; padding: 8px 10px; text-align: left; }
.rk-card b { display: block; font-weight: 400; color: var(--pink-deep); font-size: 14px; }
.rk-card .now { font-size: 26px; color: var(--ink); }
.rk-card .now.up { color: #2f9e60; }
.rk-card small { display: block; font-size: 11px; color: #9a86a3; }
.rk-caption { margin: 14px 0 4px; font-size: 13px; color: #8a7390; }
.rk-scroll { overflow-x: auto; }
#rk-table { border-collapse: collapse; width: 100%; font-size: 13px; background: #fff; }
#rk-table th { background: #ffeaf2; color: var(--pink-deep); font-weight: 400; padding: 4px 6px; cursor: pointer; white-space: nowrap; }
#rk-table th.sorted { background: var(--pink); color: #fff; }
#rk-table td { padding: 3px 6px; border-top: 1px solid #f2e4ee; text-align: right; white-space: nowrap; }
#rk-table tr.top td { background: #fff7d6; }
#rk-table canvas.marble { width: 16px; height: 16px; margin: 0 2px 0 0; vertical-align: -3px; }
.rk-empty { color: #9a86a3; font-size: 14px; }
.rk-card small canvas.marble { width: 14px; height: 14px; margin: 0 1px 0 2px; vertical-align: -2px; }
.rk-card .now canvas.marble { width: 24px; height: 24px; margin: 0 4px 0 0; vertical-align: -3px; }
.panel button canvas.marble { width: 18px; height: 18px; margin: 0 3px 0 0; vertical-align: -3px; }
/* a little room between the marble and its number */
canvas.marble { margin-right: 8px; }
.sales canvas.marble { margin-right: 12px; }
#rk-table canvas.marble, .rk-card small canvas.marble { margin-right: 5px; }
.rk-card .now canvas.marble { margin-right: 8px; }
.panel button canvas.marble { margin-right: 7px; }
/* ---------- the boards (top 50 per category) ---------- */
.rk-cats { display: flex; flex-wrap: wrap; gap: 14px 12px; justify-content: center; margin: 6px 0 16px; }
.panel .rk-cats button { padding: 7px 12px; font-size: 14px; margin: 0; }
.rk-guest { font-size: 13px; color: #8a7390; margin: 0 0 10px; }
.panel .rk-guest button { padding: 5px 12px; font-size: 13px; margin: 0 0 0 8px; }
.bd-me { margin: 4px auto 12px; padding: 8px 12px; background: #fff3c4; box-shadow: 0 0 0 3px #ffd166; color: var(--gold); font-size: 17px; max-width: 460px; }
.bd-list { list-style: none; padding: 0; margin: 0 auto; max-width: 520px; text-align: left; }
.bd-list li { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; padding: 7px 12px; margin: 0 0 8px; background: #fff; box-shadow: 0 0 0 3px #f2dce8; }
.bd-list li .place { font-size: 18px; color: var(--pink-deep); text-align: center; }
.bd-list li .who { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-list li .val { font-size: 16px; color: #3f9fd0; white-space: nowrap; }
.bd-list li.podium .place { color: #fff; font-size: 16px; padding: 3px 0; }
.bd-list li.p1 { background: #fff7d6; box-shadow: 0 0 0 3px #ffd166; }
.bd-list li.p1 .place { background: #e8a91c; }
.bd-list li.p2 { box-shadow: 0 0 0 3px #cfd6e4; }
.bd-list li.p2 .place { background: #a7b0c4; }
.bd-list li.p3 { box-shadow: 0 0 0 3px #f0c4a0; }
.bd-list li.p3 .place { background: #d08a5a; }
.bd-list li.empty { display: block; color: #9a86a3; text-align: center; }
.bd-list li canvas.marble { width: 16px; height: 16px; margin-right: 5px; vertical-align: -3px; }
.bd-me canvas.marble { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }
.bd-meta { display: block; color: #a08aa8; font-size: 11px; margin: 6px 0; }
@media (max-height: 480px) { .bd-list li { padding: 4px 10px; margin-bottom: 6px; } .bd-me { font-size: 14px; padding: 5px 10px; } }
/* rows of buttons never touch (each button's pixel shadow reaches 10px below it) */
.row { row-gap: 26px; }
.rk-cats { gap: 26px 14px; margin: 10px 0 24px; }
/* the ranking buttons: two even rows (6 + 5), and room between rows even when a row wraps on a phone */
.rk-cats { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.rk-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 14px; }
/* ---------- the sign-in entrance ---------- */
.title-screen .acct { position: absolute; top: calc(var(--stage-h, 720px) * 0.03); right: calc(var(--stage-w, 1280px) * 0.02); font-family: 'DotGothic16', monospace; font-size: 15px; padding: 6px 14px; border: 0; cursor: pointer; background: #fff; color: var(--pink-deep); box-shadow: 0 0 0 3px var(--ink), 0 5px 0 3px var(--ink); max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-acct { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; margin: 2px 0 10px; font-size: 13px; color: #6f5a78; }
.panel .h-acct button { padding: 5px 12px; font-size: 13px; margin: 0; }
.choose-row { display: flex; flex-wrap: wrap; gap: 26px 18px; justify-content: center; margin: 14px 0 10px; }
.panel .choose-row button { display: flex; flex-direction: column; gap: 6px; min-width: 220px; padding: 14px 18px; }
.panel .choose-row button b { font-weight: 400; font-size: 18px; }
.panel .choose-row button span { font-size: 14px; color: var(--ink); }
.choose-note { font-size: 12px; color: #9a86a3; margin: 4px 0 18px; }
/* this week's challenges (members) */
.h-ch { background: #fff; box-shadow: 0 0 0 3px #9fd0ff; padding: 6px 12px; margin: 12px 0 4px; text-align: left; }
.h-ch b { font-weight: 400; color: #3f9fd0; font-size: 14px; }
.h-ch ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13px; }
.h-ch li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.h-ch li.done { color: #2f9e60; }
/* ---------- the rest of the year (DECISIONS H25) ---------- */
/* tabs: rows of buttons never touch (each button's pixel shadow reaches 10px below it) */
.tabs { display: flex; flex-wrap: wrap; gap: 26px 12px; justify-content: center; margin: 12px 0 22px; }
.panel .tabs button { padding: 6px 12px; font-size: 14px; margin: 0; }
.panel .tabs button.on { background: var(--pink); color: #fff; }
.item .badge { font-size: 11px; color: #fff; background: #ff8a3d; padding: 1px 8px; box-shadow: 0 0 0 2px var(--ink); }
.item .badge.beach { background: #3fa8ff; }
.item .equip { display: flex; gap: 8px; }
.item button.on { background: #a6efc2; color: var(--ink); }
.h-shop { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 6px 0 16px; font-size: 14px; }
.panel .h-shop button { padding: 6px 14px; font-size: 15px; margin: 0; }
.panel .h-shop button.on { background: var(--pink); color: #fff; }
.h-season { margin: 6px 0; padding: 5px 10px; background: #e9f8ff; box-shadow: 0 0 0 3px #9fd0ff; color: #2f7fb0; font-size: 14px; }
.h-titles { margin: 6px 0; font-size: 13px; color: var(--gold); }
.lu-msg { min-height: 1.2em; margin: 0 0 6px; color: #e0506f; font-size: 14px; }
.lu-place { background: #fff; box-shadow: 0 0 0 3px #ead9e6; padding: 8px 10px; margin: 0 0 16px; text-align: left; }
.lu-place b { font-weight: 400; color: var(--pink-deep); }
.lu-place small { color: #9a86a3; margin-left: 8px; }
.lu-items { display: flex; flex-wrap: wrap; gap: 26px 12px; margin: 10px 0 14px; }
.panel .lu-items button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 8px; min-width: 76px; font-size: 12px; margin: 0; background: #f6eef6; color: #9a86a3; }
.panel .lu-items button.on { background: #fff; color: var(--ink); box-shadow: 0 0 0 4px #ff6f9f, 0 6px 0 4px var(--ink); }
.lu-items canvas { width: 42px; height: 48px; image-rendering: pixelated; }
.mn-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 10px 0; }
.mn-card { background: #fff; box-shadow: 0 0 0 3px #ffd0de; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mn-card canvas { width: 78px; height: 150px; image-rendering: pixelated; }
.mn-card b { font-weight: 400; color: var(--pink-deep); font-size: 15px; }
.mn-card small { color: #9a86a3; font-size: 12px; }
.mn-card .warn { color: #e0506f; }
.mn-card .row { margin: 6px 0 12px; gap: 26px 10px; }
.panel .mn-card button { padding: 5px 10px; font-size: 13px; margin: 0; }
.mn-edit { background: #fff; box-shadow: 0 0 0 3px #ff8fb1; padding: 12px; margin: 10px 0 16px; text-align: left; }
.mn-edit .mn-preview { display: flex; align-items: flex-end; gap: 16px; }
.mn-edit .mn-preview canvas { width: 104px; height: 200px; image-rendering: pixelated; }
.mn-edit h3 { font-weight: 400; font-size: 14px; color: var(--pink-deep); margin: 12px 0 4px; }
.mn-edit select { font: inherit; font-size: 15px; padding: 4px 6px; margin: 0 6px 6px 0; }
.mn-pick { display: flex; flex-wrap: wrap; gap: 26px 10px; margin-bottom: 12px; }
.panel .mn-pick button { padding: 4px 6px; margin: 0; display: flex; flex-direction: column; align-items: center; font-size: 11px; min-width: 60px; background: #fff; color: var(--ink); }
.panel .mn-pick button.on { box-shadow: 0 0 0 4px #ff6f9f, 0 6px 0 4px var(--ink); }
.mn-pick canvas { width: 36px; height: 42px; image-rendering: pixelated; }
.mn-contest { background: #fff7d6; box-shadow: 0 0 0 3px #ffd166; padding: 10px 12px; margin: 10px 0 14px; text-align: left; }
.mn-contest b { font-weight: 400; color: var(--gold); }
.mn-contest p { margin: 4px 0; font-size: 14px; }
.mn-contest small { display: block; color: #9a86a3; font-size: 12px; }
.panel .mn-contest button { padding: 6px 12px; font-size: 14px; margin: 10px 10px 20px 0; }
.mn-result { color: var(--pink-deep); font-size: 16px; }
.nb-titles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 6px; font-size: 13px; }
.nb-titles span { background: #fff3c4; box-shadow: 0 0 0 2px #ffd166; color: var(--gold); padding: 2px 10px; }
.nb-titles span.none { background: none; box-shadow: none; color: #b9a3c2; }
.card .fav { color: var(--pink-deep); }
.card .tagline { color: #3f9fd0; }
.ct-menu { display: flex; align-items: center; gap: 8px; }
.ct-menu canvas { width: 26px; height: 50px; image-rendering: pixelated; }
@media (max-height: 480px) {
  .tabs { gap: 20px 8px; margin: 8px 0 16px; }
  .panel .tabs button { padding: 4px 8px; font-size: 12px; }
  .mn-card canvas { width: 52px; height: 100px; }
  .mn-edit .mn-preview canvas { width: 70px; height: 135px; }
}
