/* Guiven · fan hub mockup v3
   Palette "Lâmina & Noite", from Guiven's own channel art (Irelia banner: night steel, blade silver,
   spirit-blue glow; mascot: Vasco red cross, warm skin tone). Dark = default "Noite", light = "Lâmina". */
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-var-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlowcondensed-800i-latin-ext.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }
:root { --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif; }

:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0d14;          /* noite: sombras do banner */
  --s1: #111622;          /* superfícies */
  --s2: #182031;          /* cards internos / hover */
  --s3: #243049;          /* bordas fortes */
  --line: #222b3e;
  --text: #e7ebf3;        /* lâmina */
  --mist: #a3aec6;        /* texto secundário */
  --faint: #8590aa;       /* texto terciário (AA em --s1) */
  --accent: #79aef0;      /* azul espírito */
  --accent-rgb: 121,174,240;
  --live: #e0343f;        /* vermelho Vasco */
  --warm: #f2bdb5;        /* rosé do mascote */
  --btn-bg: #e7ebf3; --btn-fg: #0a0d14; --btn-hover: #ffffff;
  --header-bg: rgba(10,13,20,.82);
  --input-bg: #0a0d14; --ph: #6f7a94;
  --ok: #84dba6; --err: #ff8d95;
  --live-bg: linear-gradient(90deg, rgba(42,13,18,.94), rgba(26,11,16,.92) 60%, rgba(17,22,34,.9));
  --logo-filter: brightness(0) invert(.92);
  --shadow: 0 14px 34px rgba(0,0,0,.45);
  --glow: 0 10px 28px rgba(121,174,240,.28), 0 0 0 1px rgba(121,174,240,.35);
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #eef1f6;          /* prata clara da lâmina */
  --s1: #ffffff;
  --s2: #f3f5f9;
  --s3: #c3cbda;
  --line: #d6dce7;
  --text: #121826;        /* noite como tinta: 16:1 */
  --mist: #465169;        /* 7.9:1 em branco */
  --faint: #5b667e;       /* 5.8:1 em branco */
  --accent: #2b5ca3;      /* espírito escurecido: 6.6:1 em branco */
  --accent-rgb: 43,92,163;
  --live: #c22530;        /* Vasco: 5.9:1 em branco */
  --warm: #9b3f37;        /* rosé escurecido p/ texto: 6.9:1 */
  --btn-bg: #121826; --btn-fg: #ffffff; --btn-hover: #1f2a40;
  --header-bg: rgba(238,241,246,.85);
  --input-bg: #ffffff; --ph: #6b7489;
  --ok: #1d7a45; --err: #b3242f;
  --live-bg: linear-gradient(90deg, rgba(253,231,232,.95), rgba(251,239,240,.94) 60%, rgba(255,255,255,.92));
  --logo-filter: brightness(0);
  --shadow: 0 12px 30px rgba(22,32,56,.14);
  --glow: 0 10px 26px rgba(43,92,163,.22), 0 0 0 1px rgba(43,92,163,.35);
}
:root { --r: 14px; --wrap: 1120px; --ease: cubic-bezier(.2,.7,.2,1); }

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px)); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; overflow-wrap: break-word; -webkit-tap-highlight-color: transparent; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); }
.theme-anim, .theme-anim * { transition: background-color .35s ease, color .35s ease, border-color .35s ease !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a, button, label, input, textarea { touch-action: manipulation; }
code { font: 700 .95em/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .04em; }
.wrap { width: min(calc(100% - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)), var(--wrap)); margin-inline: auto; }
.display, .h2 { font-family: var(--display); font-weight: 800; font-style: italic; line-height: .95; margin: 0; letter-spacing: .005em; }
.display { text-transform: uppercase; letter-spacing: .01em; }
.h2 { font-size: clamp(24px, 6.6vw, 30px); }
.h2.big { font-size: clamp(38px, 10.5vw, 58px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn-bg); color: var(--btn-fg); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.badge { display: inline-block; font: 800 12px/1 "Inter", sans-serif; letter-spacing: .14em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; white-space: nowrap; }
.badge.ex { color: #1a1406; background: repeating-linear-gradient(-45deg, #f6d36b 0 8px, #f1c64e 8px 16px); }

/* header */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: max(6px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px), calc((100% - var(--wrap)) / 2)) 6px max(16px, env(safe-area-inset-left, 0px), calc((100% - var(--wrap)) / 2)); min-height: 57px; background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; flex: none; color: var(--text); text-decoration: none; font-family: var(--display); font-size: 23px; font-weight: 800; font-style: italic; letter-spacing: .03em; }
.brand img { border-radius: 50%; border: 2px solid var(--text); transition: transform .3s var(--ease); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--mist); padding: 8px 10px; border-radius: 8px; transition: color .2s; }
.nav a:not(.cta-sm)::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease); }


.nav .cta-sm { color: var(--btn-fg); background: var(--btn-bg); margin-left: 4px; transition: transform .2s var(--ease), box-shadow .2s, background .2s; }

.nav .cta-sm:active { transform: translateY(0) scale(.97); }
.theme-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; margin-left: 6px; border-radius: 10px; border: 1px solid var(--s3); background: transparent; color: var(--text); cursor: pointer; transition: transform .2s var(--ease), border-color .2s, background .2s; }

.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { fill: currentColor; stroke: none; }
[data-theme="dark"] .theme-toggle .i-moon, [data-theme="light"] .theme-toggle .i-sun { display: none; }
@media (max-width: 640px) { .nav a:not(.cta-sm) { display: none; } }
@media (max-width: 359px) { .brand span { display: none; } .nav .cta-sm { padding-inline: 12px; } }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border-radius: 10px; font: 800 15px/1.1 "Inter", sans-serif;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; overflow: hidden; transition: transform .2s var(--ease), box-shadow .25s, background .2s, border-color .2s; }
.btn.primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn.primary::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(var(--accent-rgb),.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s var(--ease); }


.btn:active { transform: translateY(0) scale(.98); box-shadow: none; transition-duration: .08s; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn[disabled]::after { display: none; }

/* live bar */
.live-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; background: var(--live-bg); border-bottom: 1px solid rgba(224,52,63,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: livein .35s var(--ease) both; }
@keyframes livein { from { opacity: 0; transform: translateY(-8px); } }
.live-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 0; }
.live-tag { margin: 0; display: inline-flex; align-items: center; gap: 8px; font: italic 800 15px/1 var(--display); letter-spacing: .1em; color: #fff; background: var(--live); padding: 7px 10px; border-radius: 6px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.live-title { margin: 0; flex: 1 1 220px; min-width: 0; font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.live-actions a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 8px; background: var(--btn-bg); color: var(--btn-fg); font-weight: 800; font-size: 13.5px; text-decoration: none; transition: transform .2s var(--ease), box-shadow .25s; }

.live-actions a:active { transform: scale(.97); }
.live-actions a img { width: 16px; height: 16px; }
.live-actions .vw { font-weight: 600; opacity: .7; }
@media (max-width: 639px) {
  .live-inner { gap: 8px 10px; }
  .live-title { flex-basis: 100%; order: 3; font-size: 14px; }
  .live-actions { order: 4; width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .live-actions a { justify-content: center; padding: 8px 6px; }
  .live-actions .lg { display: none; }
}


/* hero */
.hero { position: relative; }
.hero-art { display: block; height: 200px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-art::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 200px; background: linear-gradient(180deg, transparent 45%, var(--bg)); pointer-events: none; }
.hero-id { position: relative; display: flex; align-items: flex-end; gap: 16px; margin-top: -54px; }
.mascot { width: clamp(84px, 26vw, 104px); height: clamp(84px, 26vw, 104px); border-radius: 50%; border: 4px solid var(--bg); outline: 2px solid var(--text); background: var(--s2); flex: none; transition: transform .35s var(--ease); }

.hero-id > div { min-width: 0; }
.hero-id h1 { font-size: clamp(54px, 17vw, 124px); padding-bottom: 2px; }
.next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 6px 0 0; font-size: 15px; line-height: 1.35; color: var(--mist); }
.next .lbl { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--warm); margin-right: 4px; }
.next b { color: var(--text); }

/* social groups */
.soc-groups { display: grid; gap: 18px; margin-top: 22px; }
.soc-h { margin: 0 0 8px; font: 800 12px/1 "Inter", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.socials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.s-lives { grid-template-columns: repeat(3, minmax(0,1fr)); }
.socials a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line); color: var(--text); text-decoration: none; overflow: hidden; isolation: isolate;
  transition: transform .22s var(--ease), border-color .2s, box-shadow .25s; }
.socials a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand, var(--accent)); z-index: -1; transition: width .3s var(--ease), opacity .3s; }


.socials a:active { transform: translateY(-1px) scale(.98); }
.socials img { flex: none; transition: transform .3s var(--ease); }

.s-twitch { --brand: #9146ff; } .s-yt { --brand: #ff0033; } .s-kick { --brand: #53fc18; } .s-ig { --brand: #e1306c; } .s-tt { --brand: #25f4ee; } .s-x { --brand: var(--text); }
[data-theme="light"] .s-x img, [data-theme="light"] .s-tt img { filter: invert(1); }
[data-theme="light"] .s-kick { --brand: #2a9d0c; }
.socials span { display: flex; flex-direction: column; min-width: 0; }
.socials b { font-size: 15px; }
.socials i { font-style: normal; font-size: 13.5px; color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 479px) { .s-lives { grid-template-columns: 1fr; } .s-lives a { min-height: 54px; } }

/* sections & cards */
.section { padding: 48px 0 0; }
.sec-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sub { color: var(--mist); margin: 8px 0 18px; }
section[id] { scroll-margin-top: calc(64px + env(safe-area-inset-top, 0px)); }
.card { position: relative; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; margin-bottom: 14px; }
.duo { display: grid; gap: 14px; }

/* tilt + shine (vars set by app.js on pointer devices) */
.tilt { transition: transform .35s var(--ease), box-shadow .3s, border-color .2s; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.14), transparent 45%); }

[data-theme="light"] .tilt::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-rgb),.10), transparent 45%); }

/* elo */
.elo { display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(120% 90% at 0% 0%, rgba(var(--accent-rgb),.13), transparent 55%), var(--s1); }

.elo-body { display: flex; align-items: center; gap: 14px; }
.emblem { width: 150px; flex: none; margin: -14px -6px -10px -14px; }
.emblem img { width: 100%; filter: drop-shadow(0 8px 22px var(--tier-glow, rgba(var(--accent-rgb),.35))); transition: transform .5s var(--ease); }

.elo-info { min-width: 0; }
.tier { margin: 0; font: italic 800 clamp(30px, 9vw, 38px)/1 var(--display); letter-spacing: .02em; color: var(--tier-hi, var(--text)); text-transform: uppercase; }
.lp { margin: 6px 0 0; color: var(--mist); font-size: 15px; } .lp b { color: var(--text); font-size: 22px; font-weight: 800; }
.queue { margin: 4px 0 0; color: var(--mist); font-size: 13.5px; }
@media (max-width: 379px) { .elo-body { flex-direction: column; text-align: center; gap: 4px; } .emblem { width: 200px; margin: -12px auto -14px; } }
.wr { margin-top: 18px; }
.wr-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--mist); } .wr-row b { color: var(--text); font-size: 16px; }
.wr-bar { height: 8px; margin-top: 8px; border-radius: 99px; background: rgba(224,52,63,.35); overflow: hidden; }
.wr-bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .8s var(--ease); }
.wr-sub { margin: 6px 0 0; font-size: 13.5px; color: var(--mist); }
.upd { margin: 12px 0 0; font-size: 13px; color: var(--faint); }
.upd:empty { display: none; }
/* tier text colour + emblem glow (classe .t-<tier> no #elo; emblema = arquivo oficial em assets/ranked) */
.t-iron { --tier-hi: #b3a39b; --tier-glow: rgba(120,105,98,.35); } .t-bronze { --tier-hi: #e0a982; --tier-glow: rgba(168,113,74,.35); }
.t-silver { --tier-hi: #d4dee6; --tier-glow: rgba(143,161,176,.35); } .t-gold { --tier-hi: #ffd98a; --tier-glow: rgba(210,162,76,.4); }
.t-platinum { --tier-hi: #9fe6d8; --tier-glow: rgba(63,165,151,.4); } .t-emerald { --tier-hi: #97ecbf; --tier-glow: rgba(47,174,110,.4); }
.t-diamond { --tier-hi: #bccdff; --tier-glow: rgba(95,132,232,.4); } .t-master { --tier-hi: #e2b7f7; --tier-glow: rgba(164,92,204,.4); }
.t-grandmaster { --tier-hi: #ffb0b3; --tier-glow: rgba(224,52,63,.4); } .t-challenger { --tier-hi: #ffe2a0; --tier-glow: rgba(121,174,240,.5); }
[data-theme="light"] .t-iron { --tier-hi: #5c4d47; } [data-theme="light"] .t-bronze { --tier-hi: #8a5530; } [data-theme="light"] .t-silver { --tier-hi: #4f6170; }
[data-theme="light"] .t-gold { --tier-hi: #8a6413; } [data-theme="light"] .t-platinum { --tier-hi: #1f6f64; } [data-theme="light"] .t-emerald { --tier-hi: #19703f; }
[data-theme="light"] .t-diamond { --tier-hi: #3550a8; } [data-theme="light"] .t-master { --tier-hi: #7a3b9e; } [data-theme="light"] .t-grandmaster { --tier-hi: #a3242d; }
[data-theme="light"] .t-challenger { --tier-hi: #8a6413; }

/* agenda */
.tz { margin: -6px 0 12px; font-size: 14px; color: var(--mist); }
.week { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.week li { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; min-height: 48px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--s2); border: 1px solid transparent; transition: transform .2s var(--ease), border-color .2s; }

.week .d { font: italic 800 18px/1 var(--display); text-transform: uppercase; color: var(--mist); }
.week .w { font-weight: 700; font-size: 15px; line-height: 1.35; min-width: 0; overflow-wrap: break-word; }
@media (max-width: 419px) { .week li { grid-template-columns: 40px minmax(0,1fr); row-gap: 2px; } .week .h { grid-column: 2; font-size: 14px; } .week li.off .h { display: none; } }
.week .w small { display: block; font-weight: 500; font-size: 13px; color: var(--mist); }
.week .h { font-weight: 800; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.week li.off { background: transparent; border-color: var(--line); }
.week li.off .w, .week li.off .h { color: var(--faint); font-weight: 600; }
.week li.today { border-color: var(--text); }
.week li.today .d { color: var(--warm); }

/* videos */
.channel { margin-top: 22px; }
.ch-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ch-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.more { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding-left: 8px; font-size: 14.5px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: letter-spacing .25s var(--ease); }

.vgrid { list-style: none; margin: 0 calc(-16px - env(safe-area-inset-left, 0px)) 0 calc(-16px - env(safe-area-inset-right, 0px)); padding: 4px calc(16px + env(safe-area-inset-right, 0px)) 12px calc(16px + env(safe-area-inset-left, 0px)); scroll-padding-inline: calc(16px + env(safe-area-inset-left, 0px)); display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--s3) transparent; }
.vgrid::-webkit-scrollbar { height: 4px; } .vgrid::-webkit-scrollbar-thumb { background: var(--s3); border-radius: 4px; }
.swipe { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 13px; color: var(--faint); }
.swipe::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--faint), transparent); }
.vgrid li { scroll-snap-align: start; }
.vcard { position: relative; display: block; color: var(--text); text-decoration: none; border-radius: 12px; }
.vcard.tilt::after { bottom: auto; aspect-ratio: 16/9; border-radius: 12px; }
.th { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: var(--s2); border: 1px solid var(--line); transition: box-shadow .3s, border-color .2s; }
.th img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }


.play { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(10,13,20,.72); transition: transform .3s var(--ease), background .2s; }
.play::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 14px solid #e7ebf3; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }

.vt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; font-size: 15px; overflow-wrap: anywhere; font-weight: 700; line-height: 1.35; transition: color .2s; }

.vm { display: block; font-size: 13px; color: var(--mist); margin-top: 2px; }

/* idea form */
.idea-grid { display: grid; gap: 20px; }
.idea-copy p { color: var(--mist); }
.tips { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--mist); font-size: 16px; }
.tips li { padding-left: 22px; position: relative; }
.tips li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 10px; transform: rotate(45deg); background: var(--accent); }
.form { display: grid; gap: 14px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; font-size: 16px; margin-bottom: 6px; padding: 0; }
.req { color: var(--live); } .opt { color: var(--mist); font-weight: 500; }
input[type=text], textarea { width: 100%; min-height: 48px; scroll-margin-top: calc(80px + env(safe-area-inset-top, 0px)); scroll-margin-bottom: 24px; font: 400 16px/1.45 "Inter", sans-serif; color: var(--text); background: var(--input-bg); border: 1px solid var(--s3); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }

textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: var(--ph); }
input[type=text]:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.22); }
.field.bad input, .field.bad textarea { border-color: var(--live); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; background: var(--input-bg); border: 1px solid var(--s3); border-radius: 10px; padding: 4px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; text-align: center; padding: 6px 2px; border-radius: 7px; font-size: clamp(14px, 4.2vw, 15px); white-space: nowrap; letter-spacing: -.01em; line-height: 1.2; font-weight: 700; color: var(--mist); cursor: pointer; transition: background .2s, color .2s, transform .15s; }

.seg label:active { transform: scale(.97); }
.seg input:checked + label { background: var(--btn-bg); color: var(--btn-fg); }
.seg label { flex-direction: column; gap: 1px; min-height: 52px; }
.seg .ch { display: inline-flex; align-items: center; gap: 4px; }
.seg .ch img { width: 16px; height: 16px; flex: none; display: block; }
.seg label small { font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: 0; opacity: .78; }
@media (max-width: 360px) { .seg label { padding: 6px 0; font-size: 13px; letter-spacing: -.02em; } .seg .ch { gap: 2px; } .seg .ch img { width: 13px; height: 13px; } .seg { gap: 2px; padding: 3px; } .seg label small { letter-spacing: -.03em; font-weight: 500; } }
.seg input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 1px; }
.hint { margin: 4px 0 0; font-size: 13px; color: var(--mist); text-align: right; }
.err { margin: 4px 0 0; font-size: 13px; color: var(--err); }
.err:empty { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; font-size: 15px; font-weight: 600; min-height: 1.2em; }
.status.ok { color: var(--ok); } .status.bad { color: var(--err); } .status.info { color: var(--accent); }
.fine { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--mist); }

/* mural */
.mural { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.idea-card { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); transition: transform .25s var(--ease), box-shadow .3s, border-color .2s; }

.idea-card .st { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; }
.idea-card .st.done { background: var(--btn-bg); color: var(--btn-fg); }
.idea-card .st.ok { border: 1px solid var(--accent); color: var(--accent); }
.idea-card blockquote { margin: 0; padding-left: 12px; border-left: 3px solid var(--warm); font-size: 16px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.idea-card .by { margin: auto 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; font-size: 14px; color: var(--mist); }
.idea-card .by b { color: var(--warm); font-weight: 700; overflow-wrap: anywhere; }
.idea-card .by a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding-left: 8px; font-weight: 800; text-decoration: none; }

.empty { color: var(--mist); }

/* partner (Bonoxs) */
.partners .h2 { font-size: 13px; line-height: 1.3; font-style: normal; font-family: "Inter", sans-serif; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.partner { position: relative; display: flex; align-items: center; gap: 18px; margin-top: 12px; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--s1); color: var(--text); text-decoration: none; overflow: hidden; }

.p-logo { display: grid; place-items: center; width: 132px; height: 64px; flex: none; border-radius: 10px; background: var(--s2); transition: background .3s; }
.p-logo img { width: 96px; filter: var(--logo-filter); transition: filter .3s, transform .3s var(--ease); }


.p-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 15px; color: var(--mist); }
.p-txt b { color: var(--text); font-size: 16px; }
.p-txt code { color: var(--warm); }
.p-go { margin-left: auto; font-size: 22px; font-weight: 800; color: var(--mist); transition: transform .25s var(--ease), color .2s; }

@media (max-width: 479px) { .partner { flex-wrap: wrap; } .p-logo { width: 100%; } .p-go { display: none; } }


/* footer */
.foot { position: relative; margin-top: 72px; padding: 40px 0 calc(28px + env(safe-area-inset-bottom, 0px)); background: var(--s1); border-top: 1px solid var(--line); color: var(--mist); font-size: 15px; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb),.8) 30%, var(--warm) 50%, rgba(var(--accent-rgb),.8) 70%, transparent); opacity: .7; }
.foot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.foot-brand, .foot-biz { grid-column: 1 / -1; }
.foot-logo { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; color: var(--text); text-decoration: none; font: italic 800 34px/1 var(--display); letter-spacing: .03em; }
.foot-logo img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--text); transition: transform .35s var(--ease); }
.foot-brand p { margin: 12px 0 14px; color: var(--mist); }
.foot-cta { width: 100%; }
.foot-col h2 { margin: 0 0 6px; font: 800 12px/1.3 "Inter", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li a { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); font-weight: 600; text-decoration: none; transition: color .2s, transform .2s var(--ease); }
.foot-col li a img { flex: none; transition: transform .25s var(--ease); }
.foot-col li a small { font-size: 13px; font-weight: 500; color: var(--mist); overflow-wrap: anywhere; }
[data-theme="light"] .foot-col .s-x img, [data-theme="light"] .foot-col .s-tt img { filter: invert(1); }
.foot-biz p { margin: 0; }
.foot-biz .mail { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; font-weight: 700; font-size: 16px; color: var(--accent); text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb),.4); text-underline-offset: 4px; overflow-wrap: anywhere; transition: text-decoration-color .2s; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.copy { margin: 0; font-size: 13.5px; color: var(--mist); }
.to-top { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: 14.5px; color: var(--text); text-decoration: none; }
.to-top span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--s3); transition: transform .25s var(--ease), border-color .2s, background .2s; }
.legal { margin: 12px 0 0; max-width: 760px; font-size: 12px; line-height: 1.5; color: var(--faint); }

@media (min-width: 720px) {
  .hero-art, .hero-art::after { height: 300px; }
  .hero-id { margin-top: -70px; gap: 22px; }
  .mascot { width: 148px; height: 148px; }
  .s-redes { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .vgrid { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0,1fr)); overflow: visible; margin: 0; padding: 4px 0 8px; }
  .swipe { display: none; }
  .card { padding: 24px; }
  .mural { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-biz { grid-column: auto; }
  .foot-cta { width: auto; }
}
@media (min-width: 960px) {
  .hero-art, .hero-art::after { height: 340px; }
  .soc-groups { grid-template-columns: 3fr 4fr; gap: 24px; margin-top: 28px; }
  .socials a { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 90px; }
  .duo { grid-template-columns: 1fr 1.25fr; gap: 18px; }
  .elo-body { flex: 1; flex-direction: column; justify-content: center; text-align: center; gap: 6px; }
  .emblem { width: 250px; margin: -10px auto -18px; }
  .tier { font-size: 46px; }
  .elo .upd { text-align: center; }
  .idea-grid { grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
  .idea-copy { position: sticky; top: 100px; }
  .mural { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; }
  .foot-brand { grid-column: auto; }
  .section { padding-top: 72px; }
}


/* ---------- Hover effects: only on devices that really hover (mouse/trackpad), so nothing sticks after a tap ---------- */
@media (hover: hover) and (pointer: fine) {
  .tilt { will-change: transform; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
  .brand:hover img { transform: rotate(-8deg) scale(1.06); }
  .nav a:hover { color: var(--text); }
  .nav a:not(.cta-sm):hover::after { transform: scaleX(1); }
  .nav .cta-sm:hover { color: var(--btn-fg); background: var(--btn-hover); transform: translateY(-1px); box-shadow: var(--glow); }
  .theme-toggle:hover { border-color: var(--accent); background: var(--s2); transform: rotate(-12deg); }
  .btn.primary:hover { background: var(--btn-hover); transform: translateY(-2px); box-shadow: var(--glow); }
  .btn.primary:hover::after { transform: translateX(120%); }
  .live-actions a:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(224,52,63,.35); }
  .mascot:hover { transform: rotate(-6deg) scale(1.04); }
  .socials a:hover { transform: translateY(-3px); border-color: var(--brand, var(--accent)); box-shadow: var(--shadow); }
  .socials a:hover::before { width: 100%; opacity: .12; }
  .socials a:hover img { transform: scale(1.15) rotate(-6deg); }
  .tilt:hover::after { opacity: 1; }
  .elo:hover { box-shadow: var(--shadow); }
  .elo:hover .emblem img { transform: translateY(-4px) scale(1.04); }
  .week li:not(.off):hover { transform: translateX(4px); border-color: var(--s3); }
  .more:hover { letter-spacing: .03em; }
  .vcard:hover .th { box-shadow: var(--shadow), var(--glow); border-color: rgba(var(--accent-rgb),.6); }
  .vcard:hover .th img { transform: scale(1.07); filter: saturate(1.1); }
  .vcard:hover .play { transform: scale(1.18); background: var(--live); }
  .vcard:hover .vt { color: var(--accent); }
  input[type=text]:hover, textarea:hover { border-color: rgba(var(--accent-rgb),.55); }
  .seg label:hover { background: var(--s2); color: var(--text); }
  .idea-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--s3); }
  .idea-card .by a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .partner:hover { border-color: #e8e800; box-shadow: var(--shadow), 0 0 0 1px rgba(232,232,0,.35); }
  .partner:hover .p-logo { background: #ffff00; }
  .partner:hover .p-logo img { filter: none; transform: scale(1.06); }
  .partner:hover .p-go { transform: translateX(4px); color: var(--text); }
  .foot-logo:hover img { transform: rotate(-8deg) scale(1.06); }
  .foot-col li a:hover { color: var(--accent); transform: translateX(4px); }
  .foot-col li a:hover img { transform: scale(1.18) rotate(-6deg); }
  .foot-biz .mail:hover { text-decoration-color: currentColor; }
  .to-top:hover span { transform: translateY(-3px); border-color: var(--accent); background: var(--s2); }
}

/* ---------- Touch feedback (:active) for phones/tablets ---------- */
@media (hover: none), (pointer: coarse) {
  .socials a:active { transform: scale(.97); border-color: var(--brand, var(--accent)); }
  .socials a:active::before { width: 100%; opacity: .14; }
  .vcard:active .th { border-color: rgba(var(--accent-rgb),.7); box-shadow: var(--glow); }
  .vcard:active .th img { transform: scale(1.04); }
  .vcard:active .play { background: var(--live); transform: scale(1.1); }
  .idea-card:active, .elo:active { transform: scale(.985); }
  .partner:active { border-color: #e8e800; }
  .partner:active .p-logo { background: #ffff00; }
  .partner:active .p-logo img { filter: none; }
  .btn.primary:active { background: var(--btn-hover); box-shadow: var(--glow); }
  .nav a:active, .more:active, .idea-card .by a:active { opacity: .7; }
  .week li:not(.off):active { border-color: var(--s3); }
  .seg label:active { background: var(--s2); }
  .foot-col li a:active, .to-top:active, .foot-biz .mail:active { opacity: .7; }
  .foot-logo:active img { transform: scale(.95); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .tilt, .btn:hover, .socials a:hover, .idea-card:hover, .vcard:hover .th img, .elo:hover .emblem img, .week li:hover,
  .mascot:hover, .brand:hover img, .theme-toggle:hover, .partner:hover .p-go, .vcard:hover .play, .socials a:hover img { transform: none !important; }
  .btn.primary::after { display: none; }
}
