/* Bippinbits — colors and shapes taken from the logo: ink black, orange, cream outline. */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --cream: #f8f0e3;
  --cream-2: #efe2cc;
  --paper: #fffaf2;
  --ink: #231f1c;
  --ink-2: #2f2925;
  --ink-3: #4a423b;
  --orange: #f39200;
  --orange-2: #ffab2e;
  --text: #2a2521;
  --muted: #6e645a;
  --line: #e2d4bd;
  --accent: var(--orange);

  --radius: 20px;
  --radius-s: 12px;
  --pop: 0 4px 0 var(--ink);
  --shadow: 0 18px 40px -22px rgba(35, 31, 28, .55);
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #b86a00; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-3); }
.eyebrow { font: 600 .85rem/1 var(--display); text-transform: uppercase; letter-spacing: .12em; color: #b86a00; margin-bottom: 1rem; }
.eyebrow a { text-decoration: none; }
.plain { list-style: none; margin: 0; padding: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 600 1.02rem/1 var(--display);
  padding: .8em 1.25em;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: var(--orange); color: var(--ink);
  text-decoration: none;
  box-shadow: var(--pop);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  cursor: pointer;
}
.btn:hover { color: var(--ink); background: var(--orange-2); transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-ghost { background: var(--paper); }
.btn-ghost:hover { background: #fff; }
.btn-ink { background: var(--ink); color: var(--cream); border-color: var(--ink); box-shadow: 0 4px 0 rgba(0,0,0,.35); }
.btn-ink:hover { background: var(--ink-2); color: #fff; box-shadow: 0 6px 0 rgba(0,0,0,.35); }
.btn-light { background: var(--cream); }
.btn-small { padding: .55em 1em; font-size: .95rem; border-width: 2.5px; box-shadow: 0 3px 0 var(--ink); }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.25rem 0; }

.chip {
  display: inline-block; font: 600 .78rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
  padding: .45em .8em; border-radius: 999px; border: 2px solid var(--ink); margin-bottom: .8rem;
}
.chip-upcoming { background: var(--accent); color: var(--ink); }
.chip-out { background: var(--paper); color: var(--ink); }

.card { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: var(--pop); }

/* ---------------------------------------------------------------- header */
.site-header { background: var(--ink); position: sticky; top: 0; z-index: 20; border-bottom: 3px solid #000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { width: 118px; height: auto; transition: transform .2s ease; }
.brand:hover img { transform: rotate(-4deg) scale(1.04); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  color: var(--cream); text-decoration: none; font: 500 1.05rem/1 var(--display);
  padding: .6em .8em; border-radius: 999px;
}
.nav a:not(.btn):hover, .nav a[aria-current] { background: var(--ink-2); color: var(--orange-2); }
.nav .btn { margin-left: 6px; }

/* ---------------------------------------------------------------- hero */
.hero {
  background:
    radial-gradient(circle at 85% -10%, rgba(243,146,0,.22), transparent 45%),
    var(--ink);
  color: var(--cream);
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after { /* scalloped edge into the cream page */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px;
  background: radial-gradient(circle at 20px 28px, var(--cream) 19px, transparent 20px) 0 0 / 40px 28px repeat-x;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero .hl { color: var(--orange); white-space: nowrap; }
.hero .lead { color: #d9cdbb; }
.hero .eyebrow { color: var(--orange-2); }
.hero .btn-ghost { background: transparent; color: var(--cream); border-color: var(--cream); box-shadow: 0 4px 0 rgba(0,0,0,.4); }
.hero .btn-ghost:hover { background: var(--ink-2); }
.hero-feature {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  border: 4px solid var(--cream); box-shadow: 0 8px 0 #000, var(--shadow);
  transform: rotate(1.5deg); transition: transform .25s ease; text-decoration: none; color: #fff;
}
.hero-feature:hover { transform: rotate(0deg) scale(1.01); color: #fff; }
.hero-feature img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.hero-feature-label {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: var(--ink-2); border-top: 3px solid var(--cream); color: var(--cream);
  font: 500 1.05rem/1.3 var(--display);
}
.hero-feature-label .chip { margin: 0; flex: none; }
.hero-feature-label strong { color: #fff; }

/* ---------------------------------------------------------------- sections */
.section { padding: 80px 0; }
.section-title { margin-bottom: .8em; }
.section-lead { font-size: 1.15rem; max-width: 720px; color: var(--ink-3); margin-top: -.6em; margin-bottom: 2rem; }
.section-ink { background: var(--ink); color: var(--cream); }
.section-ink .section-title { color: #fff; }
.section-ink .section-lead { color: #d9cdbb; }
.section-tint { background: color-mix(in srgb, var(--accent) 14%, var(--cream)); border-block: 3px solid var(--ink); }

/* ---------------------------------------------------------------- games */
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.game-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 6px 0 var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.game-card:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--ink); }
.game-card-art { position: relative; display: block; overflow: hidden; border-bottom: 3px solid var(--ink); background: var(--ink); }
.game-card-art > img:first-child { width: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: transform .4s ease; }
.game-card:hover .game-card-art > img:first-child { transform: scale(1.03); }
.game-card-logo { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 62%; filter: drop-shadow(0 6px 12px rgba(0,0,0,.45)); }
.game-card-body { padding: 26px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.game-card-body .actions { margin-top: auto; padding-top: .5rem; }
.game-card-body .chip { align-self: flex-start; }
.game-card h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.game-card h3 a { text-decoration: none; }
.game-title-sub { display: block; font-size: max(.38em, 1rem); font-weight: 500; color: var(--muted); margin-top: .3em; letter-spacing: 0; }
.game-card-tagline { font: 500 1.15rem/1.35 var(--display); color: var(--ink-3); }
.game-card .actions { margin-bottom: 0; }

/* ---------------------------------------------------------------- jams */
.jams { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.jams a { display: block; text-decoration: none; color: var(--cream); background: var(--ink-2); border-radius: var(--radius-s); overflow: hidden; border: 2px solid var(--ink-3); transition: transform .15s ease, border-color .15s ease; height: 100%; }
.jams a:hover { transform: translateY(-4px) rotate(-1deg); border-color: var(--orange); color: #fff; }
.jams img { aspect-ratio: 315 / 250; object-fit: cover; width: 100%; }
.jam-name { display: block; font: 600 1.05rem/1.2 var(--display); padding: 10px 12px 0; }
.jam-meta { display: block; font-size: .82rem; color: #b4a796; padding: 2px 12px 12px; }
.jam-name:last-child { padding-bottom: 12px; }

/* ---------------------------------------------------------------- about / cta */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.1em; }
.cta-band { background: var(--accent); border-top: 3px solid var(--ink); padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: .25em; }
.cta-inner p { margin: 0; max-width: 60ch; color: var(--ink); }

/* ---------------------------------------------------------------- game page */
.game-hero { position: relative; background: var(--ink); border-bottom: 3px solid var(--ink); }
.game-hero-art { width: 100%; max-height: 72vh; min-height: 260px; object-fit: cover; }
.game-hero-logo { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(560px, 60%); filter: drop-shadow(0 8px 18px rgba(0,0,0,.5)); }
.game-intro { padding-top: 56px; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.facts { position: sticky; top: 100px; }
.facts dl, .press-facts dl { margin: 0 0 1rem; display: grid; gap: 4px; }
.facts dt, .press-facts dt { font: 600 .8rem/1 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 12px; }
.facts dd, .press-facts dd { margin: 0; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.features li { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); padding: 22px; box-shadow: var(--pop); }
.features h3 { font-size: 1.2rem; }
.features p { margin: 0; color: var(--ink-3); }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery a { display: block; border-radius: var(--radius-s); overflow: hidden; border: 3px solid var(--ink); box-shadow: var(--pop); background: var(--ink); }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .3s ease, opacity .3s; }
.gallery a:hover img { transform: scale(1.05); }

.video { position: relative; margin: 1.5rem 0 2rem; border-radius: var(--radius); overflow: hidden; border: 3px solid var(--ink); box-shadow: var(--pop); background: #000; aspect-ratio: 16 / 9; }
.video > img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: inline-flex; align-items: center; gap: .5em; font: 600 1.15rem/1 var(--display);
  background: var(--orange); color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; padding: .8em 1.4em .8em 1em; box-shadow: var(--pop); cursor: pointer;
}
.video-play svg { width: 1.6em; height: 1.6em; }
.video-play:hover { background: var(--orange-2); }
.video-note { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 8px 14px; font-size: .8rem; color: #ddd; background: rgba(0,0,0,.55); }

/* ---------------------------------------------------------------- press */
.press-head { background: color-mix(in srgb, var(--accent) 16%, var(--cream)); border-bottom: 3px solid var(--ink); padding: 56px 0 40px; }
.press-head .lead { max-width: 760px; }
.press-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 80px; align-items: start; }
.press-facts { position: sticky; top: 100px; }
.press-facts h2 { font-size: 1.4rem; }
.press-toc { display: flex; flex-direction: column; gap: 2px; border-top: 2px dashed var(--line); padding-top: 12px; }
.press-toc a { text-decoration: none; padding: 4px 0; color: var(--ink-3); }
.press-toc a:hover { color: #b86a00; }
.press-body section { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 2px dashed var(--line); scroll-margin-top: 100px; }
.press-body section:last-child { border-bottom: 0; }
.feature-list { padding-left: 1.2em; }
.feature-list li { margin-bottom: .5em; }
blockquote { margin: 0 0 1rem; padding: 16px 20px; border-left: 5px solid var(--accent); background: var(--paper); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
blockquote p { font: 500 1.2rem/1.4 var(--display); margin-bottom: .3em; }
cite { color: var(--muted); font-style: normal; }
.asset-grid { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.asset-grid-2 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.asset a { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 14px; border-radius: var(--radius-s); border: 2px solid var(--ink); overflow: hidden;
  background: repeating-conic-gradient(#3a332d 0% 25%, #2f2925 0% 50%) 0 0 / 20px 20px; }
.asset a:hover { border-color: var(--orange); }
.asset img { max-height: 100%; object-fit: contain; }
.asset:not(.asset-logo) a { padding: 0; }
.asset:not(.asset-logo) img { width: 100%; height: 100%; object-fit: cover; }
.asset-on-light a { background: repeating-conic-gradient(#fff 0% 25%, #eee6d8 0% 50%) 0 0 / 20px 20px; }
.press-games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.press-games .card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.press-games .card > :not(.press-game-art) { padding-inline: 20px; }
.press-games h2 { font-size: 1.3rem; margin-top: 16px; }
.press-games h2 a { text-decoration: none; }
.press-games .actions { margin-top: auto; padding-bottom: 20px; }
.press-game-art { border-bottom: 3px solid var(--ink); }
.press-game-art img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.inline-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.inline-facts dt { font-weight: 600; }
.inline-facts dd { margin: 0; }

.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #cfc3b1; padding: 56px 0 40px; border-top: 3px solid #000; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font: 600 .9rem/1 var(--display); color: var(--orange); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1em; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--orange-2); }
.site-footer li { margin-bottom: .4em; }
.footer-brand img { width: 120px; margin-bottom: 12px; }

/* ---------------------------------------------------------------- lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(20, 17, 15, .92); }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: var(--radius-s); border: 3px solid var(--cream); }
.lightbox-bar { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.lightbox-bar .btn { font-size: .9rem; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .game-layout, .press-layout { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 80px; }
  .hero-feature { transform: none; }
  .games { grid-template-columns: 1fr; }
  .facts, .press-facts { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .header-inner { min-height: 64px; }
  .brand img { width: 92px; }
  .nav a:not(.btn) { padding: .5em .45em; font-size: .95rem; }
  .nav .btn { display: none; }
  .game-card-body { padding: 24px 20px; }
  .jams { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero .hl { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- key giveaways */
.small { font-size: .88rem; }
.key-stage { position: relative; min-height: calc(100vh - 79px); display: grid; align-items: center; background: var(--ink); overflow: hidden; padding: 48px 0; }
.key-stage-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; filter: blur(2px) saturate(1.1); transform: scale(1.03); }
.key-stage-inner { position: relative; display: flex; justify-content: center; width: 100%; }
.key-card { width: min(560px, 100%); background: var(--paper); border: 4px solid var(--ink); border-radius: var(--radius); padding: 36px; box-shadow: 0 8px 0 #000, var(--shadow); }
.key-card h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.key-form { display: grid; gap: 10px; margin: 1.25rem 0; }
.key-form label, .admin-form label { font: 600 .95rem/1.3 var(--display); display: grid; gap: 6px; }
.key-form input[type=email], .admin-form input:not([type=checkbox]):not([type=radio]), .admin-form textarea, .admin-form select {
  font: 400 1rem/1.4 var(--body); padding: .7em .85em; border: 2.5px solid var(--ink); border-radius: var(--radius-s); background: #fff; color: var(--text); width: 100%;
}
.key-form input:focus, .admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
.key-form .btn { justify-self: start; }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #6d78f5; color: #fff; }
.key-left { font: 600 1rem/1 var(--display); color: #b86a00; margin-top: 1rem; }
.key-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: var(--radius-s); padding: 16px 18px; margin: 1rem 0; }
.key-box code { font: 600 clamp(1.05rem, 4vw, 1.45rem)/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .06em; overflow-wrap: anywhere; user-select: all; }
.notice { background: #fff3d6; border: 2.5px solid var(--ink); border-radius: var(--radius-s); padding: 12px 14px; }
.notice-error { background: #ffe0d6; }
.notice-ok { background: #e3f4d9; }

/* ---------------------------------------------------------------- admin */
.admin-section { padding-top: 40px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.admin-head h1, .admin-head h2 { margin: 0; }
.admin .card { margin-bottom: 20px; }
.table-wrap { overflow-x: auto; border: 3px solid var(--ink); border-radius: var(--radius-s); background: var(--paper); margin-bottom: 1.5rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { font: 600 .78rem/1 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--cream-2); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font: 600 .75rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; padding: .4em .7em; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); }
.pill-open { background: #9be07a; }
.pill-sold_out, .pill-ended, .pill-closed { background: #f3b0a0; }
.pill-draft, .pill-not_started, .pill-no_keys { background: #e8e0d2; }
.stat-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.stat { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius-s); padding: 12px 18px; min-width: 120px; color: var(--muted); font-size: .9rem; }
.stat span { display: block; font: 600 2rem/1.1 var(--display); color: var(--ink); }
.admin-status p { margin-bottom: .6em; }
.admin-status code, .admin-table code { background: var(--cream-2); padding: .15em .4em; border-radius: 6px; }
.inline-form { display: inline; }
.admin-form { display: grid; gap: 18px; max-width: 760px; }
.admin-form fieldset { border: 3px solid var(--ink); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 16px; background: var(--paper); margin: 0; }
.admin-form legend { font: 600 1.15rem/1 var(--display); padding: 0 8px; }
.admin-form .hint { font: 400 .85rem/1.3 var(--body); color: var(--muted); }
.admin-form label.check, .role-list .check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.role-list { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.radio-card { border: 2.5px solid var(--line); border-radius: var(--radius-s); padding: 14px; cursor: pointer; background: #fff; }
.radio-card:has(input:checked) { border-color: var(--ink); background: #fff3d6; box-shadow: var(--pop); }
.radio-card input { margin: 0 0 4px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.link-button { background: none; border: 0; padding: 0; color: #a33; text-decoration: underline; cursor: pointer; font: inherit; }
.danger-zone { margin-top: 2rem; border: 2px dashed #c66; border-radius: var(--radius-s); padding: 12px 16px; }
.danger-zone summary { cursor: pointer; color: #a33; font-weight: 600; }
details.card > summary { cursor: pointer; }
details.card[open] > summary { margin-bottom: 1rem; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  .key-card { padding: 24px 20px; }
  .two-col { grid-template-columns: 1fr; }
}
