/* HoppingTree shared styles: tokens from the logo (navy badge, bright blue, orange arrow), chunky game-badge buttons. */
@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
:root {
  --navy: #0e2a6b;
  --navy-deep: #081a47;
  --blue: #1f6fe5;
  --sky: #2aa7ff;
  --sky-soft: #e7f3ff;
  --teal: #19b6d2;
  --orange: #ff7a1a;
  --orange-deep: #e05a00;
  --orange-soft: #fff1e6;
  --bg: #f4f8ff;
  --card: #ffffff;
  --ink: #13234a;
  --muted: #5b6b8c;
  --line: #d8e3f5;
  --ok: #1fae5b;
  --ok-soft: #e3f8ec;
  --bad: #e5484d;
  --bad-soft: #fdecec;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(14, 42, 107, 0.10);
  --head: "Fredoka", "Nunito", system-ui, sans-serif;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, .head { font-family: var(--head); letter-spacing: .2px; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* header */
.topbar { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 3px solid var(--navy); }
.demo-bar { background: var(--orange-soft); color: #8a3a00; font-size: 12.5px; font-weight: 700; text-align: center; padding: 5px 12px; border-bottom: 1px solid #ffd7b8; }
.tb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px; max-width: 1160px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo { gap: 6px; }
.logo-mascot { height: 44px; width: auto; display: block; }
.logo-word { height: 28px; width: auto; display: block; }
.tb-right { display: flex; align-items: center; gap: 8px; }
.tb-links { display: flex; gap: 14px; margin-right: 4px; }
.tb-links a { font-weight: 800; font-size: 14px; color: var(--navy); }
.tb-btn { font-weight: 800; font-size: 14px; border-radius: 999px; padding: 7px 14px; white-space: nowrap; }
.tb-login { color: var(--navy); border: 2px solid var(--navy); }
.tb-signup { background: var(--orange); color: #fff; box-shadow: 0 3px 0 var(--orange-deep); }
.tb-my { background: var(--sky-soft); color: var(--navy); border: 2px solid var(--line); }
.tb-av { margin-right: 4px; }
.tb-menu { width: 40px; height: 38px; border: 2px solid var(--line); border-radius: 12px; background: #fff; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer; }
.tb-menu span { width: 18px; height: 2.5px; background: var(--navy); border-radius: 2px; }
.tb-drop { position: absolute; right: 12px; top: calc(100% + 6px); background: #fff; border: 2px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 210px; padding: 6px; }
.tb-drop[hidden] { display: none; }
.tb-drop a { padding: 10px 14px; border-radius: 10px; font-weight: 700; color: var(--ink); }
.tb-drop a:hover { background: var(--sky-soft); }
@media (max-width: 720px) {
  .tb-links { display: none; }
  .tb-login { display: inline-flex; padding: 6px 12px; font-size: 13px; }
  .logo-mascot { height: 38px; }
  .logo-word { height: 23px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 16px; padding: 14px 26px; font-family: var(--head); font-size: 18px; font-weight: 600; cursor: pointer; transition: transform .08s, box-shadow .08s, filter .15s; text-align: center; }
.btn:active { transform: translateY(3px); }
.btn-orange { background: linear-gradient(180deg, #ff9440, var(--orange)); color: #fff; box-shadow: 0 5px 0 var(--orange-deep), 0 10px 20px rgba(224, 90, 0, .25); }
.btn-orange:active { box-shadow: 0 2px 0 var(--orange-deep); }
.btn-blue { background: linear-gradient(180deg, #3d88f5, var(--blue)); color: #fff; box-shadow: 0 5px 0 var(--navy), 0 10px 20px rgba(14, 42, 107, .2); }
.btn-blue:active { box-shadow: 0 2px 0 var(--navy); }
.btn-ghost { background: #fff; color: var(--navy); border: 2.5px solid var(--navy); box-shadow: 0 4px 0 var(--line); }
.btn-sm { padding: 8px 14px; font-size: 15px; border-radius: 12px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-link { background: none; border: none; color: var(--blue); font-weight: 800; cursor: pointer; padding: 6px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 2px solid var(--line); }
.pill { display: inline-block; background: var(--orange-soft); color: var(--orange-deep); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; border: 1.5px solid #ffd2ae; }
.todo { background: #fff6d6; border: 1.5px dashed #e0b400; color: #6b5300; border-radius: 10px; padding: 8px 12px; font-size: 13.5px; font-weight: 700; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

/* footer */
.site-footer { background: var(--navy); color: #c9d6f2; text-align: center; padding: 26px 16px 30px; margin-top: 40px; font-size: 14px; }
.site-footer a { color: #fff; font-weight: 700; }
.ft-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 12px; }
.ft-tm { margin: 6px auto; max-width: 640px; font-size: 13px; color: #e6edff; }
.ft-copy { margin: 4px 0 0; font-size: 12.5px; color: #9fb2dd; }

/* legal / content pages */
.doc { max-width: 820px; margin: 24px auto; padding: 28px 26px; }
.doc h1 { color: var(--navy); margin-top: 0; font-size: 32px; }
.doc h2 { color: var(--navy); font-size: 21px; margin-top: 28px; }
.doc li { margin: 4px 0; }
.review { background: #fff6d6; border-left: 4px solid #e0b400; padding: 2px 8px; font-weight: 700; font-size: .92em; }
