/* ============================================================
   Ufiora Play - portal.css   (games page, code page, privacy)
   ============================================================ */
@font-face { font-family: 'Michroma'; src: url(fonts/michroma-latin.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Chakra Petch'; font-weight: 600; src: url(fonts/chakrapetch-600-latin.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Chakra Petch'; font-weight: 700; src: url(fonts/chakrapetch-700-latin.woff2) format('woff2'); font-display: swap; }

:root {
  --bg0: #050b1c; --bg1: #0b1a3d; --bg2: #16336a;
  --ink: #eef4ff; --ink2: #b7c8ea; --muted: #8295bd;
  --line: rgba(150, 185, 255, .2); --glass: rgba(14, 28, 64, .66);
  --blue: #3d8bff; --cyan: #22c8e8; --gold: #ffb224; --red: #ff6b5e; --green: #2fd483;
  --fd: 'Michroma', 'Segoe UI', sans-serif;
  --fb: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --accent: var(--blue);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(1200px 700px at 70% -10%, #1d3f86 0%, transparent 60%),
              linear-gradient(180deg, var(--bg1), var(--bg0) 70%);
  background-attachment: fixed;
  color: var(--ink2); font: 600 16px/1.5 var(--fb);
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
a { color: #8fc0ff; }
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sky canvas { width: 100%; height: 100%; display: block; }
.top, main, .foot { position: relative; z-index: 1; }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; padding: 14px max(16px, env(safe-area-inset-left)) 6px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 34px; width: auto; }
.brand span { font: 400 13px/1 var(--fd); letter-spacing: .14em; text-transform: uppercase; padding-left: 12px; border-left: 1px solid var(--line); }
.toplink { margin-left: auto; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  font-size: 14px; background: rgba(14, 28, 64, .5); backdrop-filter: blur(6px); transition: border-color .2s, background .2s; white-space: nowrap; }
.toplink:hover { border-color: #8fc0ff; background: rgba(61, 139, 255, .18); }
@media (max-width: 520px) { .brand span { display: none; } .toplink { padding: 8px 12px; font-size: 13px; } }

/* ---------- hero ---------- */
.home { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px 40px; }
.hero { text-align: center; padding: clamp(26px, 6vh, 64px) 0 clamp(18px, 4vh, 40px); }
.hero h1 { margin: 0; font: 400 clamp(28px, 6vw, 58px)/1.1 var(--fd); color: var(--ink); letter-spacing: .04em; }
.hero .hl { background: linear-gradient(90deg, #fff, #8fc0ff 40%, #7fe6fb 60%, #fff); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s linear infinite; }
.hero p { margin: 14px auto 0; max-width: 620px; font-size: clamp(15px, 2.2vw, 19px); color: var(--ink2); }
@keyframes sheen { to { background-position: -200% 0; } }
.herocta { display: inline-block; margin: 18px 8px 0; color: #8fc0ff; font-size: 15px;
  text-decoration: underline dashed rgba(143, 192, 255, .45); text-underline-offset: 5px; }
.herocta:hover { color: #fff; text-decoration-color: #fff; }
.herocta span { display: inline-block; margin-left: 4px; transition: transform .2s; }
.herocta:hover span { transform: translateX(4px); }

/* ---------- game cards ---------- */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 390px)); justify-content: center; gap: clamp(16px, 2.4vw, 28px); }
.gcard { perspective: 900px; animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.97); } }
.gbox { display: flex; flex-direction: column; height: 100%;
  background: var(--glass); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform .25s ease, box-shadow .3s ease, border-color .3s ease; backdrop-filter: blur(10px); }
.glink { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; outline: none; }
.gcard:hover .gbox, .gbox:focus-within { border-color: var(--accent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45), 0 0 0 1px var(--accent), 0 0 40px -6px var(--accent); }
.glink:focus-visible .gtext h2 { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.newtab { font-family: var(--fb); font-size: 13px; margin-left: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the strip under each card: feedback (or "tell me when it's ready") */
.gfoot { display: flex; border-top: 1px solid var(--line); }
.fbbtn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 14px;
  background: transparent; border: 0; color: var(--ink2); font: 600 14.5px/1 var(--fb); cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s; }
.fbbtn .ico { color: var(--accent); font-size: 16px; transition: transform .25s; }
.fbbtn:hover, .fbbtn:focus-visible { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--ink); outline: none; }
.fbbtn:hover .ico { transform: scale(1.25) rotate(-12deg); }
.gpic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0a1430; }
.gpic img, .gpic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gpic img { animation: drift 16s ease-in-out infinite alternate; transform-origin: 60% 50%; }
.gpic video { opacity: 0; transition: opacity .5s; }
.gcard.playing .gpic video { opacity: 1; }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-2.5%, -1.5%); } }
.noimg { position: absolute; inset: 0; display: grid; place-items: center; font: 400 64px var(--fd); color: var(--accent);
  background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); }
.gpic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5, 11, 28, .75)); }

/* rising sparks in the game's colour */
.gfx { position: absolute; inset: 0; z-index: 1; }
.gfx i { position: absolute; bottom: -10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px 2px var(--accent); opacity: 0; animation: spark 5.5s linear infinite; }
.gfx i:nth-child(1) { left: 8%; animation-delay: 0s; }   .gfx i:nth-child(2) { left: 22%; animation-delay: 1.6s; width: 4px; height: 4px; }
.gfx i:nth-child(3) { left: 37%; animation-delay: 3.1s; } .gfx i:nth-child(4) { left: 51%; animation-delay: .8s; width: 3px; height: 3px; }
.gfx i:nth-child(5) { left: 64%; animation-delay: 2.4s; } .gfx i:nth-child(6) { left: 76%; animation-delay: 4.2s; width: 4px; height: 4px; }
.gfx i:nth-child(7) { left: 88%; animation-delay: 1.1s; } .gfx i:nth-child(8) { left: 95%; animation-delay: 3.7s; width: 3px; height: 3px; }
@keyframes spark { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .9; } 100% { transform: translateY(-230px) translateX(14px); opacity: 0; } }
.gcard.soon .gfx i { background: #9fb3da; box-shadow: none; }

.gshine { position: absolute; z-index: 2; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-120%); }
.gcard:hover .gshine, .glink:focus-visible .gshine { animation: shine 1.1s ease; }
@keyframes shine { to { transform: translateX(120%); } }
.gbadge { position: absolute; z-index: 3; right: 12px; bottom: 12px; padding: 7px 14px; border-radius: 999px;
  font: 400 11px/1 var(--fd); letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: var(--accent); box-shadow: 0 4px 16px rgba(0, 0, 0, .4), 0 0 18px -2px var(--accent); }
.gcard.soon .gbadge { background: rgba(10, 20, 48, .8); border: 1px solid var(--line); box-shadow: none; color: var(--ink2); }
.gcard:not(.soon) .gbadge { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 4px 16px rgba(0, 0, 0, .4), 0 0 30px 2px var(--accent); } }
.gcard.soon .gpic img { filter: saturate(.6) brightness(.8); }

.gtext { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gtext h2 { margin: 0; font: 400 clamp(17px, 2vw, 20px)/1.25 var(--fd); color: var(--ink); letter-spacing: .03em; }
.gtext .tag { margin: 0; color: var(--ink); font-size: 16px; }
.gtext .desc { margin: 0; color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gmeta { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.gmeta span { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink2); }
.gmeta .lock::before { content: '\1F512\FE0E  '; }
.gmeta .okk { border-color: rgba(47, 212, 131, .5); color: #7ff0b6; }
.gcard.nudge .gbox { animation: nudge .45s; }
@keyframes nudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.empty { text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* ---------- buttons and the code form ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font: 400 13px/1 var(--fd); letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, #4d97ff, #1f5fd0); box-shadow: 0 6px 18px rgba(30, 90, 210, .35); }
.btn:hover { filter: brightness(1.1); }
.btn.go { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 85%, white), var(--accent)); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink2); box-shadow: none; }
.btn[disabled] { opacity: .6; cursor: wait; }
.codeform { display: grid; gap: 10px; }
.codeform label { font-size: 14px; color: var(--ink2); }
.codeform input { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-s, rgba(150, 185, 255, .4));
  background: rgba(5, 11, 28, .65); color: var(--ink); font: 400 20px/1 var(--fd); letter-spacing: .12em; text-transform: uppercase; }
.codeform input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.codeform input::placeholder { color: #50628c; letter-spacing: .06em; }
.msg { margin: 0; min-height: 1.4em; color: var(--red); font-size: 14.5px; }
.msg.good { color: var(--green); }
.msg.wait { color: var(--muted); }
.note { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }

/* the code page at /<game>/ */
.gate { flex: 1; display: grid; place-items: center; padding: 20px 16px 40px; }
.gatecard { width: 100%; max-width: 880px; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--glass);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .45), 0 0 60px -20px var(--accent);
  animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; backdrop-filter: blur(12px); }
.gatecard.small { max-width: 520px; grid-template-columns: 1fr; }
.gatepic { position: relative; min-height: 260px; background: #0a1430 center / cover no-repeat; overflow: hidden; }
.gatepic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(14, 28, 64, .9)); }
.gatepic .shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
  animation: shine 3.5s ease-in-out infinite; transform: translateX(-120%); }
.gatebody { padding: clamp(20px, 4vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.gatebody h1 { margin: 0; font: 400 clamp(22px, 3.4vw, 30px)/1.2 var(--fd); color: var(--ink); }
.gatebody .lead { margin: 0 0 6px; color: var(--ink); }
.back { color: var(--muted); text-decoration: none; font-size: 14px; margin-top: 4px; }
.back:hover { color: var(--ink); }
@media (max-width: 720px) {
  .gatecard { grid-template-columns: 1fr; }
  .gatepic { min-height: 0; aspect-ratio: 16 / 9; }
  .gatepic::after { background: linear-gradient(180deg, transparent 50%, rgba(14, 28, 64, .9)); }
}

/* the code pop-up on the games page */
.codedlg { width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 18px;
  background: #0d1c42; color: var(--ink2); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 50px -16px var(--accent); }
.codedlg::backdrop { background: rgba(3, 7, 18, .72); backdrop-filter: blur(4px); }
.codedlg[open] { animation: pop .28s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.codedlg .codeform { padding: 0 22px 22px; }
.codedlg h2 { margin: 4px 0 0; font: 400 20px/1.2 var(--fd); color: var(--ink); }
.dlgpic { margin: 0 -22px; aspect-ratio: 16 / 7; background: #0a1430 center / cover no-repeat; }
.dlgrow { display: flex; gap: 10px; justify-content: flex-end; }
.codedlg .note a { color: #8fc0ff; }

/* the feedback pop-up */
.fbdlg { width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
.fbform { display: grid; gap: 10px; padding: 0 22px 20px; }
.fbform > label { font-size: 14px; color: var(--ink2); }
.fbform > label small { color: var(--muted); font-weight: 600; }
.fbdlg h2 { margin: 6px 0 0; font: 400 19px/1.3 var(--fd); color: var(--ink); }
.fbgame { color: color-mix(in srgb, var(--accent) 55%, white); }
.stars { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.stars button { width: 52px; height: 52px; border: 0; background: none; cursor: pointer; padding: 0; border-radius: 12px;
  font-size: 40px; line-height: 1; color: rgba(150, 185, 255, .25); transition: transform .15s, color .15s; }
.stars button.on, .stars button.hov { color: var(--gold); text-shadow: 0 0 18px rgba(255, 178, 36, .55); }
.stars button:hover { transform: scale(1.15); }
.stars button.on { animation: starpop .3s; }
.stars button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes starpop { 50% { transform: scale(1.3); } }
.starword { margin: -4px 0 2px; text-align: center; color: var(--muted); font-size: 14px; min-height: 1.4em; }
.starword.set { color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; color: var(--ink2);
  background: rgba(5, 11, 28, .4); transition: background .15s, border-color .15s, color .15s; user-select: none; }
.chips label:hover span { border-color: rgba(150, 185, 255, .45); }
.chips input:checked + span { background: color-mix(in srgb, var(--accent) 28%, transparent); border-color: var(--accent); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fbform textarea, .replyrow input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(150, 185, 255, .35);
  background: rgba(5, 11, 28, .65); color: var(--ink); font: 600 15px/1.4 var(--fb); resize: vertical; }
.replyrow input { min-height: 44px; }
.fbform textarea:focus, .replyrow input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.reply summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.reply summary:hover { color: var(--ink); }
.replyrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
@media (max-width: 440px) { .replyrow { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fbdone { padding: 0 22px 24px; text-align: center; }
.fbdone h2 { margin-top: 8px; }
.fbdone p { margin: 8px 0 18px; }
.tick { width: 64px; height: 64px; margin: 18px auto 0; border-radius: 50%; display: grid; place-items: center; font-size: 32px; color: #fff;
  background: radial-gradient(circle at 35% 30%, #5ef0a8, #17a463); box-shadow: 0 0 30px rgba(47, 212, 131, .45); animation: pop .4s cubic-bezier(.2, .9, .3, 1.4); }
.opengame { animation: pop .3s; }

/* "How was it?" when coming back from a game's tab */
.ratebar { position: fixed; z-index: 20; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 8px; max-width: calc(100vw - 24px); border-radius: 16px; border: 1px solid var(--accent);
  background: rgba(13, 28, 66, .94); backdrop-filter: blur(10px); color: var(--ink);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 34px -8px var(--accent);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .45s cubic-bezier(.2, .9, .3, 1.15), opacity .3s; }
.ratebar.show { transform: translate(-50%, 0); opacity: 1; }
.rbpic { width: 56px; height: 40px; border-radius: 9px; background: #0a1430 center / cover; flex: none; }
.rbtxt { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rbstars { display: flex; }
.rbstars button { width: 36px; height: 40px; border: 0; background: none; cursor: pointer; padding: 0; font-size: 26px; color: rgba(150, 185, 255, .35); transition: color .1s, transform .1s; }
.rbstars:hover button { color: var(--gold); }
.rbstars button:hover ~ button { color: rgba(150, 185, 255, .35); }
.rbstars button:hover { transform: scale(1.18); }
.rbx { width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .06); color: var(--ink2); font-size: 22px; cursor: pointer; }
.rbx:hover { background: rgba(255, 255, 255, .14); color: #fff; }
@media (max-width: 520px) {
  .ratebar { flex-wrap: wrap; justify-content: center; width: calc(100vw - 24px); }
  .rbpic { display: none; }
  .rbtxt { flex: 1 1 calc(100% - 50px); text-align: center; padding-left: 36px; }
}

/* ---------- the "register interest" page ---------- */
.interest { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px 50px; }
.inhero { text-align: center; padding: clamp(22px, 5vh, 50px) 0 clamp(16px, 3vh, 28px); animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.inhero h1 { margin: 0; font: 400 clamp(24px, 4.6vw, 42px)/1.2 var(--fd); color: var(--ink); letter-spacing: .03em; }
.inhero .hl { background: linear-gradient(90deg, #fff, #8fc0ff 40%, #7fe6fb 60%, #fff); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s linear infinite; }
.inhero > p { margin: 14px auto 0; max-width: 660px; font-size: clamp(15px, 2vw, 18px); }
.perks { list-style: none; padding: 0; margin: 26px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; text-align: left; }
.perks li { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(14, 28, 64, .45); display: grid; gap: 4px; }
.perks b { color: var(--ink); font-size: 15.5px; }
.perks span { color: var(--muted); font-size: 14px; }
.inhero.sent .perks { display: none; }

.inform { display: grid; gap: 18px; padding: clamp(18px, 3.4vw, 32px); background: var(--glass); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4); backdrop-filter: blur(12px); animation: rise .7s .1s cubic-bezier(.2, .8, .2, 1) both; }
.inform fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.inform legend { padding: 0; margin-bottom: 10px; color: var(--ink); font-size: 15px; }
.inform legend small, .fld small { color: var(--muted); font-weight: 600; }
.kinds > label { display: inline-block; margin: 0 6px 8px 0; cursor: pointer; }
.kind input { position: absolute; opacity: 0; pointer-events: none; }
.kind span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(5, 11, 28, .45); color: var(--ink2); transition: background .15s, border-color .15s, color .15s; }
.kind i { font-style: normal; font-size: 18px; }
.kind:hover span { border-color: rgba(150, 185, 255, .45); }
.kind input:checked + span { border-color: var(--blue); background: rgba(61, 139, 255, .22); color: #fff; box-shadow: 0 0 22px -6px var(--blue); }
.kind input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.ingrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px 16px; }
.fld { display: grid; gap: 6px; font-size: 14px; color: var(--ink2); align-content: start; }
.fld em, .consent em { color: var(--gold); font-style: normal; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(150, 185, 255, .35);
  background: rgba(5, 11, 28, .65); color: var(--ink); font: 600 15.5px/1.35 var(--fb); }
.fld textarea { resize: vertical; }
.fld input::placeholder, .fld textarea::placeholder { color: #5d7099; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.inform .bad { outline: 2px solid var(--red) !important; outline-offset: 1px; }
.gpicks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.gpick { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(5, 11, 28, .45); cursor: pointer; transition: border-color .15s, background .15s; }
.gpick input { position: absolute; opacity: 0; pointer-events: none; }
.gpickpic { width: 64px; height: 40px; flex: none; border-radius: 9px; background: #0a1430 center / cover; display: grid; place-items: center;
  font: 400 18px var(--fd); color: var(--accent); }
.gpicktxt { display: grid; min-width: 0; }
.gpicktxt b { color: var(--ink); font-size: 14.5px; }
.gpicktxt small { color: var(--muted); font-size: 12.5px; }
.gpick::after { content: ''; position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 6px; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 12px; color: #fff; }
.gpick:hover { border-color: rgba(150, 185, 255, .45); }
.gpick:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, rgba(5, 11, 28, .45)); }
.gpick:has(input:checked)::after { content: '\2713'; background: var(--accent); border-color: var(--accent); }
.gpick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.inactions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.inform .msg:empty { display: none; }
.indone { max-width: 560px; margin: 0 auto; padding: 10px 26px 34px; text-align: center; background: var(--glass); border: 1px solid var(--line);
  border-radius: 20px; animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; outline: none; }
.indone h2 { font: 400 22px/1.3 var(--fd); color: var(--ink); margin: 16px 0 6px; }
.indone p { margin: 0 0 20px; }
.indone b { color: var(--ink); }

/* ---------- text pages ---------- */
.text { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 20px 16px 50px; }
.text h1 { font: 400 28px/1.2 var(--fd); color: var(--ink); }
.text h2 { font: 400 16px/1.3 var(--fd); color: var(--ink); margin-top: 28px; letter-spacing: .04em; }
.text li { margin: 6px 0; }
.draft { color: var(--gold); }

.foot { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  color: var(--muted); font-size: 13px; }
.foot a { color: var(--muted); }

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