@font-face{font-family:RibbonTitle;src:url('/admin/fonts/BricolageGrotesque-ExtraBold.ttf') format('truetype');font-weight:800;font-display:swap}
@font-face{font-family:RibbonBody;src:url('/admin/fonts/Lexend-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:RibbonBody;src:url('/admin/fonts/Lexend-SemiBold.ttf') format('truetype');font-weight:600;font-display:swap}
:root {
  color-scheme: light;
  font-family: RibbonBody, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-synthesis: none;
  color: #121a2b;
  background: #eef1f6;
  --accent: #d2362d;
  --line: #d9e0eb;
  --muted: #5a6478;
  --paper: #fff;
  --wash: #e5eaf2;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
a { color: inherit; }
button {
  cursor: pointer; min-height: 44px; border: 1px solid #d9e0eb; border-radius: 10px;
  background: var(--paper); padding: 10px 16px; font-size: 12px; font-weight: 600; color: #121a2b;
}
button:hover:enabled { background: #f6f8fc; border-color: #7d8da8; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid #2563eb; outline-offset: 3px;
}
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(24px, calc((100vw - 1112px) / 2));
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 12px; font-weight: 750;
  font-size: 21px; letter-spacing: -.6px; color: #121a2b; text-decoration: none; min-width: 0;
}
.brand > img { object-fit: contain; background: #e5eaf2; border-radius: 50%; flex-shrink: 0; }
.brand small { display: block; font-weight: 400; letter-spacing: .1px; font-size: 11px; margin-top: 3px; color: var(--muted); }
.game-label, .eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.8px; color: #5a6478; }
.game-label { font-size: 9px; letter-spacing: 1.4px; flex-shrink: 0; }
main, footer { max-width: 1160px; margin: 0 auto; }
main { padding: 0 24px; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  column-gap: 64px; row-gap: 20px; padding: 38px 0 40px;
}
.hero-copy { align-self: end; }
.eyebrow { margin: 0 0 16px; }
h1 { font-size: clamp(35px, 4.5vw, 54px); font-weight: 650; line-height: 1.1; letter-spacing: -2px; margin: 0; }
.intro { font-size: 14px; line-height: 1.8; max-width: 500px; color: var(--muted); margin: 0; align-self: start; }
.hero-professor { grid-column: 2; grid-row: 1 / span 2; margin: 0; text-align: center; align-self: center; }
.hero-professor picture { position: relative; display: flex; justify-content: center; isolation: isolate; }
.hero-professor picture::before {
  content: ''; position: absolute; z-index: -1; bottom: 24px; width: 250px; height: 250px;
  max-width: 100%; border: 1px solid #51658a; border-radius: 50%; background: #2e3e60;
}
.hero-professor img { display: block; height: 310px; width: 100%; object-fit: contain; }
.hero-professor figcaption { font-size: 9px; letter-spacing: 1.7px; color: #5a6478; margin-top: 14px; }
.section-title {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line); padding-top: 30px; margin-bottom: 24px;
}
.section-title .eyebrow { margin-bottom: 9px; }
h2 { font-size: 25px; letter-spacing: -.7px; font-weight: 650; margin: 0; }
#filters { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; background: var(--wash); border: 1px solid #d9e0eb; padding: 18px; border-radius: 14px; }
label { display: flex; flex-direction: column; min-width: 0; gap: 8px; font-size: 10px; letter-spacing: .2px; color: #5a6478; }
input, select { min-width: 0; width: 100%; min-height: 44px; border: 1px solid #b9c3d3; border-radius: 9px; padding: 10px 12px; background: var(--paper); color: #121a2b; font-size: 13px; }
input::placeholder { color: #5a6478; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 15px; margin: 19px 0 13px; font-size: 11px; color: var(--muted); }
.results-bar p { margin: 0; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; margin: 30px 0; font-size: 12px; }
.how-to { display: flex; align-items: center; gap: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; margin: 40px 0; }
.how-to > img { object-fit: contain; flex-shrink: 0; background: var(--wash); border-radius: 50%; }
.how-to h2 { font-size: 18px; }
.how-to p { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 8px 0 0; }
footer { border-top: 1px solid var(--line); padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
footer .brand { font-size: 17px; gap: 10px; }
footer .brand small { font-size: 10px; }
footer > p { font-size: 11px; color: var(--muted); margin: 0; }
.error { padding: 15px 18px; border: 1px solid #f0b8b3; background: #fdecea; color: #b42318; border-radius: 10px; font-size: 13px; line-height: 1.5; }
[hidden] { display: none !important; }
@media (max-width: 620px) {
  .site-header { padding: 12px 18px; gap: 10px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand > img { width: 42px; height: 42px; }
  .brand small { font-size: 10px; }
  .game-label { font-size: 8px; letter-spacing: 1px; }
  main { padding: 0 18px; }
  .hero { grid-template-columns: minmax(0, 1fr) 88px; column-gap: 14px; row-gap: 18px; padding: 32px 0; }
  .hero-copy { align-self: center; }
  .hero-copy .eyebrow { font-size: 8px; letter-spacing: 1.2px; margin-bottom: 12px; }
  h1 { font-size: clamp(27px, 6.3vw, 39px); letter-spacing: -1.1px; }
  .intro { grid-column: 1 / -1; font-size: 13px; }
  .hero-professor { grid-row: 1; }
  .hero-professor picture { background: #2e3e60; border-radius: 15px; }
  .hero-professor picture::before { display: none; }
  .hero-professor img { width: 88px; height: 88px; }
  .hero-professor figcaption { font-size: 7px; letter-spacing: 1px; line-height: 1.6; margin-top: 8px; }
  .section-title { align-items: flex-start; }
  .section-title .eyebrow { font-size: 8px; letter-spacing: 1.2px; }
  .section-title h2 { font-size: 23px; }
  .section-title button { font-size: 11px; padding: 10px; }
  #filters { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 13px; }
  .results-bar { font-size: 10px; }
  .how-to { padding: 20px 16px; gap: 14px; margin: 32px 0; }
  .how-to > img { width: 52px; height: 52px; }
  .how-to h2 { font-size: 16px; }
  footer { padding: 22px 18px; }
  .pagination { gap: 14px; }
}

/* Ribbon: same typography, red ribbons and raised controls as the Walker and the dashboard. */
:root{--ink:#121a2b;--panel:#1c2740;--bar:#0b1220;--lip:#b9c3d3;--accent-dark:#b42318}
body{background-image:linear-gradient(#2e3e6005 1px,transparent 1px),linear-gradient(90deg,#2e3e6005 1px,transparent 1px);background-size:32px 32px}
h1,h2,.brand{font-family:RibbonTitle,system-ui,sans-serif;font-weight:800}
button{border-bottom-width:4px;border-bottom-color:var(--lip);transition:transform .15s,background .15s}
button:hover:enabled{transform:translateY(-1px)}button:active:enabled{transform:translateY(2px)}
input,select{box-shadow:inset 0 2px 0 #121a2b04}
.site-header{background:var(--ink);color:#fff;border-bottom:5px solid var(--bar);position:sticky;top:0;z-index:5;min-height:86px}
.site-header .brand{color:#fff}.site-header .brand small{color:#b8c2d6}.site-header .brand>img{background:#2e3e60;border-radius:10px}
.game-label{background:var(--accent);color:#fff;padding:8px 14px 9px 12px;border-radius:5px;clip-path:polygon(6% 0,100% 0,94% 100%,0 100%)}
.hero-copy .eyebrow{margin-left:8px}.intro{margin-left:8px}
h1{display:inline-block;background:var(--accent);color:#fff;border-radius:7px;padding:12px 28px 16px 22px;clip-path:polygon(2% 0,100% 0,97% 100%,0 100%);letter-spacing:-1.2px}
.hero-professor picture::before{border-bottom-width:6px;border-bottom-color:var(--bar)}.hero-professor figcaption{font-weight:600}
.section-title{border-top:0;padding-top:12px}.section-title h2{letter-spacing:-.7px}
#refresh{background:var(--accent);color:#fff;border-color:var(--accent);border-bottom-color:#981d16}#refresh:hover:enabled{background:var(--accent-dark);border-color:var(--accent-dark);border-bottom-color:#981d16}
#filters{background:var(--paper);border-bottom:4px solid var(--lip);border-radius:12px}label{font-weight:600}
.results-bar #count{font-weight:600;color:var(--ink)}
.how-to{border-bottom:5px solid var(--lip);border-left:4px solid var(--accent);border-radius:12px}.how-to>img{border-radius:10px;background:var(--wash)}
footer{border-top:0;margin-top:0;max-width:none;padding:24px max(24px,calc((100vw - 1112px) / 2));background:var(--ink);color:#fff;border-top:5px solid var(--bar)}
footer .brand{color:#fff}footer .brand small,footer>p{color:#b8c2d6}footer .brand>img{background:#2e3e60;border-radius:9px}
/* Shared GTS cards adopt the panel palette without changing their renderer. */
.gts-card{border-color:var(--line);border-bottom:5px solid var(--lip);border-radius:12px}.gts-card-head{border-color:var(--line)}.gts-card-foot{background:var(--wash);border-color:var(--line)}.gts-eyebrow,.gts-number,.gts-species,.gts-level,.gts-card-foot time,.gts-details dt{color:var(--muted)}.gts-mon h3{font-family:RibbonTitle,system-ui,sans-serif;font-weight:800}.gts-state{background:#e5f4ef;color:#0b6f6a;border-radius:5px}.gts-claimed{background:#fff1ce;color:#76500b}.gts-cancelled{background:var(--wash);color:var(--muted)}.gts-collected{background:#e5f4ef;color:#0b6f6a}.gts-sprite{background:radial-gradient(ellipse at center,#e5eaf2,transparent 70%)}.gts-arrow{color:var(--accent)}.gts-details{border-color:var(--line)}
@media(max-width:620px){.site-header{min-height:72px}.game-label{padding:6px 10px 7px 9px}h1{padding:10px 18px 12px;letter-spacing:-.8px}.hero-professor picture{border-bottom:4px solid var(--bar)}footer{padding:22px 18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
