/* The site's look, over index.html's own colours (this file comes after them): flat neutral surfaces, thin borders, one
   maple-orange accent, and Rubik. The game shows through its art (home/home.css: the sprites, the EXP bar, mesos), not
   through the frame. */
:root {
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: var(--font-body);
  --bg: #fafaf9; --panel: #ffffff; --panel-2: #f5f5f4; --text: #1c1917; --muted: #78716c;
  --border: #e7e5e4; --border-strong: #d6d3d1;
  --accent: #f76707; --accent-2: #fff4e6; --accent-text: #fff; --accent-ink: #c2410c;
  --gold: #f5b301; --exp-1: #ffe066; --exp-2: #fab005;
  --glow: rgba(247, 103, 7, .14); --dots: rgba(28, 25, 23, .07);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 6px 20px rgba(28, 25, 23, .05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c0e; --panel: #151518; --panel-2: #1c1c20; --text: #f4f4f5; --muted: #a1a1aa;
    --border: #26262b; --border-strong: #34343a;
    --accent: #ff8a3d; --accent-2: #2a1a0e; --accent-ink: #ffb07a;
    --glow: rgba(255, 138, 61, .16); --dots: rgba(255, 255, 255, .06);
    --shadow: none;
  }
}

body { font-family: var(--font-body); position: relative; -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 420px at 50% -140px, var(--glow), transparent 70%) no-repeat, var(--bg); }
/* a faint dot grid behind the top of the page */
body::before { content: ""; position: absolute; inset: 0 0 auto; height: 520px; pointer-events: none;
  background: radial-gradient(var(--dots) 1px, transparent 1.2px) 0 0 / 22px 22px;
  mask-image: radial-gradient(70% 100% at 50% 0, #000, transparent); -webkit-mask-image: radial-gradient(70% 100% at 50% 0, #000, transparent); }
.wrap { position: relative; }

/* the header: the logo, big, with the account buttons; under it the tabs, one segmented control the page's width */
header { flex-wrap: wrap; row-gap: 14px; padding-top: 24px; }
header h1 { font-weight: 700; font-size: 28px; letter-spacing: -.03em; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand-leaf { flex: none; width: 38px; height: 38px; }
.brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.brand-name b { font-weight: 700; color: var(--accent); }
.tools { order: 3; flex-basis: 100%; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 3px; }
.tools .tool { flex: 1; justify-content: center; min-height: 44px; }
.tools .tool { border-radius: 9px; }
.tools .tool[aria-selected="true"], .tools .tool[aria-selected="true"]:hover {
  background: var(--panel); color: var(--text); box-shadow: 0 0 0 1px var(--border), 0 1px 3px rgba(0, 0, 0, .08); }
.tool-ico { width: 30px; height: 30px; border-radius: 8px; background: transparent; border: 0; color: var(--muted); }
.tool-ico svg { width: 18px; height: 18px; }
.tool[aria-selected="true"] .tool-ico { background: var(--accent-2); color: var(--accent); }
.tool-name { font-weight: 600; font-size: 14px; }
header .icon { border-radius: 10px; }
/* "still being tried out": the training rater, and what's made of its numbers */
.beta { display: inline-block; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: .06em;
  line-height: 1.5; text-transform: uppercase; vertical-align: .15em; color: var(--accent); background: var(--accent-2);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
/* the tabs without their descriptions: short and even (they're still read out, aria-describedby) */
.tool-desc { display: none; } .tools .tool { padding-right: 12px; }
@media (max-width: 760px) {
  header { row-gap: 10px; padding-top: 16px; }
  header h1 { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 22px; }
  header .spacer { display: none; }
  .brand-leaf { width: 30px; height: 30px; }
}
@media (max-width: 480px) {
  .tools .tool { padding: 4px 6px; } .tool-ico, .tool-new { display: none; }
  header .account-name { display: none; }
  header h1 { font-size: 19px; } .brand { gap: 7px; } .brand-leaf { width: 26px; height: 26px; }
  .brand-name { white-space: normal; line-height: 1.1; } /* with a tool's buttons beside it: "MapleStory Classic / Tools" */
}

/* the tools' cards, a touch rounder and flatter like the home page's */
.card, .kpi { border-radius: var(--radius); }
