/* HA TAKIMI — design system v2 (dark only).
   Flat black canvas, cool-grey surfaces, one acid-yellow accent used sparingly,
   uppercase grotesk headings with tight tracking, 12/16px radii, hairline borders, no glow. */
:root {
  /* colour */
  --bg: #000000;
  --s1: #131517;            /* inset: inputs, wells */
  --s2: #1c1e20;            /* card */
  --s3: #23262a;            /* raised / hover */
  --s4: #2e3237;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .16);
  --text: #f7f7f8;
  --text2: #d3d6da;
  --mute: #a1a5ab;          /* 7.4:1 on --s2 */
  --acc: #ffe51f;           /* the only accent */
  --acc-ink: #131517;       /* text on accent */
  --acc-soft: rgba(255, 229, 31, .14);
  --red: #ff6b6b;
  --ok: #5fe08f;
  --board: #1f4d3c;
  /* legacy aliases (inline styles / older markup) */
  --ink: var(--bg); --ink2: var(--s1); --card: var(--s2); --card2: var(--s3);
  --yellow: var(--acc); --yellow-ink: var(--acc-ink);
  /* type */
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --chalk: 'Caveat Brush', 'Bradley Hand', cursive;
  /* shape */
  --r-xs: 6px; --r-sm: 8px; --r-md: 12px; --r: 16px; --r-lg: 20px; --pill: 999px;
  --tap: 40px;
  --ease: cubic-bezier(0, 0, .2, 1);
  --wrap: 1180px;
  --tabbar-h: 0px;          /* bottom tab bar (phones/tablets) */
  --demo-h: 0px;            /* preview-mode bar */
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15.5px/1.5 var(--body); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body { padding-bottom: calc(var(--tabbar-h) + var(--demo-h) + max(env(safe-area-inset-bottom), 10px)); }
body.demo { --demo-h: 82px; }
@media (max-width: 899px) { :root { --tabbar-h: 64px; } }
@media (min-width: 720px) { body.demo { --demo-h: 58px; } }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-transform: uppercase; overflow-wrap: break-word; }
h1 { font-size: clamp(30px, 7.4vw, 46px); line-height: 1; letter-spacing: -.04em; }
h2 { font-size: 24px; line-height: 1.1; letter-spacing: -.03em; }
h3 { font-size: 16px; line-height: 1.2; letter-spacing: -.015em; }
p { margin: 0; }
b, strong { font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
svg { flex: none; }
::selection { background: var(--acc); color: var(--acc-ink); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: var(--r-sm); }
.mute { color: var(--mute); }
.small { font-size: 13px; }
.loading { min-height: 56vh; padding: 72px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; color: var(--mute); font: 600 13px/1 var(--display); letter-spacing: .06em; }
.ld-logo { position: relative; width: 64px; height: 64px; }
.ld-logo img { position: absolute; inset: 0; width: 64px; height: 64px; object-fit: contain; opacity: .22; }
.ld-logo img.fill { opacity: 1; animation: ld-fill 1.6s ease-in-out infinite; }
.ld-bar { width: 148px; height: 4px; border-radius: 4px; background: var(--line2); overflow: hidden; }
.ld-bar i { display: block; width: 40%; height: 100%; border-radius: 4px; background: var(--acc); animation: ld-slide 1.1s ease-in-out infinite; }
.ld-text { animation: ld-fade 1.6s ease-in-out infinite; }
@keyframes ld-fill { 0% { clip-path: inset(100% 0 0 0); } 70%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes ld-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes ld-fade { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ld-logo img.fill, .ld-bar i, .ld-text { animation: none; } .ld-bar i { width: 100%; opacity: .5; } }

/* ---------- header ---------- */
#top { position: sticky; top: 0; z-index: 20; background: rgba(0, 0, 0, .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.bar { max-width: var(--wrap); margin: 0 auto; padding: 10px 16px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); color: var(--text); font: 700 20px/1 var(--display); letter-spacing: -.03em; text-transform: uppercase; }
.logo:hover { text-decoration: none; }
.logo-svg { height: 30px; width: auto; display: block; }
.mark-svg { height: 24px; width: 24px; display: block; }
.logo img { height: 30px; width: auto; display: block; }
.logo b { background: var(--acc); color: var(--acc-ink); padding: 3px 6px; border-radius: var(--r-xs); margin-right: 6px; }
.logo .sample { font: 600 10px/1 var(--body); letter-spacing: .06em; color: var(--acc); background: var(--acc-soft); border-radius: var(--pill); padding: 5px 8px; white-space: nowrap; }
.bar-r { display: flex; align-items: center; gap: 10px; flex: none; }
.bar-r .btn { white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); background: var(--s2); border: 1px solid var(--line); border-radius: var(--pill); padding: 3px 14px 3px 4px; color: var(--text); font: 700 14px/1 var(--display); letter-spacing: -.01em; transition: background .2s var(--ease); }
.chip:hover { text-decoration: none; background: var(--s3); }
.tabs { order: 3; flex: 1 0 100%; min-width: 0; display: flex; gap: 2px; overflow-x: auto; margin: 6px -16px 0; padding: 0 12px 8px; scrollbar-width: none; scroll-padding: 0 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: inline-flex; align-items: center; height: var(--tap); padding: 0 12px; border-radius: var(--r-md); color: var(--mute); font: 500 14px/1 var(--body); white-space: nowrap; transition: color .2s var(--ease), background .2s var(--ease); }
.tabs a:hover { color: var(--text); text-decoration: none; background: rgba(255, 255, 255, .06); }
.tabs a.on { color: var(--acc); background: var(--acc-soft); font-weight: 600; }
.tabs a:focus-visible { outline-offset: -2px; }
@media (max-width: 899px) { .tabs { display: none; } .bar { padding-bottom: 10px; } }
@media (min-width: 720px) { .bar { padding-left: 24px; padding-right: 24px; } #app { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 900px) { .tabs { margin: 6px -12px 0; } }
@media (min-width: 1440px) {
  .bar { flex-wrap: nowrap; padding: 10px 24px; gap: 16px; max-width: 1520px; }
  .tabs { order: 0; flex: 1 1 auto; margin: 0; padding: 0; justify-content: safe center; }
  .tabs a { height: 36px; padding: 0 9px; border-radius: var(--r-sm); }
  .tabs a.on { background: none; }
}

/* ---------- bottom tab bar (phones/tablets) ---------- */
#tabbar { display: none; }
@media (max-width: 899px) {
  #tabbar { display: block; position: fixed; left: 0; right: 0; bottom: calc(var(--demo-h) + env(safe-area-inset-bottom)); z-index: 30; }
  /* Phones without a reported safe area (Android gesture bar, in-app browsers) still need room under the labels. */
  body:not(.demo) #tabbar { bottom: 0; padding-bottom: max(env(safe-area-inset-bottom), 10px); background: #0b0c0d; }
  .tb-row { position: relative; height: var(--tabbar-h); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 0 6px; background: rgba(11, 12, 13, .97); border-top: 1px solid var(--line); }
  .tb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 56px; min-width: 0; padding: 0; border: 0; border-radius: var(--r-md); background: none; color: #8d9299; font: 500 11px/1 var(--body); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .2s var(--ease); }
  .tb:hover { text-decoration: none; color: var(--text); }
  .tb svg { width: 24px; height: 24px; }
  .tb.on { color: var(--text); font-weight: 600; }
  .tb:focus-visible { outline-offset: -3px; }
  .tb-main { order: 0; height: 50px; width: calc(100% - 8px); max-width: 104px; justify-self: center; margin: 0; background: var(--acc); color: var(--acc-ink) !important; font-weight: 700; border-radius: 16px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .22); --acc: #ffe51f; }
  .tb-main svg path:last-child { fill: #ffe51f; }
  .tb-main.on { outline: 2px solid var(--text); outline-offset: 2px; }
  .tb-row > :nth-child(1) { order: 1; } .tb-row > :nth-child(2) { order: 2; } .tb-row > :nth-child(3) { order: 3; } .tb-row > :nth-child(4) { order: 4; } .tb-row > :nth-child(5) { order: 5; }
  .sheet { position: absolute; left: 0; right: 0; bottom: 100%; padding: 18px 16px 14px; background: var(--s2); border: 1px solid var(--line2); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; visibility: hidden; opacity: 0; transform: translateY(16px); transition: transform .25s var(--ease), opacity .2s var(--ease), visibility 0s .25s; }
  .sheet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
  .sheet a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: var(--r-md); background: var(--s3); color: var(--text); font: 500 14.5px/1.2 var(--body); }
  .sheet a:hover { text-decoration: none; background: var(--s4); }
  .sheet a.on { background: var(--acc-soft); color: var(--acc); font-weight: 600; }
  .sheet-bg { position: fixed; inset: 0; z-index: -1; border: 0; padding: 0; background: rgba(0, 0, 0, .66); visibility: hidden; opacity: 0; transition: opacity .2s var(--ease), visibility 0s .2s; }
  body.more-open .sheet { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  body.more-open .sheet-bg { visibility: visible; opacity: 1; transition-delay: 0s; }
}

/* ---------- layout ---------- */
#app { max-width: var(--wrap); margin: 0 auto; padding: 20px 16px 56px; }
.page > * + * { margin-top: 16px; }
.page > h2, .page > .row > h2 { color: var(--acc); font-size: 17px; letter-spacing: -.02em; }
.page > h2, .page > .row.between:has(> h2) { margin-top: 36px; }
.page > h2 + *, .page > .row:has(> h2) + * { margin-top: 12px; }
.page-head { padding: 6px 0 2px; }
.page-head p { color: var(--mute); margin-top: 10px; max-width: 62ch; }
.card { background: var(--s2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.card > * + * { margin-top: 10px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.grid > * { min-width: 0; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.between > a:not([class]), .tbl a:not([class]) { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 500; }
.grow { flex: 1; min-width: 0; }
.eyebrow { font: 700 12px/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--acc); }
.big { font: 700 36px/1 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.tag { display: inline-flex; align-items: center; font: 600 11px/1 var(--body); letter-spacing: .04em; text-transform: uppercase; padding: 5px 8px; border-radius: var(--r-xs); background: rgba(255, 255, 255, .1); border: 0; color: var(--text2); white-space: nowrap; }
.tag.y { background: var(--acc); color: var(--acc-ink); }
.tag.ok { color: var(--ok); background: rgba(95, 224, 143, .14); }
.tag.bad { color: var(--red); background: rgba(255, 107, 107, .14); }
button.tag { min-height: var(--tap); padding: 0 12px; border-radius: var(--r-sm); transition: background .2s var(--ease); }
button.tag:hover { background: rgba(255, 255, 255, .16); }
.empty { text-align: center; color: var(--mute); padding: 36px 16px; border: 1px dashed var(--line2); border-radius: var(--r); }

/* ---------- buttons + forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 0; cursor: pointer; background: var(--acc); color: var(--acc-ink); font: 600 15px/1.15 var(--body); text-align: center; padding: 10px 20px; border-radius: var(--r-md); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); transition: transform .12s var(--ease), filter .2s var(--ease), background .2s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .2); }
.btn.ghost { background: rgba(255, 255, 255, .1); color: var(--text); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, .16); filter: none; }
.btn.sm { min-height: var(--tap); font-size: 13.5px; padding: 8px 14px; border-radius: 10px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2); }
.btn.sm.ghost, .btn.sm.danger { box-shadow: none; }
.btn.danger { background: rgba(255, 107, 107, .14); color: var(--red); box-shadow: none; }
.btn.danger:hover { background: rgba(255, 107, 107, .22); filter: none; }
.btn[disabled], .btn.busy { opacity: .5; pointer-events: none; }
.btn svg, .up svg { width: 18px; height: 18px; }
.btn.sm svg { width: 16px; height: 16px; }
.linkbtn { background: none; border: 0; padding: 10px 6px; margin: -10px -4px; color: var(--acc); cursor: pointer; font-weight: 600; }
label.f { display: block; font-size: 13px; font-weight: 500; color: var(--mute); }
label.f > span { display: block; margin-bottom: 6px; }
label.f em { font-style: normal; font-weight: 400; }
input[type=text], input[type=url], input[type=number], input[type=tel], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 46px; background: var(--s1); border: 1px solid var(--line2); border-radius: var(--r-md); padding: 11px 14px; color: var(--text); font-size: 16px; outline: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
input::placeholder, textarea::placeholder { color: #7d8289; }
input:focus, select:focus, textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(255, 229, 31, .22); }
textarea { min-height: 92px; resize: vertical; display: block; }
label.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; padding: 8px 0; }
label.check input { width: 22px; height: 22px; accent-color: var(--acc); flex: none; margin: 0; }
form.stack > * + * { margin-top: 14px; }
.copyrow { display: flex; align-items: center; gap: 8px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px 6px 6px 14px; }
.copyrow span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13.5px; color: var(--text2); }

/* ---------- avatar ---------- */
.av { width: 32px; height: 32px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; object-fit: cover; background: hsl(var(--h, 40) 42% 30%); color: #fff; font: 700 11px/1 var(--display); letter-spacing: 0; }
.av.lg { width: 56px; height: 56px; font-size: 18px; }
.who { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.no { font: 700 13px/1 var(--display); font-style: normal; color: var(--acc); }

/* ---------- landing ---------- */
.hero { position: relative; isolation: isolate; padding: 28px 20px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; background: var(--s1); }
.hero::before { content: ''; position: absolute; z-index: -1; right: -70px; top: -60px; width: 300px; aspect-ratio: 1; opacity: .22; transform: rotate(12deg);
  background: url("brand/mark.svg") center / contain no-repeat; -webkit-mask-image: linear-gradient(200deg, #000 20%, transparent 72%); mask-image: linear-gradient(200deg, #000 20%, transparent 72%); }
.hero h1 { font-size: clamp(34px, 9.6vw, 92px); line-height: .92; letter-spacing: -.055em; }
.hero h1 span { color: var(--acc); display: block; }
.hero h2 { letter-spacing: -.04em; line-height: 1; }
.hero .eyebrow + h1 { margin-top: 14px; }
.hero .lead { font-size: 16px; max-width: 46ch; margin-top: 16px; color: var(--text2); }
.hero .cta { margin-top: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.rhythm { display: inline-block; font: 600 12px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; margin: 12px 0 18px; color: var(--text); background: rgba(255, 255, 255, .1); border-radius: var(--pill); padding: 8px 12px; }
.hero .eyebrow + .rhythm { display: table; }
.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 58px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 14px; left: 16px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--acc); color: var(--acc-ink); font: 700 16px/1 var(--display); }
.ranks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rank { background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 10px; text-align: center; min-width: 0; }
.rank b { display: block; font: 700 18px/1.1 var(--display); letter-spacing: -.03em; text-transform: uppercase; }
.rank.on { border-color: var(--acc); background: var(--acc-soft); }
.rank.on b { color: var(--acc); }
.rank span { font-size: 12px; color: var(--mute); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { background: var(--s2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 8px; text-align: center; min-width: 0; }
.stats b { display: block; font: 700 30px/1 var(--display); letter-spacing: -.04em; color: var(--text); }
.stats span { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.25; color: var(--mute); }
.earn { text-align: right; flex: none; }
.earn b { display: block; font: 700 22px/1 var(--display); color: var(--acc); white-space: nowrap; }
.earn span { font-size: 11.5px; color: var(--mute); white-space: nowrap; }

/* ---------- countdown ---------- */
.cd { display: flex; gap: 6px; }
.cd div { background: var(--s3); border-radius: var(--r-md); min-width: 60px; padding: 10px 6px 8px; text-align: center; }
.cd b { display: block; font: 700 32px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.cd span { display: block; margin-top: 4px; font: 600 10.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.live { color: var(--red); font: 700 24px/1.1 var(--display); letter-spacing: -.03em; text-transform: uppercase; }

/* ---------- forma (jersey) ---------- */
.forma { position: relative; isolation: isolate; border-radius: var(--r-lg); padding: 24px 20px 18px; color: var(--acc-ink); overflow: hidden; min-width: 0;
  background: repeating-linear-gradient(90deg, transparent 0 34px, rgba(19, 21, 23, .055) 34px 36px), linear-gradient(180deg, #fff04d, var(--acc) 38%, #f2d400); }
/* collar */
.forma::before { content: ''; position: absolute; z-index: -1; top: -46px; left: 50%; width: 124px; height: 84px; transform: translateX(-50%); border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 8px var(--acc-ink); }
/* sleeve stripes */
.forma::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, var(--acc-ink) 0 14px, transparent 14px 20px, var(--acc-ink) 20px 24px, transparent 24px) left top / 50% 100% no-repeat,
              linear-gradient(242deg, var(--acc-ink) 0 14px, transparent 14px 20px, var(--acc-ink) 20px 24px, transparent 24px) right top / 50% 100% no-repeat; }
.forma .f-top { display: flex; justify-content: space-between; gap: 110px; padding: 0 18px; font: 700 11.5px/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.forma .f-top span:last-child { text-align: right; }
.forma .f-no { font: 700 clamp(104px, 33vw, 168px)/.8 var(--display); margin: 26px 0 10px; letter-spacing: -.07em; text-align: center; font-variant-numeric: tabular-nums; }
.forma .f-name { font: 700 22px/1.1 var(--display); letter-spacing: -.03em; text-transform: uppercase; text-align: center; overflow-wrap: anywhere; }
.forma .f-rank { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 18px; font-weight: 600; font-size: 13px; }
.forma .f-rank b { font: 700 18px/1 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.prog { height: 8px; border-radius: var(--pill); background: rgba(19, 21, 23, .18); margin-top: 8px; overflow: hidden; }
.prog i { display: block; width: 0; height: 100%; background: var(--acc-ink); border-radius: var(--pill); transition: width .9s var(--ease); }
.prog.dark { display: block; width: 110px; height: 6px; background: var(--s4); margin-left: auto; }
.prog.dark i { background: var(--acc); }
.forma .f-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 16px; }
.forma .f-stats div { background: var(--acc-ink); color: var(--text); border-radius: var(--r-md); padding: 12px 6px 10px; text-align: center; min-width: 0; }
.forma .f-stats b { display: block; font: 700 22px/1 var(--display); letter-spacing: -.03em; color: var(--acc); }
.forma .f-stats span { display: block; margin-top: 4px; font-size: 11px; font-weight: 500; color: var(--text2); overflow: hidden; text-overflow: ellipsis; }
.forma.mini .f-no { font-size: clamp(88px, 26vw, 112px); margin-top: 20px; }

/* ---------- dashboard tiles ---------- */
.tile { position: relative; display: block; color: var(--text); padding-right: 34px; transition: background .2s var(--ease), border-color .2s var(--ease); }
.tile::after { content: '↗'; position: absolute; top: 12px; right: 14px; font: 500 16px/1 var(--body); color: var(--mute); transition: color .2s var(--ease), transform .2s var(--ease); }
.tile:hover { text-decoration: none; background: var(--s3); border-color: var(--line2); }
.tile:hover::after { color: var(--acc); transform: translate(2px, -2px); }
.tile .big { margin-top: 10px; font-size: 24px; line-height: 1.05; overflow-wrap: anywhere; }
.tile .eyebrow { color: var(--mute); }
.tile h3 + p { margin-top: 6px; }
.grid:has(> .tile .big) { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.grid:has(> .tile .big) > .tile:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
@media (min-width: 760px) { .grid:has(> .tile .big) { grid-template-columns: repeat(3, 1fr); gap: 12px; } .grid:has(> .tile .big) > .tile:first-child:nth-last-child(odd) { grid-column: auto; } .tile .big { font-size: 28px; } }

/* ---------- media tiles + kit ---------- */
.thumb { position: relative; aspect-ratio: 9/12; border-radius: var(--r-md); overflow: hidden; display: grid; place-items: center; color: #fff;
  background: radial-gradient(120% 90% at 85% 0%, hsl(var(--h, 40) 70% 46% / .55), transparent 60%), linear-gradient(160deg, hsl(var(--h, 40) 32% 22%), #0b0c0d 85%);
  background-size: cover; background-position: center; }
.thumb::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.thumb .play { width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #000; display: grid; place-items: center; transition: transform .25s var(--ease), background .2s var(--ease); }
.thumb .play svg { width: 22px; height: 22px; margin-left: 3px; }
.thumb:hover .play { transform: scale(1.08); background: var(--acc); }
.thumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: var(--r-xs); font: 600 11.5px/1 var(--body); padding: 6px 8px; }
.thumb .lbl { position: absolute; left: 8px; top: 8px; }
.hooks { display: grid; gap: 6px; }
details summary { cursor: pointer; display: flex; align-items: center; min-height: var(--tap); font-weight: 500; color: var(--text2); font-size: 13.5px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; margin-left: auto; font: 500 20px/1 var(--body); color: var(--mute); }
details[open] summary::after { content: '–'; }
details[open] summary { margin-bottom: 4px; }

.grid.kit { grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); gap: 14px; }
button.thumb { border: 0; padding: 0; width: 100%; cursor: pointer; font: inherit; }
video.thumb { width: 100%; display: block; background: #000; }
.clip { padding: 8px 8px 14px; }
.clip > :not(.thumb) { margin-left: 8px; margin-right: 8px; }
.clip > * + * { margin-top: 14px; }
.clip-top { display: flex; gap: 12px; align-items: center; }
.clip-top > div { min-width: 0; }
.clip-top h3 { font-size: 18px; letter-spacing: -.03em; }
.clip-top p { margin-top: 4px; }
.clip-dur { flex: none; min-width: 64px; text-align: center; font: 700 24px/1 var(--display); letter-spacing: -.04em; color: var(--acc-ink); background: var(--acc); border-radius: 10px; padding: 12px 8px 10px; font-variant-numeric: tabular-nums; }
.clip .btn { width: calc(100% - 16px); min-height: 56px; font-size: 15px; letter-spacing: -.01em; padding: 10px 12px; border-radius: 14px; text-wrap: balance; }
.clip .btn svg { width: 20px; height: 20px; }
.clip .row .btn, .clip details .btn { width: auto; min-height: var(--tap); font-size: 13.5px; border-radius: 10px; }
.clip > .row.between { align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.clip > .row.between > .small { flex: 1 1 150px; }
.kit-pitch { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); padding: 20px; }
.kit-pitch .eyebrow { color: var(--acc-ink); display: inline-block; background: rgba(19, 21, 23, .1); border-radius: var(--pill); padding: 6px 10px; }
.kit-pitch h2 { font-size: clamp(26px, 6.6vw, 40px); line-height: .98; letter-spacing: -.045em; max-width: 18ch; }
.kit-pitch .mute { color: rgba(19, 21, 23, .8); }
.kit-pitch .grid { margin-top: 16px; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.kit-pitch .grid > div { background: var(--acc-ink); color: var(--text); border-radius: var(--r-md); padding: 14px; }
.kit-pitch .grid h3 { color: var(--acc); }
.kit-pitch .grid .mute { color: var(--text2); margin-top: 6px; }

/* ---------- submissions ---------- */
.sub { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: start; padding: 10px 14px 10px 10px; }
.sub > * + * { margin-top: 0; }
.sub .thumb { aspect-ratio: 9/14; }
.sub .thumb .play { width: 36px; height: 36px; }
.sub .thumb .play svg { width: 15px; height: 15px; margin-left: 2px; }
.sub .grow { padding-top: 4px; }
.sub .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--mute); font-size: 13px; }
.up { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); min-width: 56px; background: rgba(255, 255, 255, .1); border: 0; border-radius: 10px; padding: 0 14px; cursor: pointer; font: 700 14px/1 var(--display); font-variant-numeric: tabular-nums; transition: background .2s var(--ease); }
.up:hover { background: rgba(255, 255, 255, .16); }
.up.on { background: var(--acc); color: var(--acc-ink); }
.up[disabled] { opacity: .5; cursor: default; }
.seg { display: inline-flex; max-width: 100%; background: var(--s2); border: 1px solid var(--line); border-radius: 14px; padding: 3px; gap: 2px; }
.seg a, .seg button { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); border: 0; background: none; cursor: pointer; padding: 0 14px; border-radius: 11px; color: var(--mute); font: 500 13.5px/1 var(--body); white-space: nowrap; transition: color .2s var(--ease), background .2s var(--ease); }
.seg a:hover, .seg button:hover { text-decoration: none; color: var(--text); }
.seg .on, .seg a.on:hover, .seg button.on:hover { background: var(--text); color: #000; font-weight: 600; }

/* ---------- poll ---------- */
.opt { position: relative; display: flex; width: 100%; min-height: 56px; align-items: center; justify-content: space-between; gap: 12px; text-align: left; background: var(--s1); border: 1px solid var(--line2); border-radius: var(--r-md); padding: 14px; cursor: pointer; overflow: hidden; transition: border-color .2s var(--ease); }
.opt + .opt { margin-top: 8px; }
.opt:hover { border-color: rgba(255, 255, 255, .4); }
.opt[disabled] { cursor: default; color: var(--text); opacity: 1; }
.opt[disabled]:hover { border-color: var(--line2); }
.opt i { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, .1); transition: width .5s var(--ease); }
.opt.on, .opt.on:hover { border-color: var(--acc); }
.opt.on i { background: rgba(255, 229, 31, .24); }
.opt > span, .opt > b { position: relative; }
.opt > b { font: 700 16px/1 var(--display); }
.opt small { color: var(--mute); margin-left: 8px; font-size: 12.5px; }

/* ---------- kara tahta (intentionally skeuomorphic) ---------- */
.board { position: relative; background: radial-gradient(90% 70% at 30% 20%, rgba(255, 255, 255, .07), transparent 60%), radial-gradient(70% 60% at 80% 90%, rgba(0, 0, 0, .25), transparent 60%), var(--board);
  border: 10px solid #2b2420; border-radius: 14px; box-shadow: inset 0 0 0 2px #17120f, inset 0 0 60px rgba(0, 0, 0, .35); padding: 22px 18px 34px; min-height: 380px; font-family: var(--chalk); margin-bottom: 30px; }
.board::after { content: ''; position: absolute; left: 14%; right: 14%; bottom: -22px; height: 12px; background: #2b2420; border-radius: 0 0 8px 8px; box-shadow: inset 0 3px 0 #17120f; }
.board h2 { font: 400 40px/1 var(--chalk); text-transform: none; letter-spacing: 0; color: #f3efe4; text-align: center; opacity: .92; }
.board .sub-t { text-align: center; color: rgba(243, 239, 228, .7); font-size: 18px; }
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 24px 26px; margin-top: 24px; }
.note { color: #f3efe4; font-size: 25px; line-height: 1.15; overflow-wrap: anywhere; text-shadow: 0 0 1px rgba(255, 255, 255, .35); animation: chalk .5s ease-out; }
.note:nth-child(3n+1) { transform: rotate(-1.6deg); } .note:nth-child(3n+2) { transform: rotate(1.2deg); } .note:nth-child(3n) { transform: rotate(-.5deg); }
.note.sari { color: #ffe27a; } .note.pembe { color: #ffb3c7; } .note.mavi { color: #a9d8ff; }
.note footer { font-size: 17px; opacity: .8; margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.note footer button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; text-decoration: underline; padding: 10px 8px; margin: -10px -4px; }
@keyframes chalk { from { opacity: 0; filter: blur(3px); } }
.chalks { display: flex; gap: 4px; }
.chalks label { cursor: pointer; position: relative; width: var(--tap); height: var(--tap); display: grid; place-items: center; }
.chalks input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.chalks span { display: block; width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 3px var(--s2); transition: transform .15s var(--ease); }
.chalks input:checked + span { box-shadow: 0 0 0 3px var(--s2), 0 0 0 5px var(--text); }
.chalks input:focus-visible + span { box-shadow: 0 0 0 3px var(--s2), 0 0 0 5px var(--acc); }
.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; vertical-align: 1px; animation: pulse 1.6s infinite; }
.live .dot-live { background: var(--red); }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- lig ---------- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; }
.podium .card { text-align: center; padding: 14px 8px 16px; min-width: 0; }
.podium .card > * + * { margin-top: 8px; }
.podium .p1 { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); padding-top: 22px; padding-bottom: 26px; }
.podium .pos { font: 700 30px/1 var(--display); letter-spacing: -.04em; color: var(--mute); }
.podium .p1 .pos { color: var(--acc-ink); font-size: 44px; }
.podium .p1 .price { color: var(--acc-ink); }
.podium .p1 .av { box-shadow: 0 0 0 3px var(--acc-ink); }
.podium .nm { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb { width: 100%; border-collapse: collapse; table-layout: fixed; }
.lb td { padding: 12px 6px; border-top: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.lb tr:first-child td { border-top: 0; }
.lb td:first-child { width: 34px; font: 700 16px/1 var(--display); color: var(--mute); }
.lb td:first-child:empty { width: 0; padding: 0; }
.lb td:last-child { width: 116px; text-align: right; font: 700 15px/1.3 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb td:last-child .small { font: 400 12px/1.3 var(--body); }
.lb td:last-child .tag { white-space: normal; text-align: right; }
.lb .who { flex-wrap: wrap; row-gap: 2px; }
.lb .who b { max-width: 100%; }
.lb tr.me td { background: var(--acc-soft); }
.lb tr.me td:first-child { color: var(--acc); box-shadow: inset 3px 0 0 var(--acc); padding-left: 10px; width: 38px; }
.lb .u { display: flex; align-items: center; gap: 10px; min-width: 0; }
.card:has(> .lb) { padding: 4px 12px; }

/* ---------- bakkal ---------- */
.reward { padding: 8px 8px 14px; }
.reward > :not(.pic) { margin-left: 8px; margin-right: 8px; }
.reward .pic { aspect-ratio: 2/1; border-radius: var(--r-md); background: radial-gradient(90% 80% at 50% 110%, rgba(255, 229, 31, .16), transparent 70%), var(--s3); background-size: cover; background-position: center; display: grid; place-items: center; font-size: 56px; }
.reward h3 { font-size: 17px; }
.price { font: 700 22px/1 var(--display); letter-spacing: -.03em; color: var(--text); }
.balance { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: var(--acc); color: var(--acc-ink); border-radius: var(--r); padding: 18px 20px; }
.balance b { display: block; font: 700 clamp(32px, 9vw, 44px)/1 var(--display); letter-spacing: -.045em; text-transform: uppercase; margin-top: 4px; }
.balance .btn.ghost { background: rgba(19, 21, 23, .12); box-shadow: none !important; }
.balance :focus-visible { outline-color: var(--acc-ink); }

/* ---------- tables (admin) ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 600 11px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); padding: 10px 8px; white-space: nowrap; }
.tbl td { padding: 12px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.acts { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- gate ---------- */
.gate { text-align: center; padding: 44px 20px; }
.gate > * + * { margin-top: 14px; }
.gate > svg { width: 28px; height: 28px; padding: 14px; box-sizing: content-box; border-radius: var(--r); background: var(--acc-soft); color: var(--acc); }
.gate > h2 { font-size: clamp(24px, 6vw, 36px); letter-spacing: -.04em; }
.gate > p { max-width: 46ch; margin-left: auto; margin-right: auto; }

/* ---------- footer ---------- */
#foot { border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; }
#foot .in { max-width: var(--wrap); margin: 0 auto; padding: 20px 16px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; justify-content: space-between; }
#foot .in > span { display: inline-flex; align-items: center; gap: 10px; }
#foot a { color: var(--mute); display: inline-flex; align-items: center; min-height: var(--tap); }
#foot a:hover { color: var(--text); }
#foot nav { display: flex; flex-wrap: wrap; gap: 0 18px; }

/* ---------- preview-mode bar ---------- */
#demo-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; box-sizing: content-box; height: calc(var(--demo-h) - 13px); padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); background: rgba(19, 21, 23, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
#demo-bar p { font: 600 11px/1.2 var(--body); letter-spacing: .05em; text-transform: uppercase; color: var(--text2); text-align: center; }
#demo-bar p::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); margin-right: 8px; vertical-align: 1px; }
#demo-bar .seg { max-width: 100%; background: var(--bg); }
#demo-bar .seg button { padding: 0 12px; }
#demo-bar .seg .on, #demo-bar .seg button.on:hover { background: var(--acc); color: var(--acc-ink); }
@media (min-width: 720px) { #demo-bar { flex-direction: row; gap: 16px; } }

/* ---------- toast + modal ---------- */
#toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--demo-h) + env(safe-area-inset-bottom) + 14px); transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
#toast div { background: var(--text); color: #000; font-weight: 600; font-size: 14px; padding: 12px 16px; border-radius: var(--r-md); animation: rise .25s var(--ease); }
#toast div.err { background: var(--red); color: #1a0505; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
dialog { background: var(--s2); color: var(--text); border: 1px solid var(--line2); border-radius: var(--r-lg); padding: 24px 20px 20px; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 40px); }
dialog::backdrop { background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog > * + *, dialog form > * + * { margin-top: 14px; }
dialog h2 { padding-right: 36px; }
dialog .x { position: absolute; top: 10px; right: 10px; width: var(--tap); height: var(--tap); display: grid; place-items: center; background: rgba(255, 255, 255, .1); border: 0; border-radius: 50%; font-size: 22px; color: var(--text); cursor: pointer; line-height: 1; margin: 0; }
dialog .x:hover { background: rgba(255, 255, 255, .18); }
dialog .btn:not(.sm) { width: 100%; }

/* ---------- legal + prose ---------- */
.prose { max-width: 720px; color: var(--text2); }
.prose > * + * { margin-top: 12px; }
.prose h1, .prose h2, .prose b, .prose strong { color: var(--text); }
.prose h2 { margin-top: 30px; font-size: 19px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--acc); font-family: var(--display); font-weight: 700; }
.legal { max-width: 760px; margin: 0 auto; padding: 20px 16px 64px; }
.legal h1 { margin-top: 20px; }

/* ---------- scoreboard (home) ---------- */
.score { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.score-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 14px 4px 16px; font: 700 12px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.score-head > span { display: inline-flex; align-items: center; min-height: var(--tap); }
.score-head a { display: inline-flex; align-items: center; min-height: var(--tap); font: 600 12.5px/1 var(--body); letter-spacing: 0; text-transform: none; }
.score-head a::after { content: '→'; margin-left: 6px; }
.ticker { overflow: hidden; background: var(--acc); color: var(--acc-ink); border-block: 1px solid rgba(0, 0, 0, .3); }
.ticker-in { display: flex; width: max-content; animation: ticker 48s linear infinite; will-change: transform; }
.ticker:hover .ticker-in { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 10px; white-space: nowrap; font: 700 13.5px/1 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; border-right: 1px solid rgba(19, 21, 23, .18); }
.tk i { min-width: 22px; height: 22px; padding: 0 5px; display: grid; place-items: center; border-radius: var(--r-xs); background: var(--acc-ink); color: var(--acc); font-style: normal; font-size: 12px; }
.tk b { font-weight: 700; padding: 4px 7px; border-radius: var(--r-xs); background: rgba(19, 21, 23, .12); }
.tk em { font-style: normal; font-size: 12px; }
.tk.me { background: var(--acc-ink); color: var(--acc); }
.tk.me i { background: var(--acc); color: var(--acc-ink); }
.tk.me b { background: rgba(255, 229, 31, .16); }
.score-rows { list-style: none; margin: 0; padding: 4px 0; }
.score-rows li { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 16px 8px 12px; font-variant-numeric: tabular-nums; }
.score-rows li + li { box-shadow: inset 0 1px 0 var(--line); }
.score-rows .pos { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--s3); color: var(--text2); font: 700 14px/1 var(--display); }
.score-rows li:first-child .pos { background: var(--acc); color: var(--acc-ink); }
.score-rows .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14.5px; }
.score-rows em { flex: none; font: 600 12px/1 var(--body); font-style: normal; color: var(--ok); white-space: nowrap; }
.score-rows .pts { flex: none; min-width: 62px; text-align: right; font: 700 20px/1 var(--display); letter-spacing: -.03em; }
.score-rows li.me { background: var(--acc-soft); box-shadow: inset 3px 0 0 var(--acc); }
.score-rows li.me .pts { color: var(--acc); }
.score-empty { padding: 22px 16px 26px; color: var(--mute); text-align: center; }

/* ---------- member score panel (home, signed in) ---------- */
.me-score { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.me-score > * + * { margin-top: 14px; }
.me-score > .row.between { flex-wrap: nowrap; }
.me-score > .row.between > .row { flex-wrap: nowrap; min-width: 0; }
.me-score > .row.between > .row > div { min-width: 0; }
.me-score h2 { font-size: clamp(14px, 3.9vw, 26px); margin-top: 5px; overflow-wrap: anywhere; }
.me-score .av.lg { width: 46px; height: 46px; font-size: 15px; }
.me-score > .row.between .btn { flex: none; }
.me-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.me-nums div { min-width: 0; background: var(--s2); border-radius: var(--r-md); padding: 14px 4px 12px; text-align: center; }
.me-nums b { display: block; font: 700 clamp(20px, 6.2vw, 38px)/1 var(--display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.me-nums span { font-variant-numeric: tabular-nums; }
.me-nums div > span { display: block; margin-top: 6px; font: 500 11px/1.1 var(--body); color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-nums div:first-child { background: var(--acc); color: var(--acc-ink); }
.me-nums div:first-child > span { color: rgba(19, 21, 23, .8); font-weight: 600; }
.me-nums .up-n { color: var(--ok); }
.goals { display: grid; gap: 6px; }
@media (min-width: 760px) { .goals { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; } }
.goal { display: block; min-width: 0; background: var(--s2); border-radius: var(--r-md); padding: 12px 14px 14px; color: var(--text); transition: background .2s var(--ease), transform .2s var(--ease); }
.goal:hover { text-decoration: none; background: var(--s3); }
.goal-l { display: block; font: 700 11px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.goal-t { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; color: var(--text2); }
.goal-t b { font: 700 16px/1 var(--display); color: var(--acc); font-variant-numeric: tabular-nums; }
.goal .prog.dark { width: 100%; height: 8px; margin: 10px 0 0; }
.me-score > .row:last-child .btn { flex: 1 1 auto; padding: 10px 14px; white-space: nowrap; }
@media (min-width: 760px) { .me-score { padding: 20px; } .me-score > .row:last-child .btn { flex: 0 1 auto; min-width: 220px; } }
[data-count] { font-variant-numeric: tabular-nums; }

/* ---------- swipeable slides ---------- */
.slides { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin-inline: -16px; padding: 2px 16px; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline-offset: -2px; }
.slide { position: relative; flex: 0 0 82%; min-height: 188px; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: flex-end; background: var(--s2); border: 1px solid var(--line); border-radius: var(--r); padding: 60px 18px 18px; overflow: hidden; }
.slide-n { position: absolute; top: 14px; left: 16px; font: 700 13px/1 var(--display); letter-spacing: .02em; color: var(--acc-ink); background: var(--acc); border-radius: var(--pill); padding: 7px 10px; font-variant-numeric: tabular-nums; }
.slide::after { content: ''; position: absolute; right: -28px; top: -28px; width: 110px; height: 110px; border-radius: 28px; background: var(--s3); transform: rotate(14deg); z-index: 0; }
.slide > :not(.slide-n) { position: relative; z-index: 1; }
.slide-n { z-index: 1; }
.slide h3 { font-size: 22px; letter-spacing: -.035em; line-height: 1.05; }
.slide p { margin-top: 8px; color: var(--mute); font-size: 14.5px; }
.slide:first-child { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.slide:first-child::after { background: rgba(19, 21, 23, .1); }
.slide:first-child .slide-n { background: var(--acc-ink); color: var(--acc); }
.slide:first-child p { color: rgba(19, 21, 23, .82); }
.page > .slides + .swipe-hint { margin-top: 8px; }
.swipe-hint { text-align: right; font: 600 11.5px/1 var(--body); letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
@media (min-width: 720px) { .slides { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; } .slide { flex-basis: calc((100% - 20px) / 2.4); } }
@media (min-width: 1000px) { .slide { flex-basis: calc((100% - 20px) / 3); } .swipe-hint { display: none; } }

/* ---------- keşfet feed ---------- */
.feed { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 8px; }
@media (min-width: 620px) { .feed { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; } }
@media (min-width: 900px) { .feed { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1160px) { .feed { grid-template-columns: repeat(5, 1fr); } }
.reel-tile { min-width: 0; }
.reel-tile .thumb { aspect-ratio: 9/16; transition: transform .25s var(--ease); }
.reel-tile .thumb .play { width: 48px; height: 48px; }
.reel-tile .thumb .play svg { width: 18px; height: 18px; }
.reel-tile .thumb .dur { left: 8px; right: auto; }
.reel-tile > .row { flex-wrap: nowrap; gap: 6px; margin-top: 6px; padding-left: 2px; }
.who-s { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 500; color: var(--text2); }
.reel-tile .up { flex: none; min-width: 0; padding: 0 10px; font-size: 13px; }
iframe.reel { display: block; width: 100%; aspect-ratio: 9/16; max-height: 70vh; border: 0; border-radius: var(--r-md); background: #000; }
dialog .thumb { width: 100%; max-height: 60vh; }

/* ---------- klip stüdyosu: assistant chat ---------- */
.chat { display: flex; flex-direction: column; gap: 8px; }
.chat:empty { display: none; }
.chat-q, .chat-a { max-width: 86%; padding: 10px 14px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }
.chat-q { align-self: flex-end; background: var(--acc); color: var(--acc-ink); border-radius: 16px 16px 4px 16px; font-weight: 500; }
.chat-a { align-self: flex-start; background: var(--s3); color: var(--text); border-radius: 16px 16px 16px 4px; }
.chat-a.err { background: rgba(255, 107, 107, .14); color: var(--red); }
.chat .chat-a + .chat-q { margin-top: 6px; }
.dots { color: var(--mute); animation: pulse 1.2s infinite; }
.card > .chat + form { margin-top: 14px; }

/* ---------- teşekkür mektubu (intentionally skeuomorphic) ---------- */
.letter { position: relative; max-width: 560px; margin: 14px auto 24px; padding: 22px 22px 34px; color: #26221b; border-radius: 4px; transform: rotate(-.7deg);
  background: repeating-linear-gradient(180deg, transparent 0 35px, rgba(60, 80, 120, .1) 35px 36px), linear-gradient(180deg, #f8f3e6, #efe7d3);
  box-shadow: 0 1px 0 #fff inset, 0 24px 50px -18px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .25); }
.letter::before { content: ''; position: absolute; top: -12px; left: 50%; width: 110px; height: 28px; transform: translateX(-50%) rotate(-2deg); background: rgba(255, 229, 31, .82); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.letter > * + * { margin-top: 18px; }
.letter-photo { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: 50% 8%; background: #d9d0bb; border: 8px solid #fff; border-bottom-width: 26px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45); transform: rotate(1.2deg); }
.letter-photo.ph { display: grid; place-items: center; padding: 16px; text-align: center; color: #6b6352; font: 500 13px/1.4 var(--body); background: repeating-linear-gradient(45deg, #ddd4bf 0 10px, #d5ccb6 10px 20px); }
.letter .hand { font: 600 clamp(27px, 7.4vw, 38px)/1.12 'Caveat', var(--chalk); color: #1d2a55; }
.letter .photo + .hand, .letter-photo + .hand { margin-top: 30px; }
.signs { display: flex; justify-content: space-around; gap: 20px; margin-top: 32px; font: 600 clamp(32px, 9vw, 44px)/1 'Caveat', var(--chalk); color: #1d2a55; }
.signs span { padding: 0 10px 4px; border-bottom: 2px solid rgba(29, 42, 85, .5); border-radius: 0 0 50% 50% / 0 0 8px 8px; transform: rotate(-5deg); }
.signs span + span { transform: rotate(3deg) translateY(6px); }

/* ---------- confetti ---------- */
.confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: 14%; left: 50%; width: 9px; height: 15px; border-radius: 2px; background: var(--acc); opacity: 0; animation: confetti var(--d, 1.2s) cubic-bezier(.2, .7, .4, 1) forwards; }
.confetti i:nth-child(3n+2) { background: var(--text); width: 8px; height: 8px; border-radius: 50%; }
.confetti i:nth-child(3n) { background: var(--ok); width: 6px; height: 16px; }
@keyframes confetti {
  0% { opacity: 1; transform: translate(-50%, 0) rotate(0) scale(.5); }
  22% { opacity: 1; transform: translate(calc(-50% + var(--x, 0vw) * .55), -11vh) rotate(calc(var(--r, 0deg) * .3)) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x, 0vw)), 72vh) rotate(var(--r, 0deg)) scale(1); }
}

/* ---------- micro-interactions ---------- */
.up.on { animation: pop .35s var(--ease); }
@keyframes pop { 40% { transform: scale(1.18); } }
.up:active { transform: scale(.94); }
.card, .slide, .reel-tile .thumb { transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease); }
@media (hover: hover) {
  .card:not(form):not(.gate):hover, .goal:hover, .slide:hover { transform: translateY(-2px); }
  .card:not(form):not(.gate):not(.kit-pitch):not(.p1):hover { border-color: var(--line2); }
  .reel-tile:hover .thumb { transform: translateY(-3px); }
}

/* ---------- small screens ---------- */
@media (max-width: 520px) {
  .ranks { grid-template-columns: repeat(2, 1fr); }
  .cd { width: 100%; }
  .row.between > [data-countdown] { flex: 1 1 100%; }
  .cd div { min-width: 0; flex: 1; }
  .note { font-size: 23px; }
  .board { border-width: 8px; padding: 18px 12px 28px; }
  .hero::before { width: 210px; right: -64px; top: -56px; }
  .seg a, .seg button { padding: 0 11px; }
}
@media (max-width: 400px) {
  .logo-svg { height: 26px; }
  .logo .sample { padding: 5px 7px; letter-spacing: .03em; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker-in, .dots, .dot-live, .up.on { animation: none !important; }
  .confetti { display: none; }
  .card:hover, .goal:hover, .slide:hover, .reel-tile:hover .thumb, .btn:active, .up:active { transform: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* admin overview */
.bar-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bar-row > span:first-child { width: 84px; font-weight: 600; }
.bar-row b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.days { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.days > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.days i { display: block; width: 100%; max-width: 28px; background: var(--acc); border-radius: 4px 4px 0 0; }
.days span { font-size: 11px; color: var(--mute); font-variant-numeric: tabular-nums; }

/* the #hatakimi rule */
.tag-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; background: var(--acc); color: var(--acc-ink); border-radius: 14px; padding: 12px 14px; }
.tag-note b { font: 700 17px/1.2 var(--display, inherit); }
.tag-note > div { flex: 1 1 220px; }
.tag-note p { font-size: 13.5px; margin-top: 2px; }
.tag-note .btn { flex: none; background: var(--acc-ink); color: var(--acc); box-shadow: none; }

/* achievement medals */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.ach { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; padding: 12px 8px; background: var(--s1, #131517); border: 1px solid rgba(255, 255, 255, .06); border-radius: 14px; }
.ach b { font: 600 13px/1.25 var(--body); }
.ach .small { font-size: 11.5px; line-height: 1.3; }
.ach .prog.dark { width: 100%; height: 5px; margin: 2px 0 0; }
.ach.done { border-color: rgba(255, 229, 31, .35); }
.ach.done .medal { filter: drop-shadow(0 4px 10px rgba(255, 229, 31, .18)); }
.ach:not(.done) b { color: var(--mute); }
.ok-t { color: var(--ok, #5FE08F); }
.medal { display: block; flex: none; }
.goal.next-ach { display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; align-items: center; }
.goal.next-ach .medal { grid-row: 1 / span 3; }

/* platform logo + number */
.pv { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pv + .pv { margin-left: 10px; }
.pv svg { width: 15px; height: 15px; flex: none; }
.score-plats { display: flex; flex-wrap: wrap; gap: 6px 4px; padding: 10px 16px; font-size: 13px; color: var(--mute); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.score-plats b { color: var(--text); }
.pvs { margin: 4px 0 0 42px; display: flex; flex-wrap: wrap; gap: 2px 0; }
.lb td:last-child { width: 96px; }

/* archived posts: followed for 45 days, then greyed out */
.archived { opacity: .55; filter: grayscale(1); }

/* the "+ Paylaşım ekle" call to action */
.plus { font: 700 1.35em/0.8 var(--display); margin-right: 6px; }
.btn.add-big { width: 100%; min-height: 60px; font-size: 19px; }
.add-top { display: none; }
@media (min-width: 900px) { .add-top { display: inline-flex; } }
button.tb-main svg path:last-child { fill: none; }
.views-hint { display: block; margin-top: 6px; font-size: 13px; color: var(--acc); min-height: 18px; font-variant-numeric: tabular-nums; }

/* Keşfet tiles show the video itself */
.reel-tile .thumb { position: relative; overflow: hidden; }
.tease { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; pointer-events: none; background: #000; }
iframe.tease { inset: -8% -8%; width: 116%; height: 116%; }
iframe.tease.ig { inset: -62px -1px auto; width: calc(100% + 2px); height: calc(100% + 240px); background: #fff; }
.tile-hit { position: absolute; inset: 0; z-index: 2; background: none; border: 0; cursor: pointer; }
.reel-tile .thumb .lbl, .reel-tile .thumb .dur, .reel-tile .thumb .plat-badge { z-index: 3; pointer-events: none; }
.plat-badge { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .6); color: #fff; }
.plat-badge svg { width: 16px; height: 16px; }

/* honour board */
.honour { display: grid; gap: 12px; }
.champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.champ { background: var(--s2, #1C1E20); border: 1px solid rgba(255, 255, 255, .06); border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; }
.champ.has { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.champ.has .eyebrow { color: var(--acc-ink); }
.champ-n { display: block; font: 700 19px/1.2 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the add button asks for attention now and then */
@keyframes nudge { 0%, 86%, 100% { transform: none; } 88% { transform: rotate(-4deg) scale(1.04); } 91% { transform: rotate(4deg) scale(1.06); } 94% { transform: rotate(-3deg) scale(1.04); } 97% { transform: rotate(2deg); } }
.add-big, button.tb-main, .add-top { animation: nudge 5.5s ease-in-out infinite; }
.add-big .plus, .add-top .plus { font-size: 1.7em; }
button.tb-main svg { width: 30px; height: 30px; }
@media (prefers-reduced-motion: reduce) { .add-big, button.tb-main, .add-top { animation: none; } }

/* Keşfet tiles: account strip over the cover and automatic badges */
.reel-tile .thumb .badges { position: absolute; left: 8px; top: 8px; z-index: 3; pointer-events: none; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.bdg { font: 700 11px/1 var(--body); padding: 5px 8px; border-radius: 6px; background: rgba(0, 0, 0, .72); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.bdg.trend, .bdg.top { background: var(--acc); color: #000; }
.bdg.new { background: #fff; color: #000; }
.reel-tile .thumb .strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; pointer-events: none; display: flex; align-items: center; gap: 6px; padding: 34px 10px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .88)); font: 600 12px/1.2 var(--body); color: #fff; }
.strip svg { width: 15px; height: 15px; flex: none; }
.strip .h { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip .v { flex: none; color: var(--acc); font-weight: 700; }

/* Home hero text: Sercan's one sentence, sized to read comfortably */
.hero-lead { color: var(--text); font-size: clamp(17px, 2.2vw, 20px); line-height: 1.5; font-weight: 500; max-width: 34em; text-wrap: balance; }

/* Yönetim → Özet live panel */
#live { display: grid; gap: 16px; margin-bottom: 8px; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: live-pulse 1.6s ease-out infinite; vertical-align: 1px; }
@keyframes live-pulse { to { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* Yönetim → approved member cards: numbers, bar against the leader, platform split */
.m-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 10px; }
.m-nums div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.m-nums b { font: 700 20px/1 var(--display); }
.m-nums span { font-size: 11.5px; color: var(--mute); }
.m-split { display: flex; height: 6px; margin: 6px 0 4px; border-radius: var(--pill); overflow: hidden; gap: 2px; }
.m-split i { display: block; min-width: 4px; border-radius: var(--pill); }

[hidden] { display: none !important; }
.err-t { color: #ff6b6b; font-weight: 600; }
