/* =========================================================
   RiftBorn — feuille de style principale
   Palette : rouge faille, blanc os, noir cendre, braise
   ========================================================= */
:root {
  --red: #e3242b;
  --red-hot: #ff3b3f;
  --red-deep: #9e1016;
  --red-rgb: 227, 36, 43;
  --ember: #ff7a3d;
  --bone: #ece4d8;
  --bone-dim: #cfc4b4;
  --muted: #a3958b;
  --bg: #0a0707;
  --bg-2: #130d0d;
  --card: rgba(24, 15, 15, .82);
  --card-h: rgba(36, 20, 20, .9);
  --line: rgba(236, 228, 216, .09);
  --line-red: rgba(var(--red-rgb), .4);
  --glow: rgba(var(--red-rgb), .16);
  --glow-strong: rgba(var(--red-rgb), .5);
  --zone-green: #4ade80;
  --zone-orange: #fb923c;
  --zone-red: #ef4444;
  --f-display: 'Teko', 'Barlow Condensed', Impact, sans-serif;
  --f-cond: 'Barlow Condensed', 'Barlow', Arial Narrow, sans-serif;
  --f-body: 'Barlow', system-ui, -apple-system, Segoe UI, sans-serif;
  --radius: 14px;
  --header-h: 66px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: radial-gradient(ellipse 1300px 800px at 50% -10%, #2a0d0e 0%, #140909 45%, var(--bg) 100%) fixed, var(--bg);
  color: var(--bone); font-family: var(--f-body); font-size: 1.04rem; line-height: 1.6;
  overflow-x: hidden; overflow-wrap: break-word;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--red-hot); }
a:hover { color: var(--bone); }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; border-radius: 4px; }
main { flex: 1; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* grain + fond */
.rb-bg { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: url('/assets/img/banner-1000.webp') center 30% / cover no-repeat; opacity: .14; filter: blur(3px) saturate(.8); transform: scale(1.05); }
.rb-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,7,7,.55) 0%, rgba(10,7,7,.9) 60%, var(--bg) 100%); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ===================== EN-TÊTE ===================== */
.rb-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; gap: 22px; padding: 0 32px;
  background: rgba(12, 8, 8, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.rb-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red) 30%, var(--red) 70%, transparent); opacity: .55; }
.rb-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: 0 0 auto; }
.rb-brand img { width: 44px; height: 44px; filter: drop-shadow(0 0 10px var(--glow-strong)); transition: transform .3s, filter .3s; }
.rb-brand:hover img { transform: rotate(-8deg) scale(1.05); filter: drop-shadow(0 0 16px var(--red)); }
.rb-word { font-family: var(--f-display); font-weight: 700; font-size: 1.95rem; line-height: 1; letter-spacing: .02em; padding-top: 4px; }
.rb-word b { color: var(--red); font-weight: 700; }
.rb-word span { color: var(--bone); }
.rb-online { display: flex; align-items: center; gap: 6px; font-family: var(--f-cond); font-size: .85rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.rb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red-hot); box-shadow: 0 0 8px var(--red-hot); animation: rb-pulse 1.6s ease-in-out infinite; }
@keyframes rb-pulse { 50% { opacity: .3; } }

.rb-nav { display: flex; align-items: center; justify-content: center; gap: 2px; flex: 1; }
.rb-nav a { position: relative; padding: 8px 13px; border-radius: 6px; text-decoration: none; white-space: nowrap;
  font-family: var(--f-cond); font-size: 1.02rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--bone-dim); transition: color .2s, background .2s; }
.rb-nav a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.rb-nav a:hover { color: var(--bone); background: var(--glow); }
.rb-nav a:hover::after, .rb-nav a.active::after { transform: scaleX(1); }
.rb-nav a.active { color: var(--bone); }
.rb-nav a.ext { color: var(--muted); }
.rb-nav .rb-nav-login { display: none; }

.rb-account { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.rb-burger { display: none; }

/* ===================== BOUTONS ===================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 24px; border-radius: 8px;
  font-family: var(--f-cond); font-size: 1.08rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s; }
.btn:active { transform: translateY(1px); }
.btn-red { color: #fff; background: linear-gradient(135deg, var(--red-deep), var(--red) 55%, var(--red-hot));
  box-shadow: 0 0 18px rgba(var(--red-rgb), .35), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-red:hover { color: #fff; box-shadow: 0 0 32px rgba(var(--red-rgb), .6), inset 0 1px 0 rgba(255,255,255,.18); transform: translateY(-1px); }
.btn-ghost { color: var(--bone); background: rgba(236,228,216,.04); border-color: var(--line); }
.btn-ghost:hover { color: var(--bone); border-color: var(--red); background: var(--glow); }
.btn-danger { color: #ffb4b4; background: transparent; border-color: rgba(239,68,68,.45); }
.btn-danger:hover { color: #fff; background: rgba(239,68,68,.2); }
.btn-sm { padding: 8px 16px; font-size: .95rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* bouton Google (charte Google : logo G + texte, fond sombre) */
.btn-google { display: inline-flex; align-items: center; gap: 12px; padding: 0 16px 0 4px; height: 44px; border-radius: 8px;
  background: #131314; border: 1px solid #8e918f; color: #e3e3e3; text-decoration: none; white-space: nowrap;
  font-family: 'Roboto', var(--f-body); font-size: .98rem; font-weight: 600; letter-spacing: .01em; transition: background .2s, box-shadow .2s; }
.btn-google:hover { color: #fff; background: #1f1f21; box-shadow: 0 0 0 3px rgba(var(--red-rgb), .35); }
.btn-google .g { width: 36px; height: 36px; display: grid; place-items: center; background: #fff; border-radius: 6px; }
.btn-google .g svg { width: 20px; height: 20px; }
.btn-google.sm { height: 38px; font-size: .9rem; }
.btn-google.sm .g { width: 30px; height: 30px; }
.btn-google.sm .g svg { width: 17px; height: 17px; }

/* puce utilisateur connecté */
.rb-user { position: relative; }
.rb-user-btn { display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 999px; cursor: pointer;
  background: rgba(236,228,216,.05); border: 1px solid var(--line); color: var(--bone); font-family: var(--f-cond); font-size: 1rem; font-weight: 600; letter-spacing: .04em; }
.rb-user-btn:hover { border-color: var(--red); }
.rb-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--red-deep); display: grid; place-items: center;
  font-family: var(--f-display); font-size: 1.2rem; color: #fff; flex: 0 0 auto; }
.rb-user-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: 6px; display: flex; flex-direction: column;
  background: #150d0d; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.6); z-index: 120; }
.rb-user-menu a, .rb-user-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; border: 0; background: none;
  color: var(--bone-dim); font: 600 1rem var(--f-cond); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.rb-user-menu a:hover, .rb-user-menu button:hover { background: var(--glow); color: var(--bone); }
.rb-user-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

/* ===================== PIED DE PAGE ===================== */
.rb-footer { margin-top: 70px; padding: 36px 20px 30px; border-top: 1px solid var(--line); text-align: center; color: var(--muted);
  font-size: .9rem; background: linear-gradient(180deg, transparent, rgba(0,0,0,.4)); }
.rb-footer .rb-word { font-size: 1.6rem; }
.rb-footer-tag { font-family: var(--f-cond); letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; margin: 4px 0 16px; color: var(--muted); }
.rb-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 14px; }
.rb-footer-links a { color: var(--bone-dim); text-decoration: none; }
.rb-footer-links a:hover { color: var(--red-hot); }
.rb-footer small { display: block; max-width: 720px; margin: 10px auto 0; opacity: .75; font-size: .8rem; }

/* ===================== MISE EN PAGE ===================== */
.wrap { width: min(1140px, 92%); margin: 0 auto; }
.wrap-narrow { width: min(860px, 92%); margin: 0 auto; }
section.block { padding: 64px 0 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-cond); font-weight: 700; font-size: .9rem;
  letter-spacing: .32em; text-transform: uppercase; color: var(--red-hot); }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--red); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1; letter-spacing: .02em; margin: 0; text-transform: uppercase; }
h2.title { font-size: clamp(2.4rem, 5vw, 3.4rem); margin: 10px 0 14px; }
h2.title em { font-style: normal; color: var(--red); }
.lead { color: var(--bone-dim); font-size: 1.12rem; max-width: 720px; margin: 0 0 30px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* en-tête des pages internes */
.page-hero { padding: 64px 0 10px; text-align: center; }
.page-hero h1 { font-size: clamp(3rem, 8vw, 5.2rem); }
.page-hero h1 em { font-style: normal; color: var(--red); }
.page-hero p { color: var(--bone-dim); max-width: 680px; margin: 12px auto 0; font-size: 1.12rem; }

/* cartes */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px;
  overflow: hidden; transition: border-color .25s, transform .25s, background .25s; }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent); opacity: .6; }
.card.hover:hover { border-color: var(--line-red); background: var(--card-h); transform: translateY(-3px); }
.card h3 { font-size: 1.9rem; margin-bottom: 8px; }
.card p { margin: 0 0 .7em; color: var(--bone-dim); }
.card p:last-child { margin-bottom: 0; }
.card .big-num { font-family: var(--f-display); font-size: 3.4rem; line-height: .8; color: var(--red); opacity: .9; display: block; margin-bottom: 10px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.prose h2 { font-size: 2.2rem; margin: 1.6em 0 .4em; }
.prose h2:first-child, .prose .kicker + h2 { margin-top: 8px; }
.prose h3 { font-size: 1.6rem; margin: 1.3em 0 .3em; color: var(--bone); }
.prose p, .prose li { color: var(--bone-dim); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--red); }
.prose strong { color: var(--bone); }
.note { border-left: 3px solid var(--red); background: var(--glow); padding: 12px 16px; border-radius: 0 10px 10px 0; color: var(--bone-dim); margin: 18px 0; }
.todo { padding: 0 5px; border-radius: 4px; background: rgba(251,191,36,.18); border: 1px dashed #fbbf24; color: inherit; }

/* tableaux */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); -webkit-overflow-scrolling: touch; }
table.rb-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
table.rb-table.wide { min-width: 640px; }
.rb-table th, .rb-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rb-table th { font-family: var(--f-cond); font-weight: 700; font-size: .86rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red-hot); background: rgba(0,0,0,.25); }
.rb-table tr:last-child td { border-bottom: 0; }
.rb-table tbody tr:hover td { background: rgba(var(--red-rgb), .05); }
.rb-table td.num, .rb-table th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* badges de rang F → S */
.rank { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; font-family: var(--f-display); font-size: 1.6rem;
  font-weight: 700; line-height: 1; padding-top: 4px; color: #fff; background: #555; border: 1px solid rgba(255,255,255,.15); }
.rank.F { background: #4b5563; } .rank.E { background: #3f7d4f; } .rank.D { background: #2563a8; }
.rank.C { background: #7c3aed; } .rank.B { background: #c2410c; } .rank.A { background: #b91c1c; }
.rank.S { background: linear-gradient(135deg, #1a0405, #e3242b 50%, #ffb347); box-shadow: 0 0 16px rgba(var(--red-rgb), .7); }

/* zones */
.zone { border-top: 3px solid var(--z); }
.zone h3 { color: var(--z); }
.zone.green { --z: var(--zone-green); } .zone.orange { --z: var(--zone-orange); } .zone.red { --z: var(--zone-red); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font: 700 .78rem var(--f-cond); letter-spacing: .12em; text-transform: uppercase;
  background: rgba(236,228,216,.07); border: 1px solid var(--line); color: var(--bone-dim); }

/* ===================== ACCUEIL ===================== */
.hero { position: relative; padding: 26px 0 0; text-align: center; }
.hero-banner { width: min(1100px, 100%); margin: 0 auto; display: block; aspect-ratio: 1672 / 941;
  -webkit-mask-image: radial-gradient(closest-side, #000 68%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 68%, transparent 100%); }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-inner { margin-top: -6%; position: relative; z-index: 2; padding: 0 16px; }
.hero h1 { font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-family: var(--f-cond); font-weight: 600; letter-spacing: .14em; color: var(--bone-dim); text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }

.clock { display: inline-flex; flex-direction: column; align-items: center; margin-top: 28px; padding: 12px 26px 10px; border-radius: 12px;
  background: rgba(0,0,0,.55); border: 1px solid var(--line-red); box-shadow: 0 0 30px rgba(var(--red-rgb), .18) inset; }
.clock-label { font: 700 .75rem var(--f-cond); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.clock-time { font-family: var(--f-display); font-size: clamp(3rem, 9vw, 4.6rem); line-height: 1; color: var(--red-hot); letter-spacing: .04em;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 22px rgba(var(--red-rgb), .7); padding-top: 6px; }
.clock-time.low { animation: rb-blink 1s steps(2) infinite; }
@keyframes rb-blink { 50% { opacity: .45; } }

.pitch { font-size: 1.25rem; color: var(--bone); max-width: 760px; margin: 0 auto; }
.pitch strong { color: var(--red-hot); }

.loop { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; counter-reset: s; }
.loop li { list-style: none; position: relative; padding: 18px 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.loop li::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--f-display); font-size: 2.2rem; color: var(--red); line-height: 1; }
.loop li b { display: block; font-family: var(--f-cond); text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; color: var(--bone); }
.loop li span { font-size: .9rem; color: var(--muted); }
.loop li:not(:last-child)::after { content: "›"; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); color: var(--red); font-size: 1.4rem; z-index: 2; }

.top5 { list-style: none; margin: 0; padding: 0; }
.top5 li { display: flex; align-items: center; gap: 14px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.top5 li:last-child { border-bottom: 0; }
.top5 .pos { width: 34px; font-family: var(--f-display); font-size: 1.8rem; color: var(--red); line-height: 1; padding-top: 4px; }
.top5 .who { flex: 1; font-weight: 600; }
.top5 .val { font-variant-numeric: tabular-nums; color: var(--bone-dim); font-family: var(--f-cond); font-size: 1.1rem; }

.cta-band { margin-top: 70px; padding: 46px 24px; text-align: center; border-radius: 18px; border: 1px solid var(--line-red);
  background: radial-gradient(ellipse at 50% 0%, rgba(var(--red-rgb), .28), transparent 70%), var(--card); }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.cta-band p { color: var(--bone-dim); max-width: 600px; margin: 10px auto 24px; }

/* ===================== CLASSEMENT ===================== */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 26px 0 22px; }
.tab { padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line); background: rgba(236,228,216,.04); color: var(--bone-dim); cursor: pointer;
  font: 700 1rem var(--f-cond); letter-spacing: .1em; text-transform: uppercase; }
.tab:hover { border-color: var(--red); color: var(--bone); }
.tab[aria-selected="true"] { background: var(--glow); border-color: var(--red); color: var(--bone); }
.lb-meta { text-align: center; color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.lb-pos { font-family: var(--f-display); font-size: 1.7rem; line-height: 1; width: 64px; padding-top: 4px; }
.lb-row-1 .lb-pos { color: #ffcf5a; } .lb-row-2 .lb-pos { color: #d9d9e0; } .lb-row-3 .lb-pos { color: #d08a52; }
.lb-me td { background: rgba(var(--red-rgb), .12) !important; }
.lb-me .lb-name::after { content: "toi"; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--red); color: #fff; font: 700 .7rem var(--f-cond); letter-spacing: .1em; text-transform: uppercase; vertical-align: 2px; }
.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty b { display: block; font-family: var(--f-display); font-size: 2rem; color: var(--bone); font-weight: 600; text-transform: uppercase; }

/* ===================== COMPTE ===================== */
.acc-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.acc-head .rb-avatar { width: 76px; height: 76px; font-size: 2.6rem; border: 2px solid var(--red); }
.acc-head h2 { font-size: 2.6rem; }
.acc-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font: 700 .82rem var(--f-cond); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.input { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0,0,0,.4); color: var(--bone);
  font: 500 1.05rem var(--f-body); }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(var(--red-rgb), .25); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row .input { flex: 1; min-width: 180px; }
.msg { min-height: 1.4em; font-size: .95rem; margin-top: 6px; }
.msg.ok { color: var(--zone-green); } .msg.err { color: #ff8a8a; }
dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
dl.kv dt { color: var(--muted); font: 600 .9rem var(--f-cond); letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }
dl.kv dd { margin: 0; color: var(--bone); overflow-wrap: anywhere; }
.danger { margin-top: 18px; border-color: rgba(239,68,68,.35); }
.danger::before { background: linear-gradient(90deg, transparent, #ef4444, transparent); }
.login-box { max-width: 520px; margin: 30px auto 0; text-align: center; padding: 38px 30px; }
.login-box img { width: 120px; margin-bottom: 10px; filter: drop-shadow(0 0 20px var(--glow-strong)); }
.login-box ul { text-align: left; color: var(--bone-dim); margin: 18px 0 26px; padding-left: 1.2em; }
.login-box li::marker { color: var(--red); }
.alert { padding: 12px 16px; border-radius: 10px; margin: 18px auto 0; max-width: 620px; border: 1px solid rgba(239,68,68,.5); background: rgba(239,68,68,.12); color: #ffc9c9; text-align: center; }

/* ===================== 404 ===================== */
.e404 { text-align: center; padding: 70px 0 20px; }
.e404 .clock-time { font-size: clamp(5rem, 18vw, 9rem); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1180px) {
  .rb-header { padding: 0 16px; gap: 12px; }
  .rb-burger { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; order: 3;
    width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--glow); cursor: pointer; padding: 0; }
  .rb-burger span { display: block; width: 19px; height: 2px; background: var(--bone); border-radius: 2px; transition: transform .25s, opacity .2s; }
  .rb-open .rb-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .rb-open .rb-burger span:nth-child(2) { opacity: 0; }
  .rb-open .rb-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .rb-account { margin-left: auto; }
  .rb-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 14px 18px; background: #120b0b; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.6);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .rb-open .rb-nav { display: flex; }
  .rb-nav a { padding: 13px 14px; font-size: 1.12rem; }
  .rb-nav a::after { display: none; }
  .g5 { grid-template-columns: repeat(3, 1fr); }
  .loop { grid-template-columns: repeat(3, 1fr); }
  .loop li:nth-child(3)::after { display: none; }
}
@media (max-width: 820px) {
  .g2, .g3, .acc-grid { grid-template-columns: 1fr; }
  .g5 { grid-template-columns: repeat(2, 1fr); }
  .rb-online { display: none; }
  .hero-inner { margin-top: -2%; }
}
@media (max-width: 560px) {
  html { font-size: 106%; }
  .rb-word { font-size: 1.6rem; }
  .rb-brand img { width: 38px; height: 38px; }
  .rb-account .btn-google span.t { display: none; }
  .rb-account .btn-google { padding-right: 4px; }
  .rb-user-btn .n { display: none; }
  .rb-user-btn { padding-right: 4px; }
  .g5 { grid-template-columns: 1fr; }
  .loop { grid-template-columns: repeat(2, 1fr); }
  .loop li::after { display: none; }
  .card { padding: 22px 18px 18px; }
  .input { font-size: 16px; }
}
@media (max-width: 400px) { .rb-word { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.e404 h1.title { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 14px 0 10px; }
.e404 h1.title em { font-style: normal; color: var(--red); }
