/* Clash of Farming 9.1.0 – Frontier Portal
 * Marketing/start experience. No raster hero dependency; the showcase is built
 * from gradients and DOM layers so it stays sharp and cheap on mobile.
 */

:root {
  --lp-bg: #06120e;
  --lp-bg-2: #091b14;
  --lp-panel: rgba(8, 28, 20, .86);
  --lp-panel-solid: #0b2118;
  --lp-line: rgba(160, 210, 150, .18);
  --lp-gold: #f2cf73;
  --lp-gold-2: #c79734;
  --lp-mint: #67e7b0;
  --lp-text: #f8f1dc;
  --lp-muted: #a8bcae;
  --lp-danger: #ff806e;
  --lp-shadow: 0 28px 80px rgba(0, 0, 0, .36);
}

html { scroll-behavior: smooth; }
body.landing-page.frontier-portal {
  min-height: 100vh;
  margin: 0;
  color: var(--lp-text);
  background:
    radial-gradient(circle at 15% 10%, rgba(61, 151, 103, .13), transparent 30rem),
    radial-gradient(circle at 85% 12%, rgba(239, 190, 83, .11), transparent 28rem),
    linear-gradient(180deg, #06110d 0%, #071710 45%, #04100c 100%);
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.frontier-portal *, .frontier-portal *::before, .frontier-portal *::after { box-sizing: border-box; }
.frontier-portal a { color: inherit; }
.frontier-portal button, .frontier-portal input { font: inherit; }
.frontier-portal button { -webkit-tap-highlight-color: transparent; }

.portal-shell { width: min(1480px, calc(100% - 40px)); margin: 0 auto; }
.portal-topbar {
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid rgba(240, 205, 111, .15);
  background: rgba(4, 17, 12, .84);
  backdrop-filter: blur(18px) saturate(135%);
}
.portal-topbar-inner { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.portal-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 235px; }
.portal-brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(242, 207, 115, .6); border-radius: 12px 4px 12px 4px;
  background: linear-gradient(145deg, rgba(242,207,115,.18), rgba(103,231,176,.06));
  box-shadow: inset 0 0 24px rgba(242,207,115,.08);
}
.portal-brand-mark svg { width: 28px; height: 28px; color: var(--lp-gold); }
.portal-brand-copy { display: grid; line-height: 1.05; }
.portal-brand-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; letter-spacing: .02em; }
.portal-brand-copy small { margin-top: 5px; color: var(--lp-gold); font-size: .58rem; font-weight: 900; letter-spacing: .16em; }

.portal-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.portal-nav a { padding: 10px 13px; border-radius: 10px; color: #b8c9bd; text-decoration: none; font-size: .83rem; font-weight: 800; }
.portal-nav a:hover, .portal-nav a:focus-visible { color: var(--lp-text); background: rgba(255,255,255,.055); outline: none; }
.portal-top-actions { display: flex; gap: 8px; align-items: center; }
.portal-nav-toggle { display: none; }

.portal-btn {
  min-height: 44px; border: 1px solid rgba(242,207,115,.24); border-radius: 12px;
  padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--lp-text); text-decoration: none; font-weight: 900; cursor: pointer;
  background: rgba(255,255,255,.04); transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.portal-btn:hover { transform: translateY(-1px); border-color: rgba(242,207,115,.5); }
.portal-btn.primary { color: #172014; border-color: rgba(255,226,142,.75); background: linear-gradient(135deg, #f4d47d, #dcb14d 60%, #8ed6a7); box-shadow: 0 10px 32px rgba(205, 163, 61, .16); }
.portal-btn.ghost { background: rgba(8,28,20,.72); }
.portal-btn.wide { width: 100%; }

.portal-hero { position: relative; padding: clamp(56px, 7vw, 104px) 0 44px; }
.portal-hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 620px; pointer-events: none;
  background: linear-gradient(120deg, rgba(81,174,117,.055), transparent 43%, rgba(211,162,50,.045));
  mask-image: linear-gradient(#000, transparent);
}
.portal-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(340px, .72fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.portal-eyebrow { color: var(--lp-mint); font-size: .72rem; letter-spacing: .18em; font-weight: 1000; text-transform: uppercase; }
.portal-copy h1 { margin: 15px 0 20px; max-width: 900px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.65rem, 5.8vw, 5.55rem); line-height: .93; letter-spacing: -.045em; color: #fff4d6; }
.portal-copy h1 em { display: block; color: var(--lp-gold); font-style: normal; }
.portal-lead { max-width: 800px; margin: 0; color: #b8cabd; line-height: 1.75; font-size: clamp(1rem, 1.35vw, 1.17rem); }
.portal-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 24px; }
.portal-proof { display: flex; flex-wrap: wrap; gap: 8px; }
.portal-proof span { padding: 8px 11px; border: 1px solid var(--lp-line); border-radius: 999px; color: #c8d7cc; background: rgba(6,22,16,.58); font-size: .76rem; font-weight: 800; }

.portal-auth-card {
  position: sticky; top: 96px; z-index: 10; padding: 22px;
  border: 1px solid rgba(242,207,115,.27); border-radius: 20px 6px 20px 6px;
  background: linear-gradient(145deg, rgba(13,40,29,.96), rgba(5,20,14,.98));
  box-shadow: var(--lp-shadow);
}
.portal-auth-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.portal-auth-head span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(103,231,176,.09); font-size: 1.35rem; }
.portal-auth-head small { display: block; color: var(--lp-mint); text-transform: uppercase; font-size: .62rem; letter-spacing: .12em; font-weight: 900; }
.portal-auth-head strong { display: block; margin-top: 3px; font-size: 1.05rem; }
.frontier-portal .auth-tabs { margin: 0 0 17px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 12px; background: rgba(0,0,0,.23); }
.frontier-portal .auth-tab { min-height: 42px; border: 0; border-radius: 9px; color: #92aa9b; background: transparent; font-weight: 900; cursor: pointer; }
.frontier-portal .auth-tab.active { color: #172014; background: linear-gradient(135deg, #f0ce72, #8ed5a7); }
.frontier-portal .auth-form { display: grid; gap: 13px; }
.frontier-portal .auth-form label { display: grid; gap: 7px; color: #b8c9be; font-size: .75rem; font-weight: 800; }
.frontier-portal .auth-form input {
  width: 100%; min-height: 46px; padding: 0 13px; color: #eef6ef;
  border: 1px solid rgba(169,206,178,.19); border-radius: 11px; outline: 0;
  background: rgba(0,0,0,.2);
}
.frontier-portal .auth-form input:focus { border-color: rgba(103,231,176,.72); box-shadow: 0 0 0 3px rgba(103,231,176,.08); }
.frontier-portal .auth-card .button.primary { min-height: 47px; border: 0; border-radius: 11px; color: #152015; background: linear-gradient(135deg, #f4d47d, #d8af4d 57%, #8bd3a5); font-weight: 1000; }
.portal-auth-card .legal-note { margin: 14px 0 0; color: #728a7b; font-size: .67rem; line-height: 1.45; }
.frontier-portal .alert { margin: 0 0 14px; border-radius: 10px; padding: 11px 12px; font-size: .78rem; }
.frontier-portal .alert.error { color: #ffd5cf; border: 1px solid rgba(255,128,110,.35); background: rgba(117,32,26,.25); }
.frontier-portal .alert.success { color: #d6f9e4; border: 1px solid rgba(103,231,176,.35); background: rgba(33,114,77,.22); }

/* Procedural world showcase */
.portal-stage-wrap { position: relative; margin-top: clamp(38px, 6vw, 72px); }
.portal-stage-caption { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin: 0 0 13px; }
.portal-stage-caption h2 { margin: 5px 0 0; font-family: Georgia, serif; font-size: clamp(1.4rem, 2.7vw, 2.3rem); }
.portal-stage-caption p { max-width: 600px; margin: 0; color: var(--lp-muted); line-height: 1.55; font-size: .82rem; }
.frontier-stage {
  --tilt-x: 0deg; --tilt-y: 0deg;
  position: relative; height: clamp(320px, 40vw, 560px); overflow: hidden;
  border: 1px solid rgba(242,207,115,.22); border-radius: 24px 7px 24px 7px;
  background: linear-gradient(#132a27 0 27%, #17372d 27% 28%, #25452d 28% 100%);
  box-shadow: inset 0 0 70px rgba(0,0,0,.28), 0 24px 70px rgba(0,0,0,.22);
  transform: perspective(1500px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .22s ease;
  isolation: isolate;
}
.frontier-stage::before { content:""; position:absolute; inset:0; background: radial-gradient(ellipse at 68% 18%, rgba(245,208,119,.18), transparent 31%), linear-gradient(180deg, transparent 55%, rgba(0,0,0,.22)); pointer-events:none; z-index: 8; }
.stage-sky { position:absolute; inset:0 0 66%; background: linear-gradient(180deg,#102821,#1f4336); }
.stage-sky::before, .stage-sky::after { content:""; position:absolute; bottom:-36%; width:54%; height:82%; background:#183229; clip-path:polygon(0 100%,10% 67%,19% 76%,30% 36%,43% 70%,57% 47%,70% 74%,83% 31%,100% 100%); opacity:.8; }
.stage-sky::after { right:0; transform:scaleX(-1); background:#203c2e; opacity:.62; }
.stage-ground { position:absolute; inset:27% 0 0; background: repeating-linear-gradient(104deg,rgba(212,184,91,.055) 0 1px,transparent 1px 34px), linear-gradient(150deg,#324e2d,#203b26 48%,#2b4627); }
.stage-river { position:absolute; z-index:2; width:68%; height:33%; left:9%; top:48%; border-radius:50% 46% 48% 52%; transform:rotate(-11deg); background: linear-gradient(175deg,rgba(173,226,216,.34),rgba(25,96,93,.8) 42%,rgba(7,53,54,.9)); box-shadow: 0 0 0 7px rgba(137,163,98,.09), inset 0 5px 12px rgba(214,244,225,.16); }
.stage-road { position:absolute; z-index:3; height:17px; background:linear-gradient(#9c8254,#69573c); box-shadow: inset 0 3px rgba(235,206,139,.15), 0 5px 7px rgba(0,0,0,.2); border-radius:20px; }
.stage-road.r1 { width:46%; left:25%; top:64%; transform:rotate(8deg); }
.stage-road.r2 { width:32%; left:56%; top:49%; transform:rotate(-37deg); }
.stage-field { position:absolute; z-index:3; width:18%; height:18%; background:repeating-linear-gradient(90deg,#9d8539 0 3px,#687235 3px 8px); border:2px solid rgba(220,197,112,.22); border-radius:4px; box-shadow:0 8px 14px rgba(0,0,0,.17); }
.stage-field.f1 { left:12%; top:44%; transform:rotate(-8deg) skewY(-5deg); }
.stage-field.f2 { left:16%; top:67%; transform:rotate(8deg) skewY(4deg); background:repeating-linear-gradient(90deg,#567b38 0 3px,#2f5d33 3px 8px); }
.stage-field.f3 { right:8%; top:62%; transform:rotate(-10deg); }
.stage-hill { position:absolute; z-index:2; width:20%; height:19%; background:radial-gradient(ellipse at 50% 80%,#45613a,#203725 68%); border-radius:50%; box-shadow: inset 0 10px 20px rgba(116,143,90,.13); }
.stage-hill.h1 { right:4%; top:31%; } .stage-hill.h2 { left:36%; top:35%; transform:scale(.7); }
.stage-tree { position:absolute; z-index:4; width:10px; height:18px; background:#5d4d34; border-radius:3px; }
.stage-tree::before { content:""; position:absolute; width:32px; height:36px; left:-11px; top:-25px; background:radial-gradient(circle at 50% 70%,#2f6341,#17412d 70%); border-radius:50% 50% 43% 57%; }
.stage-tree.t1{left:8%;top:41%}.stage-tree.t2{left:35%;top:51%;transform:scale(.8)}.stage-tree.t3{right:31%;top:38%;transform:scale(1.15)}.stage-tree.t4{right:7%;top:52%;transform:scale(.75)}
.stage-citadel { position:absolute; z-index:6; left:55%; top:32%; width:170px; height:145px; transform:translateX(-50%); filter:drop-shadow(0 18px 15px rgba(0,0,0,.34)); }
.stage-citadel .keep { position:absolute; left:45px; bottom:0; width:80px; height:95px; background:linear-gradient(90deg,#705b43,#9d855d 48%,#5b4938); border:2px solid #c7a967; clip-path:polygon(0 12%,15% 12%,15% 0,85% 0,85% 12%,100% 12%,100% 100%,0 100%); }
.stage-citadel .keep::before { content:""; position:absolute; left:27px; bottom:0; width:25px; height:41px; border-radius:16px 16px 0 0; background:#172219; border:2px solid rgba(240,206,114,.34); }
.stage-citadel .tower { position:absolute; bottom:0; width:43px; height:78px; background:linear-gradient(90deg,#5e4c3a,#8d7555 48%,#4b3d30); border:2px solid #a98b55; }
.stage-citadel .tower::before { content:""; position:absolute; left:-5px; right:-5px; top:-14px; height:20px; background:#65513c; clip-path:polygon(0 100%,0 30%,18% 30%,18% 0,38% 0,38% 30%,62% 30%,62% 0,82% 0,82% 30%,100% 30%,100% 100%); }
.stage-citadel .tower.a{left:5px}.stage-citadel .tower.b{right:5px}
.stage-citadel .banner { position:absolute; left:85px; top:-27px; width:3px; height:50px; background:#d9c17b; }
.stage-citadel .banner::after { content:""; position:absolute; left:3px; top:5px; width:30px; height:18px; background:linear-gradient(135deg,#e6c464,#4cae7b); clip-path:polygon(0 0,100% 16%,73% 100%,0 78%); animation:portal-banner 3.4s ease-in-out infinite; transform-origin:left center; }
.stage-village { position:absolute; z-index:5; left:28%; top:51%; width:80px; height:62px; }
.stage-village::before, .stage-village::after { content:""; position:absolute; bottom:0; width:44px; height:35px; background:linear-gradient(90deg,#7d684d,#aa8c64); border:1px solid #c3a468; box-shadow:0 8px 9px rgba(0,0,0,.22); }
.stage-village::before { left:0; clip-path:polygon(0 25%,50% 0,100% 25%,100% 100%,0 100%); }
.stage-village::after { right:0; bottom:14px; transform:scale(.8); clip-path:polygon(0 25%,50% 0,100% 25%,100% 100%,0 100%); }
.stage-march { position:absolute; z-index:7; left:32%; top:67%; display:flex; gap:6px; animation:portal-march 9s linear infinite; }
.stage-march i { width:9px; height:13px; border-radius:50% 50% 35% 35%; background:#ebd77f; box-shadow:0 -4px 0 -1px #6cd7ad; }
.stage-label { position:absolute; z-index:9; display:flex; align-items:center; gap:8px; padding:7px 9px; border:1px solid rgba(242,207,115,.28); border-radius:8px; background:rgba(4,18,12,.78); backdrop-filter:blur(8px); font-size:.67rem; font-weight:900; box-shadow:0 8px 30px rgba(0,0,0,.2); }
.stage-label.crown { left:54%; top:27%; color:#ffe9a5; }.stage-label.crown::before{content:"♛";color:#f1cb69}
.stage-label.world { right:5%; bottom:6%; color:#a8e5c7; }

.portal-stats { margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border:1px solid var(--lp-line); border-radius:16px; overflow:hidden; background:rgba(5,21,15,.68); }
.portal-stat { min-height:88px; padding:16px 18px; border-right:1px solid var(--lp-line); display:grid; align-content:center; }
.portal-stat:last-child{border-right:0}.portal-stat strong{font-family:Georgia,serif;font-size:1.55rem;color:#f7db8e}.portal-stat span{margin-top:4px;color:#8fa79a;font-size:.72rem;font-weight:800}

.portal-section { padding: clamp(58px, 7vw, 96px) 0; }
.portal-section-head { max-width: 760px; margin-bottom: 28px; }
.portal-section-head h2 { margin: 8px 0 12px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; }
.portal-section-head p { margin:0; color:var(--lp-muted); line-height:1.7; }
.portal-feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.portal-feature-card { min-height:245px; padding:24px; position:relative; overflow:hidden; border:1px solid var(--lp-line); border-radius:18px 5px 18px 5px; background:linear-gradient(155deg,rgba(15,45,32,.82),rgba(5,19,14,.9)); }
.portal-feature-card::after { content:""; position:absolute; width:180px;height:180px;right:-75px;top:-70px;border-radius:50%;background:radial-gradient(circle,rgba(242,207,115,.09),transparent 68%); }
.portal-feature-card .portal-feature-icon { width:48px;height:48px;display:grid;place-items:center;border-radius:12px;background:rgba(103,231,176,.08);font-size:1.5rem; }
.portal-feature-card h3{margin:28px 0 10px;font-size:1.08rem}.portal-feature-card p{margin:0;color:#91a99a;line-height:1.65;font-size:.83rem}.portal-feature-card small{display:block;margin-top:19px;color:var(--lp-gold);font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}

.portal-flow { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; counter-reset:flow; }
.portal-flow article { counter-increment:flow; padding:20px; border-top:1px solid rgba(242,207,115,.32); background:linear-gradient(180deg,rgba(242,207,115,.035),transparent); }
.portal-flow article::before { content:"0" counter(flow); display:block; color:var(--lp-gold); font-family:Georgia,serif;font-size:1.8rem;font-weight:700; }
.portal-flow h3{margin:12px 0 7px;font-size:.96rem}.portal-flow p{margin:0;color:#8ea699;font-size:.78rem;line-height:1.55}

.portal-highlight { display:grid; grid-template-columns:1.05fr .95fr; gap:24px; align-items:stretch; }
.portal-highlight-copy, .portal-tactical-board { border:1px solid var(--lp-line); border-radius:20px 6px 20px 6px; background:rgba(7,26,18,.72); }
.portal-highlight-copy { padding:clamp(24px,4vw,46px); display:grid; align-content:center; }
.portal-highlight-copy h2{font-family:Georgia,serif;font-size:clamp(1.8rem,3.5vw,3rem);margin:10px 0 15px}.portal-highlight-copy p{margin:0;color:#9ab0a2;line-height:1.7}
.portal-checks{display:grid;gap:10px;margin:22px 0 0}.portal-checks span{display:flex;gap:9px;align-items:center;font-size:.8rem;font-weight:800}.portal-checks span::before{content:"✓";display:grid;place-items:center;width:22px;height:22px;border-radius:50%;color:#16311f;background:#72d5a4}
.portal-tactical-board { min-height:320px; padding:18px; position:relative; overflow:hidden; background:linear-gradient(rgba(14,54,38,.83),rgba(5,24,17,.96)),repeating-linear-gradient(45deg,rgba(255,255,255,.02) 0 1px,transparent 1px 25px); }
.portal-tactical-board::before{content:"";position:absolute;inset:14% 8%;border:1px solid rgba(242,207,115,.16);border-radius:50%;transform:rotate(-8deg)}
.tactical-node{position:absolute;width:72px;height:72px;border-radius:50%;display:grid;place-items:center;text-align:center;border:1px solid rgba(242,207,115,.34);background:rgba(7,29,20,.9);box-shadow:0 9px 30px rgba(0,0,0,.23);font-size:.62rem;font-weight:900;color:#dfeadf}.tactical-node b{display:block;font-size:1.35rem}.tactical-node.n1{left:8%;top:18%}.tactical-node.n2{right:11%;top:20%}.tactical-node.n3{left:19%;bottom:10%}.tactical-node.n4{right:21%;bottom:9%}.tactical-node.crown{left:50%;top:50%;transform:translate(-50%,-50%);width:96px;height:96px;color:#ffe59a;border-color:rgba(242,207,115,.62)}

.portal-final { padding: 42px 0 86px; }
.portal-final-card { padding: clamp(30px,6vw,64px); display:grid; grid-template-columns:1fr auto; gap:24px; align-items:center; border:1px solid rgba(242,207,115,.3); border-radius:26px 7px 26px 7px; background:radial-gradient(circle at 80% 30%,rgba(242,207,115,.1),transparent 28rem),linear-gradient(140deg,#103324,#071a12); box-shadow:var(--lp-shadow); }
.portal-final-card h2{margin:6px 0 9px;font-family:Georgia,serif;font-size:clamp(2rem,4vw,3.6rem)}.portal-final-card p{margin:0;color:#9eb1a5;max-width:720px;line-height:1.6}.portal-final-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.portal-footer { padding: 25px 0 38px; border-top:1px solid rgba(255,255,255,.05); color:#71877a;font-size:.72rem; }
.portal-footer-inner{display:flex;justify-content:space-between;gap:20px;align-items:center}.portal-footer strong{color:#afc0b4}.portal-footer-links{display:flex;gap:16px;flex-wrap:wrap}.portal-footer a{text-decoration:none}.portal-footer a:hover{color:#d9e7dc}

[data-portal-reveal] { opacity:0; transform:translateY(15px); transition:opacity .55s ease, transform .55s ease; }
[data-portal-reveal].is-visible { opacity:1; transform:none; }

@keyframes portal-banner { 0%,100%{transform:skewY(-3deg) scaleX(.92)}50%{transform:skewY(3deg) scaleX(1)} }
@keyframes portal-march { 0%{transform:translate(-25px,14px)}100%{transform:translate(430px,-70px)} }

@media (max-width: 1050px) {
  .portal-nav { display:none; position:absolute; top:70px; left:20px; right:20px; padding:10px; border:1px solid var(--lp-line); border-radius:14px; background:#0a2118; box-shadow:var(--lp-shadow); }
  .portal-nav.is-open { display:grid; }
  .portal-nav-toggle { width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--lp-line);border-radius:11px;color:#dfe9e1;background:rgba(255,255,255,.04);font-size:1.2rem; }
  .portal-top-actions .portal-btn.ghost { display:none; }
  .portal-brand { min-width:0; margin-right:auto; }
  .portal-hero-grid { grid-template-columns:1fr; }
  .portal-auth-card { position:relative; top:auto; max-width:620px; }
  .portal-feature-grid { grid-template-columns:1fr 1fr; }
  .portal-feature-card:last-child { grid-column:1/-1; }
  .portal-highlight { grid-template-columns:1fr; }
}

@media (max-width: 700px) {
  .portal-shell { width:min(100% - 24px, 1480px); }
  .portal-topbar-inner { min-height:62px; gap:8px; }
  .portal-brand-mark { width:36px;height:36px; }.portal-brand-mark svg{width:24px;height:24px}.portal-brand-copy strong{font-size:.92rem}.portal-brand-copy small{font-size:.5rem}
  .portal-top-actions .portal-btn.primary { min-height:40px;padding:0 12px;font-size:.75rem; }
  .portal-hero { padding-top:38px; }
  .portal-copy h1 { font-size:clamp(2.45rem,13vw,4rem); }
  .portal-lead { font-size:.95rem; }
  .portal-hero-actions .portal-btn { flex:1 1 145px; }
  .portal-auth-card { padding:16px; border-radius:16px 5px; }
  .portal-stage-caption { display:block; }.portal-stage-caption p{margin-top:8px}.frontier-stage{height:350px;border-radius:16px 5px}.stage-citadel{transform:translateX(-50%) scale(.83);transform-origin:bottom center}.stage-label.world{display:none}.stage-march{animation-duration:7s}
  .portal-stats { grid-template-columns:1fr 1fr; }.portal-stat:nth-child(2){border-right:0}.portal-stat:nth-child(-n+2){border-bottom:1px solid var(--lp-line)}
  .portal-feature-grid { grid-template-columns:1fr; }.portal-feature-card:last-child{grid-column:auto}.portal-feature-card{min-height:210px}
  .portal-flow { grid-template-columns:1fr 1fr; }
  .portal-final-card { grid-template-columns:1fr; }.portal-final-actions{justify-content:flex-start}.portal-final-actions .portal-btn{flex:1 1 145px}
  .portal-footer-inner { align-items:flex-start; flex-direction:column; }
}

@media (max-width: 430px) {
  .portal-top-actions .portal-btn.primary { display:none; }
  .portal-copy h1 { font-size:2.7rem; }
  .portal-proof span:nth-child(n+4){display:none}
  .portal-flow { grid-template-columns:1fr; }
  .frontier-stage { height:300px; }.stage-citadel{left:59%;top:35%;transform:translateX(-50%) scale(.7)}.stage-field{width:23%}.stage-river{width:80%;left:2%}.stage-village{left:20%;transform:scale(.8)}
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  [data-portal-reveal] { opacity:1; transform:none; transition:none; }
  .stage-citadel .banner::after, .stage-march { animation:none; }
  .frontier-stage, .portal-btn { transition:none; }
}
