:root {
  --ink: #14213D;
  --paper: #F3F5F8;
  --surface: #FFFFFF;
  --line: #D5DCE4;
  --muted: #5A6678;
  --yellow: #F5C400;
  --red: #C8102E;
  --pitch: #1B6B45;
  --font: "Noto Sans Georgian", "BPG Arial", system-ui, sans-serif;
  --radius-s: 4px;
  --radius-m: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
h1, h2, h3 { font-stretch: 72%; font-weight: 800; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.main { padding-top: 32px; padding-bottom: 64px; min-height: 70vh; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== Header ===== */
.top { background: var(--ink); color: #fff; border-bottom: 4px solid var(--yellow); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 900; font-stretch: 68%; font-size: 1.7rem; letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.brand-card { width: 18px; height: 26px; background: var(--yellow); border-radius: 2px; transform: rotate(-12deg); box-shadow: 5px 3px 0 var(--red); transition: transform .25s; }
.brand:hover .brand-card { transform: rotate(4deg); }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a, .nav .linkbtn { color: #fff; text-decoration: none; padding: 6px 10px; border-radius: var(--radius-s); font-size: .95rem; }
.nav a:hover, .nav .linkbtn:hover { background: rgba(255,255,255,.1); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.nav-sep { flex: 1; }
.nav .btn { color: var(--ink); }
.nav .btn:hover { background: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; font: inherit; padding: 6px 12px; border-radius: var(--radius-s); }
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .top-in { flex-wrap: wrap; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .nav.open { display: flex; }
  .nav-sep { display: none; }
  .nav .inline { display: block; }
}

/* ===== Buttons & forms ===== */
.btn { display: inline-block; background: var(--yellow); color: var(--ink); border: 0; border-radius: var(--radius-s); padding: 10px 20px; font: 700 1rem var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: #FFD633; text-decoration: none; }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { padding: 6px 12px; font-size: .9rem; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn.danger { color: var(--red); }
.inline { display: inline; }
label { display: block; font-weight: 600; margin: 18px 0 6px; }
label.check { font-weight: 400; display: flex; gap: 8px; align-items: center; }
input:not([type=checkbox]):not([type=file]), textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; }
input:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(245,196,0,.5); }
textarea { resize: vertical; }
form .btn { margin-top: 20px; }
.hint { margin: 4px 0 0; font-size: .88rem; color: var(--muted); }
.field-err { color: var(--red); font-size: .92rem; margin: 6px 0 0; }
.field-err p { margin: 0 0 4px; }
.flash { padding: 12px 16px; border-left: 4px solid var(--pitch); background: var(--surface); margin: 0 0 24px; }
.flash-err { border-color: var(--red); }
.notice { background: var(--surface); padding: 16px; border-radius: var(--radius-m); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row .btn { margin-top: 20px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.row-between h1 { margin: 0; }
.tag { display: inline-block; background: var(--yellow); font-size: .8rem; font-weight: 700; padding: 1px 8px; border-radius: 2px; }

/* ===== News ===== */
time { color: var(--muted); font-size: .88rem; }
.lead { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; margin-bottom: 48px; }
.lead-media { display: block; aspect-ratio: 16/9; background: var(--ink); border-radius: var(--radius-m); overflow: hidden; }
.lead-media img { width: 100%; height: 100%; object-fit: cover; }
.lead h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin: 4px 0 12px; }
.lead h1 a { text-decoration: none; }
.lead h1 a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.meta-link { font-weight: 600; }
.section-title { border-top: 2px solid var(--ink); padding-top: 12px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed-item { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.feed-thumb { display: block; aspect-ratio: 16/9; background: var(--line); border-radius: var(--radius-s); overflow: hidden; }
.feed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.feed-item h3 { margin: 2px 0 6px; }
.feed-item h3 a { text-decoration: none; }
.feed-item p { margin: 0 0 6px; max-width: 64ch; }
@media (max-width: 700px) {
  .lead { grid-template-columns: 1fr; gap: 16px; }
  .feed-item { grid-template-columns: 110px 1fr; gap: 14px; }
  .feed-item p { display: none; }
}
.pager { display: flex; justify-content: center; gap: 24px; margin-top: 32px; }

/* ===== Article ===== */
.article { max-width: 760px; }
.article h1 { margin-top: 6px; }
.video { position: relative; aspect-ratio: 16/9; margin: 20px 0; background: #000; border-radius: var(--radius-m); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-img { border-radius: var(--radius-m); margin: 20px 0; }
.prose { font-size: 1.08rem; line-height: 1.8; max-width: 68ch; }
.comments { max-width: 760px; margin-top: 48px; padding-top: 16px; border-top: 2px solid var(--ink); }
.comment { background: var(--surface); border-radius: var(--radius-m); padding: 14px 18px; margin-bottom: 12px; }
.comment-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: .95rem; }
.comment-head .inline { margin-left: auto; }
.comment p { margin: 6px 0 0; overflow-wrap: anywhere; }
.comment-form { margin-top: 24px; }

/* ===== Auth / profile / pages ===== */
.auth, .narrow { max-width: 420px; }
.auth { margin: 24px auto; background: var(--surface); padding: 32px; border-radius: var(--radius-m); }
.auth h1 { font-size: 2.2rem; }
.profile { max-width: 760px; }
.profile-head { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; }
.profile-head h1 { margin: 0; }
.profile-head p { margin: 0; }
.avatar { width: 72px; height: 72px; flex: none; display: grid; place-items: center; background: var(--ink); color: var(--yellow); font-size: 2rem; font-weight: 800; border-radius: 50%; }
.profile h2 { margin-top: 40px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 12px; }
.stats div { background: var(--surface); padding: 16px; border-radius: var(--radius-m); }
.stats dt { color: var(--muted); font-size: .9rem; }
.stats dd { margin: 0; font-size: 2rem; font-weight: 800; font-stretch: 72%; }
.plain-list { list-style: none; padding: 0; }
.plain-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.page { max-width: 680px; }
.lede { font-size: 1.15rem; }
.code-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; background: var(--surface); border-left: 6px solid var(--yellow); padding: 18px 20px; margin: 24px 0; border-radius: 0 var(--radius-m) var(--radius-m) 0; }
.code-box span { flex-basis: 100%; }
.code-box strong { font-size: 1.5rem; letter-spacing: .04em; overflow-wrap: anywhere; }
.steps { padding-left: 1.3em; margin-bottom: 28px; }
.steps li { margin-bottom: 6px; }
.empty { text-align: center; padding: 64px 0; max-width: 560px; margin: 0 auto; }

/* ===== Admin ===== */
.subnav { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.subnav a { padding: 8px 14px; text-decoration: none; }
.subnav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ink); font-weight: 700; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-m); font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 700; }
.actions { white-space: nowrap; }
.actions > * { margin-right: 10px; }
.editor { max-width: 760px; }
.thumb-preview { max-width: 280px; border-radius: var(--radius-s); margin-bottom: 8px; }
.search { display: flex; gap: 8px; max-width: 480px; margin-bottom: 20px; }
.search .btn { margin: 0; }

/* ===== Footer ===== */
.foot { border-top: 1px solid var(--line); padding: 24px 0; font-size: .9rem; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===== Google ===== */
.g-btn { display: flex; justify-content: center; min-height: 44px; margin: 8px 0 0; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; margin: 20px 0 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ===== Quiz ===== */
select { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; }
.quiz-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
@media (max-width: 860px) { .quiz-layout { grid-template-columns: 1fr; } }
.quiz-list { list-style: none; margin: 0 0 32px; padding: 0; }
.quiz-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.quiz-item h3 { margin: 0 0 2px; }
.quiz-item h3 a { text-decoration: none; }
.quiz-item p { margin: 0; }
.quiz-state { font-weight: 700; white-space: nowrap; }
.quiz-state.done { color: var(--pitch); }

.lb-box { background: var(--ink); color: #fff; border-radius: var(--radius-m); padding: 22px 20px; position: sticky; top: 20px; }
.lb-box h2 { font-size: 1.5rem; }
.lb-box .muted { color: #B8C2D3; }
.lb-box a { color: #fff; }
.lb { list-style: none; margin: 0; padding: 0; }
.lb li { display: grid; grid-template-columns: 28px 1fr auto; column-gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.lb-rank { font-weight: 800; font-stretch: 72%; font-size: 1.1rem; }
.lb li:first-child .lb-rank { color: var(--yellow); }
.lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-pts { font-weight: 800; font-size: 1.1rem; }
.lb-time { grid-column: 2 / 4; font-size: .8rem; opacity: .65; }
.lb li.me .lb-name { color: var(--yellow); font-weight: 700; }
.quiz-page .lb { background: var(--ink); color: #fff; border-radius: var(--radius-m); padding: 8px 20px; max-width: 480px; }

.quiz-page { max-width: 760px; }
.quiz-form fieldset.q { border: 0; background: var(--surface); border-radius: var(--radius-m); padding: 18px 20px; margin: 0 0 16px; }
.quiz-form legend { float: left; width: 100%; font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; padding: 0; }
.q-num { display: inline-block; background: var(--yellow); font-size: .8rem; padding: 1px 8px; border-radius: 2px; margin-right: 6px; vertical-align: 2px; }
.opt { clear: both; display: flex; gap: 10px; align-items: center; font-weight: 400; margin: 0 0 8px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s); cursor: pointer; }
.opt:hover { border-color: var(--ink); }
.opt:has(input:checked) { border-color: var(--ink); background: #FFF6CC; }
.opt input { accent-color: var(--ink); width: 18px; height: 18px; }

.result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.result div { background: var(--surface); border-radius: var(--radius-m); padding: 16px; }
.result strong { display: block; font-size: 2rem; font-stretch: 72%; }
.review { padding-left: 1.3em; }
.review > li { margin-bottom: 18px; }
.review-q { font-weight: 700; margin: 0 0 6px; }
.verdict { font-size: .8rem; font-weight: 700; padding: 1px 8px; border-radius: 2px; margin-left: 6px; color: #fff; }
.review > li.right .verdict { background: var(--pitch); }
.review > li.wrong .verdict { background: var(--red); }
.review ul { list-style: none; padding: 0; margin: 0; }
.review ul li { padding: 6px 12px; border-left: 3px solid var(--line); margin-bottom: 4px; background: var(--surface); }
.review ul li.picked { border-left-color: var(--ink); font-weight: 600; }
.review ul li.correct { border-left-color: var(--pitch); background: #E6F2EC; }

.q-edit { border: 1.5px solid var(--line); border-radius: var(--radius-m); background: var(--surface); padding: 16px 18px; margin: 0 0 16px; }
.q-edit legend { font-weight: 700; padding: 0 6px; }
.opt-edit { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.opt-edit input[type=radio] { width: 20px; height: 20px; accent-color: var(--pitch); flex: none; }
.q-remove { margin-top: 12px; }
@media (max-width: 560px) { .result { grid-template-columns: 1fr; } }

/* ===== Games ===== */
.lb-sub { margin-top: 28px; font-size: 1.2rem !important; }
.game-card { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; background: var(--surface); border-radius: var(--radius-m); padding: 16px; text-decoration: none; margin: 8px 0 16px; transition: box-shadow .2s; }
.game-card:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--ink); }
.game-info { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.game-info strong { font-size: 1.5rem; font-stretch: 72%; }
.game-art { position: relative; aspect-ratio: 4/3; background: repeating-linear-gradient(90deg, var(--pitch) 0 14%, #217A50 14% 28%); border-radius: var(--radius-s); overflow: hidden; }
.gc-net { position: absolute; left: 15%; right: 15%; top: 14%; height: 45%; border: 4px solid #fff; border-bottom: 0; background: repeating-linear-gradient(0deg, transparent 0 7px, rgba(255,255,255,.35) 7px 8px), repeating-linear-gradient(90deg, transparent 0 7px, rgba(255,255,255,.35) 7px 8px); }
.gc-ball { position: absolute; width: 16%; aspect-ratio: 1; left: 42%; bottom: 10%; border-radius: 50%; background: #fff; box-shadow: inset -3px -3px 0 rgba(0,0,0,.18); }
@media (max-width: 560px) { .game-card { grid-template-columns: 1fr; } }

.pen-score { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.pen-score div { background: var(--surface); border-radius: var(--radius-m); padding: 12px 16px; }
.pen-score strong { display: block; font-size: 2.2rem; font-stretch: 72%; line-height: 1.1; }
.pen { position: relative; background: repeating-linear-gradient(90deg, var(--pitch) 0 10%, #217A50 10% 20%); border-radius: var(--radius-m); padding: 6% 8% 0; overflow: hidden; user-select: none; }
.pen-goal { position: relative; aspect-ratio: 3 / 1.25; border: 7px solid #fff; border-bottom: 0; background-color: rgba(0,0,0,.22); background-image: repeating-linear-gradient(0deg, transparent 0 13px, rgba(255,255,255,.3) 13px 14px), repeating-linear-gradient(90deg, transparent 0 13px, rgba(255,255,255,.3) 13px 14px); transition: transform .15s; }
.pen.scored .pen-goal { transform: scale(1.02); }
.pen-zones { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); z-index: 2; }
.pen-zone { background: transparent; border: 0; cursor: crosshair; border-radius: 4px; }
.pen-zone:not(:disabled):hover, .pen-zone:focus-visible { background: rgba(245,196,0,.28); outline: 2px dashed var(--yellow); outline-offset: -6px; }
.pen-zone:disabled { cursor: default; }
.pen-keeper { position: absolute; width: 11%; aspect-ratio: 1 / 1.7; left: 50%; top: 62%; transform: translate(-50%, -50%); transition: left .45s cubic-bezier(.3,.7,.3,1), top .45s cubic-bezier(.3,.7,.3,1), transform .45s; z-index: 1; }
.pen-keeper span { position: absolute; inset: 22% 0 0; background: var(--yellow); border-radius: 40% 40% 14% 14%; }
.pen-keeper::before { content: ""; position: absolute; left: 25%; width: 50%; height: 29%; top: 0; z-index: 1; border-radius: 50%; background: #E8B894; }
.pen-keeper::after { content: ""; position: absolute; left: -45%; right: -45%; top: 30%; height: 12%; background: var(--yellow); border-radius: 6px; box-shadow: inset 0 0 0 3px var(--ink); }
.pen-field { height: 120px; position: relative; }
.pen-field::before { content: ""; position: absolute; left: 50%; bottom: 46px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: rgba(255,255,255,.8); }
.pen-ball { position: absolute; left: 50%; bottom: 48px; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 45%, #D5DCE4 100%); box-shadow: 0 4px 0 rgba(0,0,0,.2); transition: transform .5s cubic-bezier(.2,.6,.3,1); z-index: 3; }
.pen-msg { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; color: #fff; font-weight: 700; font-size: 1rem; pointer-events: none; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.pen.saved .pen-msg { color: var(--yellow); }
.pen-start { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); z-index: 4; font-size: 1.2rem; padding: 14px 32px; }
.pen-over { position: absolute; inset: 0; z-index: 5; background: rgba(20,33,61,.9); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.pen-over[hidden] { display: none; }
.pen-over-title { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 900; font-stretch: 68%; margin: 0; color: var(--yellow); }
.pen-over p { margin: 4px 0 16px; }
@media (max-width: 560px) { .pen-goal { border-width: 5px; } .pen-field { height: 100px; } .pen-ball { bottom: 42px; width: 26px; height: 26px; margin-left: -13px; } }
.pen-start[hidden] { display: none; }

/* ===== New header: icons, drawer, search, user menu ===== */
.ic { width: 22px; height: 22px; flex: none; }
.top-in { gap: 8px; min-height: 64px; flex-wrap: nowrap; }
.top .brand { margin-right: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: none; border: 0; color: #fff; cursor: pointer; text-decoration: none; list-style: none; }
.icon-btn:hover { background: rgba(255,255,255,.12); }
.icon-btn::-webkit-details-marker { display: none; }
.top-actions { display: flex; align-items: center; gap: 2px; }
.icon-gift { color: var(--yellow); }
.mini-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 1rem; }

.user-menu { position: relative; }
.user-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); color: var(--ink); border-radius: var(--radius-m); box-shadow: 0 12px 32px rgba(20,33,61,.22); padding: 8px; z-index: 50; }
.user-pop-name { margin: 4px 10px 8px; font-weight: 800; font-stretch: 80%; font-size: 1.1rem; }
.user-pop a, .user-pop button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.user-pop a:hover, .user-pop button:hover { background: var(--paper); }
.user-pop .ic { width: 18px; height: 18px; }

.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); background: var(--ink); color: #fff; z-index: 100; padding: 12px 12px 24px; transform: translateX(-100%); visibility: hidden; transition: transform .25s ease, visibility .25s; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 16px 8px; border-bottom: 3px solid var(--yellow); margin-bottom: 10px; }
.drawer a { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; padding: 12px 12px; border-radius: var(--radius-s); font-size: 1.05rem; }
.drawer a:hover { background: rgba(255,255,255,.1); }
.drawer a[aria-current="page"] { background: rgba(245,196,0,.16); color: var(--yellow); font-weight: 700; }
.drawer hr { border: 0; border-top: 1px solid rgba(255,255,255,.15); margin: 10px 4px; width: auto; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10,16,30,.5); z-index: 99; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
body.no-scroll { overflow: hidden; }

.search-panel { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 10px 24px rgba(20,33,61,.12); position: relative; z-index: 40; }
.search-panel .wrap { padding-top: 14px; padding-bottom: 14px; }
.search-form { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; background: var(--surface); }
.search-form:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(245,196,0,.5); }
.search-form .ic { color: var(--muted); }
.search-form input { border: 0 !important; box-shadow: none !important; padding: 12px 0 !important; background: transparent !important; font-size: 1.05rem; }
.search-results:empty { display: none; }
.search-results { margin-top: 10px; max-height: 60vh; overflow-y: auto; }
.sr-label { margin: 10px 4px 4px; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sr-item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: var(--radius-s); text-decoration: none; }
.sr-item:hover, .sr-item:focus-visible { background: var(--paper); }
.sr-item small { color: var(--muted); white-space: nowrap; }
.sr-all { display: inline-block; margin: 10px 12px 2px; font-weight: 700; }
.sr-empty { margin: 8px 4px; color: var(--muted); }
.search-form-page { margin: 8px 0 24px; }
.search-group { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-top: 28px; }

/* ===== Auth tabs ===== */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: var(--radius-s); padding: 4px; margin-bottom: 20px; }
.auth-tabs a { text-align: center; padding: 10px; border-radius: var(--radius-s); text-decoration: none; font-weight: 600; color: var(--muted); }
.auth-tabs a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(20,33,61,.15); }
.btn-wide { width: 100%; }
.auth-switch { text-align: center; margin: 18px 0 0; }

/* ===== Fantasy card art ===== */
.game-art-ucl { background: radial-gradient(circle at 50% 50%, #243A6B 0 30%, var(--ink) 70%); }
.gc-star { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); background: var(--yellow); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
@media (max-width: 420px) { .top .brand { font-size: 1.4rem; } .icon-btn { width: 38px; height: 38px; } }
