
/* One puzzle at a time: the goal on the left, the frame and tray on a canvas, four big
   buttons under it.  Everything else lives in the menu drawer.  Dark by design; a light
   set of the same tokens follows the system setting or the choice in the menu. */
:root {
  color-scheme: light;
  --bg: #eef0f4;
  --surface: #ffffff;
  --panel: #f5f6f9;
  --paper: #ffffff;
  --line: #d5dae4;
  --line-2: #b6bfce;
  --ink: #141a2a;
  --ink-2: #39435c;
  --muted: #566179;
  --frame: #141a2a;
  --frame-fill: #ffffff;
  --dot: #c4cad6;
  --lattice: #e3e7ee;
  --accent: #141a2a;
  --accent-ink: #ffffff;
  --accent-soft: #e4e8f1;
  --focus: #2f6fdc;
  --good: #1d8a4a;
  --bad: #c0392b;
  --star: #c98a00;
  --star-off: #aab3c3;
  --tile-ink: #141a2a;
  --tile-outline: #141a2a;
  /* square colours by size, largest first; the smallest is always amber.  Tuned so every
     pair stays apart (CIEDE2000 >= 12.9) under simulated protan, deutan and tritan vision */
  --rank-0: #7491fd; --rank-1: #ff6151; --rank-2: #11b981; --rank-3: #d27eb1;
  --rank-4: #a0ebff; --rank-5: #ffff7a; --rank-6: #c3c8c6; --rank-last: #f2b800;
  --chain-h: #141a2a; --chain-v: #6b4fd8; --chain-slack: #a3acbd;
  --font-cjk: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Source Han Sans SC', 'Noto Sans SC';
  --font-display: 'Archivo', var(--font-cjk), 'Noto Sans Devanagari', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Atkinson Hyperlegible', var(--font-cjk), 'Noto Sans Devanagari', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, var(--font-cjk), 'Noto Sans Devanagari', monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1626; --surface: #182238; --panel: #141d31; --paper: #182238; --line: #243150; --line-2: #3a4868;
    --ink: #f4f1ea; --ink-2: #c3cad9; --muted: #9aa6bf; --frame: #f4f1ea; --frame-fill: #131c30;
    --dot: #2c3a5c; --lattice: #243150; --accent: #f4f1ea; --accent-ink: #0f1626; --accent-soft: #243150;
    --focus: #8fd3ff; --good: #4fd18b; --bad: #ff7a6b; --star: #ffb020; --star-off: #4a5878;
    --tile-outline: transparent; --chain-h: #f4f1ea; --chain-v: #c3a6ff; --chain-slack: #5b6880;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1626; --surface: #182238; --panel: #141d31; --paper: #182238; --line: #243150; --line-2: #3a4868;
  --ink: #f4f1ea; --ink-2: #c3cad9; --muted: #9aa6bf; --frame: #f4f1ea; --frame-fill: #131c30;
  --dot: #2c3a5c; --lattice: #243150; --accent: #f4f1ea; --accent-ink: #0f1626; --accent-soft: #243150;
  --focus: #8fd3ff; --good: #4fd18b; --bad: #ff7a6b; --star: #ffb020; --star-off: #4a5878;
  --tile-outline: transparent; --chain-h: #f4f1ea; --chain-v: #c3a6ff; --chain-slack: #5b6880;
}

html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.4; cursor: default; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app {
  box-sizing: border-box;
  min-height: 100vh;
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr;
}

/* header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  padding: 18px 40px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; margin: 0; font: 800 24px/1.1 var(--font-display); letter-spacing: -0.01em; }
.brand svg { flex: none; }
.top-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.icon-btn {
  flex: none; width: 44px; height: 44px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 0;
}
.mode-switch { display: flex; padding: 4px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line-2); }
.mode-switch button { height: 40px; padding: 0 18px; border-radius: 20px; border: 0; background: transparent; color: var(--ink-2); font: 800 16px var(--font-display); white-space: nowrap; }
.mode-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.drawer .mode-switch { align-self: flex-start; }
.drawer .mode-switch button { border: 0; background: transparent; padding: 0 18px; font: 800 16px var(--font-display); color: var(--ink-2); }
.drawer .mode-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.menu-mode { display: none !important; }
.lang-wrap { position: relative; display: inline-flex; align-items: center; min-width: 0; }
.lang-wrap svg { position: absolute; left: 13px; width: 18px; height: 18px; color: var(--ink-2); pointer-events: none; }
.lang-pick {
  height: 44px; min-width: 0; max-width: 15em; box-sizing: border-box;
  padding: 0 14px 0 38px; border-radius: 22px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font: 700 15px var(--font-body);
}

/* the play area: lead + side text on the left, the board on the right, buttons below it */
main {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "lead stage" "side stage";
  gap: 18px 44px;
  padding: 28px 40px 32px;
  min-height: 0;
}
.lead { grid-area: lead; display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.side { grid-area: side; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stage { grid-area: stage; display: flex; flex-direction: column; gap: 18px; min-width: 0; align-self: start; position: sticky; top: 12px; }
/* the board fills the window's height less the header, the padding and the buttons */
.table { position: relative; min-width: 0; height: max(420px, calc(100vh - 230px)); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.level-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font: 800 17px var(--font-display); color: var(--muted); }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 22px; height: 22px; }
.goal { margin: 0; font: 800 50px/1.03 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.goal-sub { margin: 0; font-size: 20px; color: var(--ink-2); }

.progress { display: flex; justify-content: space-between; gap: 8px; font-size: 16px; color: var(--muted); }
.timer { font-variant-numeric: tabular-nums; }
.timer.done { color: var(--good); font-weight: 700; }
.bar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.bar b { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.2s; }
.status { font-size: 17px; color: var(--ink-2); min-height: 2.9em; }
.status.solved { color: var(--good); font-weight: 700; }
.status.warn { color: var(--bad); }
.hints { margin: 0; padding-left: 1.3em; font-size: 16px; color: var(--ink-2); }
.hints li + li { margin-top: 6px; }
.free-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.free-panel .option > span { font-size: 16px; color: var(--ink-2); }
.n-chips { display: flex; gap: 6px; }
.n-chips button { flex: 1; height: 46px; border-radius: 23px; border: 2px solid var(--line-2); background: transparent; color: var(--ink-2); font: 800 18px var(--font-display); padding: 0; }
.n-chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.free-panel .btn { height: 50px; font-size: 17px; }
.free-panel > .btn { width: 100%; }
.loader { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.loader label { font-size: 16px; color: var(--ink-2); }
.loader-row { display: flex; gap: 8px; }
.loader input { flex: 1; min-width: 0; height: 50px; box-sizing: border-box; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: 500 16px var(--font-mono); }
.loader .btn { padding: 0 18px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.switch-row label { display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.sw-title { font: 800 17px var(--font-display); }
.sw-note { font-size: 14px; color: var(--muted); }
.switch { flex: none; position: relative; width: 56px; height: 32px; border-radius: 16px; border: 0; padding: 0; background: var(--line-2); }
.switch::after { content: ''; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 12px; background: var(--ink); transition: left 0.15s; }
.switch[aria-checked="true"] { background: var(--good); }
.switch[aria-checked="true"]::after { left: 28px; background: #0f1626; }
.solved-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.solved-card h3 { margin: 0 0 6px; font: 800 30px var(--font-display); color: var(--good); }
.solved-card p { margin: 0 0 8px; font-size: 17px; color: var(--ink-2); }
.solved-card p:last-child { margin-bottom: 0; }
.answer-plain { margin: 0; font-size: 17px; }
.answer-plain:empty { display: none; }
.levels-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.levels-head span { color: var(--muted); font-size: 15px; }
.lv-group { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.lv-title { display: flex; align-items: center; gap: 10px; font: 800 15px var(--font-display); }
.lv-title .stars svg { width: 16px; height: 16px; }
.lv-title small { font: 400 14px var(--font-body); color: var(--muted); }
.lv-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
/* a level tile: its number while unsolved, the packing once solved; the current one ringed */
.drawer .lv-grid button.lv {
  position: relative; aspect-ratio: 1; height: auto; padding: 0; border-radius: 6px;
  border: 2px solid var(--line-2); background: transparent; color: var(--ink-2); font: 800 20px var(--font-display);
}
.drawer .lv-grid button.lv.solved { border-color: transparent; background: var(--frame-fill); }
.lv canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 4px; }
.lv.solved .num {
  position: absolute; right: 2px; bottom: 2px; min-width: 18px; padding: 0 4px; box-sizing: border-box;
  border-radius: 4px; background: var(--panel); color: var(--ink); font: 800 13px/18px var(--font-display);
}
.drawer .lv-grid button.lv.current { border-color: var(--star); box-shadow: 0 0 0 2px var(--star); color: var(--ink); }
.text-btn { align-self: flex-start; border: 0; background: none; padding: 4px 0; color: var(--ink-2); font: 700 15px var(--font-body); text-decoration: underline; text-underline-offset: 3px; }
.text-btn:hover { color: var(--ink); }

canvas { display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
canvas.dragging { cursor: grabbing !important; }
#board { position: absolute; inset: 0; border-radius: 10px; touch-action: pan-y; }   /* empty board scrolls the page; see board.js */

.btn {
  height: 54px; padding: 0 28px; border-radius: 27px;
  border: 2px solid var(--line-2); background: transparent; color: var(--ink);
  font: 800 18px var(--font-display); white-space: nowrap;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.quiet { color: var(--muted); }
.btn:not(:disabled):hover { border-color: var(--ink-2); }
.btn .arrow { margin-left: 6px; }
.btn .ico { display: none; }

/* answer (moves to the solved card and the Advanced panel in later steps) */
.answer { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-size: 15px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.tabs button { padding: 3px 10px; font: 600 14px var(--font-mono); border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); }
.tabs button[aria-selected="true"] { background: var(--accent-soft); border-color: var(--ink); }
.strategy { font: 800 22px var(--font-display); margin: 0 0 4px; }
.strategy small { font: 500 14px var(--font-mono); color: var(--muted); margin-left: 6px; }
.formula { font-family: var(--font-mono); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.formula b { color: var(--star); }
.defs { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.verdict { margin: 10px 0 0; }
sub { font-size: 0.72em; line-height: 0; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 8px; }
.ledger { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; margin-top: 4px; }
.ledger td { padding: 3px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger td.num { text-align: right; white-space: nowrap; }
.ledger td.terms { color: var(--muted); overflow-wrap: anywhere; }
.ledger tr.win td, .ledger tr.win td.terms { color: var(--star); font-weight: 600; }
.ledger tr.pick { cursor: pointer; }
.ledger tr.pick:hover td { background: var(--accent-soft); }
.ledger tr.floor td { border-bottom: 2px solid var(--ink); color: var(--muted); font-style: italic; }
.ledger-wrap { max-height: 320px; overflow-y: auto; }
details summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.contacts { border-collapse: collapse; font-family: var(--font-mono); font-size: 13px; margin-top: 6px; }
.contacts th, .contacts td { padding: 2px 10px 2px 0; text-align: left; }
.contacts th { font-size: 12px; color: var(--muted); font-weight: 500; }

/* menu drawer */
dialog.drawer {
  margin: 0 0 0 auto; height: 100vh; max-height: 100vh; height: 100dvh; max-height: 100dvh; width: min(440px, 100vw); max-width: 100vw; box-sizing: border-box;
  border: 0; border-left: 1px solid var(--line); padding: 0; background: var(--panel); color: var(--ink);
}
dialog.drawer::backdrop { background: rgba(5, 8, 15, 0.55); }
.drawer-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--panel); border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font: 800 22px var(--font-display); }
.drawer-body { padding: 8px 20px calc(80px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; }
.drawer-body > section { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.drawer-body > section:last-child { border-bottom: 0; }
.drawer-body h3 { margin: 0; font: 800 17px var(--font-display); }
.drawer button:not(.icon-btn), .drawer select, .drawer input[type="text"], .drawer input[type="number"] {
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink);
  padding: 8px 12px; font-size: 15px;
}
.drawer button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.error { color: var(--bad); font-size: 14px; flex-basis: 100%; }
.error:empty { display: none; }
.seg { position: relative; justify-self: start; align-self: flex-start; display: inline-flex; flex-wrap: wrap; max-width: 100%; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 7px 12px; font-size: 14px; cursor: pointer; background: var(--surface); border-left: 1px solid var(--line-2); }
.seg label:first-of-type { border-left: 0; }
.seg input:checked + label { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.seg input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: -3px; }
.option { display: grid; gap: 5px; }
.option > span { font-size: 14px; color: var(--muted); }
.gravity { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(2, 44px); gap: 6px; }
.gravity button, .turns button { padding: 0 !important; font: 700 18px var(--font-mono) !important; }
.gravity [data-dir="up"] { grid-column: 2; grid-row: 1; }
.gravity [data-dir="left"] { grid-column: 1; grid-row: 2; }
.gravity [data-dir="down"] { grid-column: 2; grid-row: 2; }
.gravity [data-dir="right"] { grid-column: 3; grid-row: 2; }
.turns { display: grid; grid-template-columns: repeat(2, 44px); grid-auto-rows: 44px; gap: 6px; }
.help { font-size: 15px; color: var(--ink-2); margin: 0; padding-left: 1.1em; }
.help li + li { margin-top: 4px; }
kbd { font: 600 13px var(--font-mono); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; background: var(--surface); }
.about { font-size: 14px; color: var(--ink-2); }
.about p { margin: 0 0 8px; }
.about a { color: var(--ink); overflow-wrap: anywhere; }
.about .ver { font: 500 13px var(--font-mono); color: var(--muted); }


:lang(zh) .eyebrow, :lang(hi) .eyebrow { letter-spacing: 0.02em; }
:lang(zh) .goal, :lang(hi) .goal, :lang(zh) .brand, :lang(hi) .brand { letter-spacing: 0; }

/* medium windows: a narrower text column so the board and the buttons keep their room */
@media (max-width: 1200px) {
  main { grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: 16px 32px; }
  .goal { font-size: 40px; }
  .btn { padding: 0 20px; font-size: 17px; }
}
/* phones and narrow windows: one column, board right after the goal */
@media (max-width: 900px) {
  .top { padding: 12px 16px; }
  .brand { font-size: 20px; }
  main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas: "lead" "stage" "side";
    gap: 14px;
    padding: 16px 16px calc(80px + env(safe-area-inset-bottom, 0px));
  }
  .lead { padding-top: 0; gap: 8px; }
  .goal { font-size: 32px; }
  .goal-sub { font-size: 17px; }
  .stage { position: static; gap: 14px; }
  /* the board takes the screen height left between the goal (--above) and the buttons
     (--below, both set by the script) less a margin, so the buttons stay clear of a
     browser's bottom bar */
  .table { height: max(260px, min(640px, calc(100vh - var(--above, 230px) - var(--below, 66px) - 34px))); }
  @supports (height: 100svh) {
    .table { height: max(260px, min(640px, calc(100svh - var(--above, 230px) - var(--below, 66px) - 34px))); }
  }
  .actions { justify-content: stretch; flex-wrap: wrap; gap: 8px; }
  .actions .btn { flex: 1 1 auto; height: 52px; padding: 0 14px; font-size: 17px; }
  /* Start over and Skip shrink to icons; Next level keeps its words */
  .actions .btn.compact { flex: 0 0 52px; padding: 0; display: flex; align-items: center; justify-content: center; }
  .actions .btn.compact .ico { display: block; }
  .actions .btn.compact .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .actions .btn.compact .arrow { margin: 0; font-size: 22px; }
  .actions .btn.compact.primary { flex: 1 1 auto; padding: 0 14px; }
  .actions .btn.compact.primary .label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .actions .btn.compact.primary .arrow { margin-left: 6px; font-size: inherit; }
  .status { min-height: 0; }
  .lang-pick { max-width: 11em; }
  .top-mode { display: none !important; }
  .menu-mode { display: flex !important; }
}
@media (max-width: 1080px) and (min-width: 901px) {
  .mode-switch button { padding: 0 12px; font-size: 15px; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bar b { transition: none; } }


:root,:root[data-theme="dark"],:root:not([data-theme="light"]) {color-scheme:light;--bg:#f3eddf;--surface:#fffcf5;--panel:#f5f0e6;--paper:#fffcf5;--line:#d8d0be;--line-2:#b9ad96;--ink:#303e37;--ink-2:#536251;--muted:#68735e;--frame:#57694f;--frame-fill:#faf8ed;--dot:#d7d0be;--lattice:#e7e2d4;--accent:#455e48;--accent-ink:#fffdf5;--accent-soft:#e5e9d9;--focus:#8b6593;--good:#47784e;--bad:#bd5844;--tile-ink:#293c35;--tile-outline:#687760;--rank-0:#bccca8;--rank-1:#e6bca4;--rank-2:#bdc9dc;--rank-3:#d5b9d1;--rank-4:#b6d5cc;--rank-5:#e7dca9;--rank-6:#c9c6b4;--rank-last:#e2cd8b;--font-display:Georgia,'Times New Roman',serif;--font-body:system-ui,-apple-system,sans-serif;--font-mono:ui-monospace,monospace;--chain-h:#53674b;--chain-v:#8b6593;--star:#a77d35;--star-off:#c5bfac}
body {background:radial-gradient(ellipse at top left,#fffdf5 0,transparent 65%),var(--bg)}
.top {border-bottom:1px solid var(--line);padding-bottom:18px}.brand {font-family:Georgia,serif;font-weight:500;letter-spacing:-1px}.brand small {font:italic 16px Georgia,serif;letter-spacing:0;color:var(--muted)}
.atelier-note {font:600 10px system-ui;letter-spacing:2px;color:#8a7254;margin:0 0 24px}.first-play {max-width:360px;font:14px/1.7 system-ui;color:var(--muted);margin:20px 0 0}.goal {font-weight:500}.table {border-radius:20px;border:1px solid #d8d0be;box-shadow:0 14px 35px #6657330a;background:#fffcf5}.btn {border-radius:10px}.side {background:#ffffff44;border-radius:16px;padding:20px}.icon-btn,.mode-switch,.lang-pick {border-radius:9px}#solved {background:#e5eddb;border-radius:12px}.app {max-width:1500px}.drawer {border-radius:18px;background:#fffcf5}.brand svg {color:#687760}.brand svg rect:nth-child(2) {fill:#bccca8}.brand svg rect:nth-child(3){fill:#e6bca4}.brand svg rect:nth-child(4){fill:#bdc9dc}.brand svg rect:nth-child(5){fill:#d5b9d1}
@media(max-width:900px){.atelier-note{margin-bottom:8px;font-size:9px}.first-play{max-width:none;margin:8px 0;font-size:12px;line-height:1.5}.top {padding-bottom:10px}.brand small{font-size:12px}.side {padding:14px}.table{border-radius:12px}}
@media(max-width:420px){.brand span{display:inline!important}.brand{font-size:20px}.brand svg{display:none}.brand small{display:block}.lang-pick{max-width:6em}}
