/* Patrol Arcade — portal style */
:root {
  --yellow: #ffd21f;
  --yellow-2: #f2b600;
  --yellow-3: #c98f00;
  --blue: #1d6fe0;
  --blue-2: #1659bf;
  --navy: #0b2d6b;
  --navy-2: #081f4d;
  --ink: #1b2340;
  --muted: #5b6785;
  --line: #d8e2f3;
  --paper: #ffffff;
  --paper-2: #f2f6fd;
  --edge: #e6efff;
  --red: #e8322d;
  --green: #1fa85a;
  --teal: #10a99f;
  --orange: #ff7f11;
  --purple: #8a4fd6;
  --max: 1060px;
  --display: "Lilita One", "Arial Black", Impact, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--blue);
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1.2px, transparent 1.3px);
  background-size: 20px 20px;
  color: var(--ink);
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-2); }
p, ul, ol { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.2; }
.wrap, .container { max-width: var(--max); margin: 0 auto; padding: 18px 16px 8px; }

/* ---------- Top bar ---------- */
.utilbar { background: var(--navy-2); color: #cfe0ff; font-size: 13px; }
.utilbar-inner { max-width: var(--max); margin: 0 auto; padding: 4px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.utilbar nav { display: flex; gap: 16px; }
.utilbar a { color: #fff; text-decoration: none; font-weight: 600; }
.utilbar a:hover, .utilbar a[aria-current="page"] { color: var(--yellow); text-decoration: underline; }
@media (max-width: 600px) { .util-tag { display: none; } .utilbar-inner { justify-content: center; } }
.topbar { background: var(--yellow); border-bottom: 4px solid var(--yellow-3); position: sticky; top: 0; z-index: 30; box-shadow: 0 3px 10px rgba(8, 31, 77, .25); }
.topbar-inner { max-width: var(--max); margin: 0 auto; padding: 0 12px; display: flex; align-items: center; gap: 12px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; transform: rotate(-6deg); }
.brand-text { display: flex; flex-direction: column; font: 24px/0.9 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.brand-text span:first-child { color: var(--navy); }
.brand-text span:last-child { color: var(--red); font-size: 21px; }
.mainnav { display: flex; align-items: stretch; gap: 2px; margin-left: auto; }
.mainnav a, .mainnav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-width: 66px; padding: 6px 10px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  color: var(--ink); text-decoration: none; font: 800 11px/1.1 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-transform: uppercase; letter-spacing: .04em;
}
.mainnav a:hover, .mainnav button:hover { background: rgba(11, 45, 107, .09); }
.mainnav .ico { width: 28px; height: 28px; }
.nav-games .ico { color: #33405f; }
.nav-new .ico { color: var(--red); fill: rgba(232, 50, 45, .18); }
.nav-played .ico { color: var(--blue-2); }
.nav-guides .ico { color: var(--green); }
.nav-about .ico { color: var(--purple); }
.mainnav a[aria-current="page"] { background: var(--navy); color: #fff; }
.mainnav a[aria-current="page"] .ico { color: var(--yellow); fill: none; }
.mainnav .nav-search { background: var(--blue); color: #fff; box-shadow: inset 0 -3px 0 var(--blue-2); }
.mainnav .nav-search:hover, .mainnav .nav-search.open { background: var(--blue-2); }

.search-panel { background: var(--navy); border-top: 3px solid var(--yellow-3); padding: 14px 16px 16px; }
.search-panel[hidden] { display: none; }
.search-inner { max-width: 640px; margin: 0 auto; }
#search-input { width: 100%; font-size: 17px; padding: 12px 14px; border-radius: 10px; border: 3px solid var(--yellow); outline: none; }
.search-results { margin-top: 10px; display: grid; gap: 6px; }
.search-hit { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 10px; color: #fff; text-decoration: none; }
.search-hit:hover, .search-hit:focus-visible { background: rgba(255, 255, 255, .1); }
.search-hit img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; border: 2px solid var(--edge); background: var(--navy-2); }
.search-hit b { display: block; font-size: 15px; }
.search-hit small { color: #a9c1ec; }
.search-hint, .search-empty { color: #a9c1ec; margin: 4px 6px; font-size: 14px; }

@media (max-width: 760px) {
  .topbar { position: static; }
  .topbar-inner { flex-wrap: wrap; padding: 6px 8px 4px; gap: 4px; }
  .mainnav { margin-left: 0; width: 100%; justify-content: space-between; overflow-x: auto; }
  .mainnav a, .mainnav button { min-width: 54px; padding: 5px 4px; font-size: 10px; }
  .mainnav .ico { width: 24px; height: 24px; }
}

/* ---------- Shelves & tiles ---------- */
.crumbs { color: rgba(255, 255, 255, .85); font-size: 14px; margin: 0 0 10px; }
.crumbs a { color: #fff; font-weight: 700; }
.shelf { margin: 6px 0 28px; }
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.shelf-title { font: clamp(26px, 4.4vw, 36px)/1.1 var(--display); color: #fff; margin: 0; text-shadow: 0 3px 0 var(--navy-2); letter-spacing: .01em; }
.shelf-sub { font: 23px/1.2 var(--display); color: #fff; margin: 0 0 10px; text-shadow: 0 2px 0 var(--navy-2); }
.shelf-sub a { color: #fff; text-decoration: none; }
.shelf-sub a:hover { color: var(--yellow); }
.shelf-more { background: var(--navy); color: #fff; text-decoration: none; font: 15px var(--display); padding: 6px 14px; border-radius: 999px; box-shadow: 0 3px 0 var(--navy-2); white-space: nowrap; }
.shelf-more:hover { background: var(--navy-2); color: var(--yellow); }
.lede { color: #e6efff; font-size: 17px; margin: -4px 0 18px; }
.empty-note { color: #e6efff; background: rgba(8, 31, 77, .35); border-radius: 10px; padding: 14px 16px; margin: 0; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tiles-big { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.tile {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border: 3px solid var(--edge); border-radius: 12px; background: var(--navy);
  box-shadow: 0 4px 0 var(--navy-2); transition: transform .12s ease, border-color .12s ease;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover, .tile:focus-visible { transform: translateY(-3px) rotate(-.5deg); border-color: var(--yellow); outline: none; }
.tile-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px; text-align: center;
  background: var(--yellow); color: var(--navy); font: 16px/1.3 var(--display);
  transform: translateY(101%); transition: transform .12s ease;
}
.tile:hover .tile-name, .tile:focus-visible .tile-name { transform: none; }
.tile-big .tile-name::after { content: "  ▶ Play"; color: var(--red); }
.ribbon {
  position: absolute; top: 13px; left: -30px; width: 116px; transform: rotate(-45deg);
  text-align: center; color: #fff; font: 13px/1 var(--display); letter-spacing: .08em;
  padding: 5px 0 4px; box-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}
.ribbon-new { background: var(--red); }
.ribbon-hot { background: var(--orange); }
.ribbon-top { background: var(--teal); }

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 14px; }
.post {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 3px solid var(--edge); border-radius: 12px; box-shadow: 0 4px 0 var(--navy-2);
  transition: transform .12s ease, border-color .12s ease;
}
.post:hover, .post:focus-visible { transform: translateY(-3px); border-color: var(--yellow); outline: none; }
.post-art { position: relative; display: block; aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.post-art-site { background: var(--navy) url(/assets/img/logo.svg) center / 70px no-repeat; }
.chip { position: absolute; left: 8px; top: 8px; padding: 3px 10px 2px; border-radius: 6px; font: 14px/1.2 var(--display); background: var(--yellow); color: var(--navy); box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.chip-strategy { background: var(--red); color: #fff; }
.chip-tips { background: var(--green); color: #fff; }
.chip-behind-the-game { background: var(--purple); color: #fff; }
.chip-culture { background: var(--teal); color: #fff; }
.post-title { padding: 10px 12px 12px; font-weight: 800; font-size: 15px; line-height: 1.35; }

/* ---------- Panels & prose ---------- */
.panel, .prose { background: var(--paper); border-radius: 14px; padding: 22px 26px; box-shadow: 0 5px 0 var(--navy-2); }
.panel { margin: 0 0 24px; }
.panel h2, .prose h1, .prose h2 { font-family: var(--display); font-weight: 400; color: var(--navy); letter-spacing: .01em; }
.panel h2 { font-size: 28px; margin: 0 0 12px; }
.prose h1 { font-size: clamp(28px, 4.5vw, 38px); margin: 0 0 6px; }
.prose h2 { font-size: 26px; margin: 1.3em 0 .4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 1.2em 0 .3em; color: var(--ink); }
.prose a, .panel a:not(.btn) { color: var(--blue-2); font-weight: 700; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: 10px; }
.article-meta { color: var(--muted); font-size: 14px; }
.note { background: #fff6d1; border-left: 5px solid var(--yellow-2); padding: 12px 16px; border-radius: 8px; margin: 1.1em 0; }
kbd { background: var(--paper-2); color: var(--ink); border: 1px solid #c5d0e6; border-bottom-width: 3px; border-radius: 6px; padding: 0 6px; font: 700 .85em ui-monospace, Consolas, monospace; }
details { background: var(--paper-2); border: 2px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
summary { cursor: pointer; font-weight: 800; }
details p { margin: 8px 0 0; color: var(--muted); }
section.section, article.section { margin: 0 0 24px; }
main.container > article.prose { max-width: 820px; }

/* Game pages: title and intro sit on the blue background */
main.container > h1 { font: clamp(30px, 5vw, 44px)/1.1 var(--display); color: #fff; margin: 4px 0 8px; text-shadow: 0 3px 0 var(--navy-2); }
main.container > p:not(.crumbs):not(.game-help) { color: #eef4ff; font-size: 17px; max-width: 760px; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; margin-top: 20px; }
@media (max-width: 900px) { .content-layout { grid-template-columns: 1fr; } }
.sidebar { display: grid; gap: 16px; }
.side-box { background: var(--navy); color: #dbe6ff; border-radius: 14px; padding: 14px; box-shadow: 0 4px 0 var(--navy-2); }
.side-title { font: 21px/1.2 var(--display); color: var(--yellow); margin: 0 0 10px; font-weight: 400; }
.tiles-side { grid-template-columns: 1fr 1fr; gap: 8px; }
.tiles-side .tile { border-width: 2px; box-shadow: none; border-radius: 9px; }
.tiles-side .tile-name { font-size: 13px; padding: 3px 4px; }
.tiles-side .ribbon { font-size: 10px; top: 8px; left: -34px; padding: 3px 0 2px; }
.side-list { margin: 0; padding-left: 18px; }
.side-list li { margin-bottom: 7px; }
.side-list a { color: #fff; font-weight: 700; text-decoration: none; }
.side-list a:hover { color: var(--yellow); text-decoration: underline; }
.info-list { margin: 0; padding: 0; list-style: none; }
.info-list li { padding: 5px 0; border-bottom: 1px dashed rgba(255, 255, 255, .15); }
.info-list li:last-child { border-bottom: 0; }

.game-row { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center; padding: 16px 0; border-top: 2px dashed var(--line); }
.game-row img { border-radius: 10px; border: 3px solid var(--edge); }
.game-row h3 { font: 24px var(--display); font-weight: 400; margin: 0; }
.game-row h3 a { color: var(--navy); text-decoration: none; }
.game-genre { color: var(--muted); font-size: 14px; font-weight: 700; margin: 2px 0 6px; }
@media (max-width: 560px) { .game-row { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  background: var(--yellow); color: var(--navy); font: 21px/1.2 var(--display); letter-spacing: .02em;
  padding: 11px 28px 10px; border-radius: 12px; box-shadow: 0 5px 0 var(--yellow-3);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { background: #ffdc4a; color: var(--navy); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--yellow-3); }
.btn-ghost { background: #fff; box-shadow: 0 5px 0 #b3c3e2; }
.btn-ghost:hover { background: var(--paper-2); }
.btn-ghost:active { box-shadow: 0 1px 0 #b3c3e2; }
.btn-small { font-size: 17px; padding: 7px 18px 6px; box-shadow: 0 4px 0 var(--yellow-3); }
.panel a.btn, .prose a.btn { color: var(--navy); }

/* ---------- Game frame ---------- */
.game-shell { background: var(--navy); border: 3px solid var(--edge); border-radius: 16px; padding: 10px; margin: 14px 0 8px; box-shadow: 0 5px 0 var(--navy-2); }
.hud { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 2px 6px 10px; font: 16px var(--display); color: #b9cdf3; letter-spacing: .02em; }
.hud b { color: #fff; font-weight: 400; }
#hud-lives { color: var(--yellow); letter-spacing: 2px; }
.hud-btns { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.hud-btns button {
  background: var(--yellow); color: var(--navy); border: 0; border-radius: 8px; cursor: pointer;
  font: 14px/1.2 var(--display); letter-spacing: .02em; padding: 6px 12px 5px; box-shadow: 0 3px 0 var(--yellow-3);
}
.hud-btns button:hover { background: #ffdc4a; }
.hud-btns button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--yellow-3); }
.hud-btns button.active { background: #6fd3ff; box-shadow: 0 3px 0 #2b8fbd; }
.hud-btns button:disabled { opacity: .45; cursor: default; transform: none; }
.stage { position: relative; width: 100%; aspect-ratio: 800 / 544; border-radius: 10px; overflow: hidden; background: #3a3f4a; }
.stage.portrait { aspect-ratio: 480 / 720; width: min(100%, calc(78vh * 480 / 720)); margin: 0 auto; }
.stage.square { aspect-ratio: 1 / 1; width: min(100%, 78vh); margin: 0 auto; }
#game { width: 100%; height: 100%; display: block; touch-action: none; }
.overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px; background: rgba(8, 31, 77, .86); color: #fff;
}
.overlay[hidden] { display: none; }
.overlay h2 { margin: 0 0 8px; font: clamp(28px, 6vw, 46px)/1.1 var(--display); color: var(--yellow); text-shadow: 0 3px 0 #000; }
.overlay p { color: #eef4ff; max-width: 480px; font-size: clamp(14px, 2.3vw, 17px); }
.overlay kbd { background: #fff; }
.overlay .btn { margin-top: 6px; }
.overlay .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7); }
.overlay .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.overlay.scroll { justify-content: flex-start; overflow-y: auto; }
.ov-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.new-record { color: #7dfcb4; }
.big-stars { display: block; font-size: clamp(2.2rem, 8vw, 3.4rem); color: var(--yellow); letter-spacing: 6px; line-height: 1.2; margin-bottom: 6px; }
.level-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: 100%; max-width: 440px; margin: 4px 0 14px; }
.level-grid[hidden] { display: none; }
.level-grid .tier { grid-column: 1 / -1; text-align: left; font: 16px var(--display); color: #b9cdf3; margin-top: 8px; }
.lvl {
  background: #fff; color: var(--navy); border: 0; border-radius: 10px; cursor: pointer; box-shadow: 0 3px 0 #9fb3da;
  padding: 6px 2px 4px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; font: 20px var(--display);
}
.lvl small { font: 700 11px/1.3 -apple-system, "Segoe UI", Arial, sans-serif; color: var(--orange); letter-spacing: 1px; }
.lvl:hover:not(:disabled) { background: var(--yellow); }
.lvl:disabled { opacity: .45; cursor: not-allowed; }
.lvl:disabled small { color: var(--muted); letter-spacing: 0; }
.lvl.current { outline: 3px solid #6fd3ff; }
.game-help { color: #dbe7ff; font-size: 14px; text-align: center; margin: 4px 0 0; }
.game-help kbd { background: #fff; }
#game-wrap:fullscreen { display: flex; flex-direction: column; justify-content: center; border-radius: 0; background: #000; }
#game-wrap:fullscreen .stage { width: min(100vw, calc((100vh - 60px) * 800 / 544)); margin: 0 auto; }
#game-wrap:fullscreen .stage.portrait { width: min(100vw, calc((100vh - 60px) * 480 / 720)); }
#game-wrap:fullscreen .stage.square { width: min(100vw, calc(100vh - 60px)); }
@media (max-width: 600px) {
  .hud { font-size: 14px; gap: 4px 12px; }
  .hud-btns { margin-left: 0; width: 100%; }
  .game-shell { padding: 6px; margin-left: -8px; margin-right: -8px; }
  .panel, .prose { padding: 18px 16px; }
}

/* Ad slots — keep ads clearly separated from game controls */
.ad-slot { margin: 28px auto; text-align: center; min-height: 100px; }

/* ---------- Forms ---------- */
form.contact { display: grid; gap: 14px; max-width: 560px; }
form.contact label { font-weight: 700; display: grid; gap: 6px; }
form.contact input, form.contact textarea { background: var(--paper-2); border: 2px solid var(--line); color: var(--ink); border-radius: 10px; padding: 10px 12px; font: inherit; }
form.contact input:focus, form.contact textarea:focus { border-color: var(--blue); outline: none; }
form.contact textarea { min-height: 150px; }

/* ---------- Footer ---------- */
.footbar { background: var(--navy); color: #b9cdf3; border-top: 5px solid var(--yellow); margin-top: 36px; font-size: 14px; }
.footbar-inner { max-width: var(--max); margin: 0 auto; padding: 24px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand p { margin: 0; }
.foot-brand b { color: #fff; font: 18px var(--display); font-weight: 400; letter-spacing: .02em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: #fff; text-decoration: none; font-weight: 700; }
.foot-links a:hover { color: var(--yellow); }
.foot-copy { margin: 0; width: 100%; color: #7f97c6; }

/* Police Lineup: witness statement under the board */
.witness-box { background: #fff9e6; border-radius: 10px; margin-top: 10px; padding: 12px 14px 8px 16px; border-left: 4px solid var(--red); }
.witness-title { margin: 0 0 6px; font: 17px var(--display); color: var(--navy); letter-spacing: .01em; }
.witness { margin: 0; padding-left: 1.4em; color: var(--ink); }
.witness li { margin: 0 0 4px; }
.witness button { font: inherit; font-size: 17px; line-height: 1.45; color: inherit; background: none; border: 0; padding: 2px 4px; text-align: left; cursor: pointer; border-radius: 4px; }
.witness button:hover { background: rgba(29, 111, 224, .08); }
.witness button[aria-pressed="true"] { text-decoration: line-through; color: #98a1b3; }

/* ---------- Today's case (home) ---------- */
.daily { margin: 0 0 28px; }
.daily-card { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 20px; align-items: center; background: var(--paper); border-radius: 14px; padding: 16px; box-shadow: 0 5px 0 var(--navy-2); border: 4px solid var(--yellow); }
.daily-art img { width: 100%; height: auto; border-radius: 10px; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.daily-kicker { display: inline-block; background: var(--red); color: #fff; font: 15px var(--display); letter-spacing: .04em; padding: 3px 10px; border-radius: 6px; margin: 0 0 6px; transform: rotate(-2deg); }
.daily-title { font: 32px/1.05 var(--display); font-weight: 400; color: var(--navy); margin: 0 0 8px; }
.daily-body p { margin: 0 0 10px; }
.daily-meta { color: var(--muted); font-weight: 700; font-size: 15px; }
@media (max-width: 640px) { .daily-card { grid-template-columns: 1fr; } .daily-title { font-size: 27px; } }

/* ---------- Badges page ---------- */
.rank-card { background: var(--paper); border-radius: 14px; padding: 20px 24px; box-shadow: 0 5px 0 var(--navy-2); margin: 0 0 22px; }
.rank-name { font: 40px/1.05 var(--display); font-weight: 400; color: var(--navy); margin: 0 0 6px; }
.rank-stars { margin: 0 0 10px; font-size: 17px; }
.rank-stars b { font: 26px var(--display); color: var(--orange); }
.rank-extra { margin: 10px 0 0; color: var(--muted); font-weight: 700; font-size: 15px; }
.prog-bar { display: block; height: 10px; background: var(--edge); border-radius: 999px; overflow: hidden; }
.prog-bar.big { height: 16px; }
.prog-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--yellow), var(--orange)); border-radius: 999px; }
.badges { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.badge { display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, .55); border-radius: 12px; padding: 10px 12px; color: var(--muted); }
.badge.got { background: var(--paper); color: var(--ink); box-shadow: 0 4px 0 var(--navy-2); }
.badge b { display: block; font: 18px var(--display); font-weight: 400; color: inherit; }
.badge.got b { color: var(--navy); }
.badge small { display: block; font-size: 13px; line-height: 1.3; }
.badge-medal { flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: var(--edge); color: #9aa8c6; }
.badge.got .badge-medal { background: var(--yellow); color: var(--red); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.prog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin: 0 0 24px; }
.prog-row { display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto auto; column-gap: 12px; align-items: center; background: var(--paper); border-radius: 12px; padding: 8px 12px 10px 8px; text-decoration: none; color: var(--ink); box-shadow: 0 4px 0 var(--navy-2); }
.prog-row img { grid-row: 1 / 4; width: 72px; height: 54px; object-fit: cover; border-radius: 8px; }
.prog-name { font: 18px var(--display); color: var(--navy); }
.prog-txt { font-size: 13px; color: var(--muted); font-weight: 700; }
.prog-row .prog-bar { height: 8px; margin-top: 4px; }
.rank-table { border-collapse: collapse; width: 100%; max-width: 520px; margin: 0 0 18px; }
.rank-table th, .rank-table td { text-align: left; padding: 7px 10px; border-bottom: 2px solid var(--line); }
.rank-table th { color: var(--muted); font-size: 14px; }
.badge-list li { margin: 0 0 6px; }
