.portal { --p-ink:#202638; --p-paper:#fffaf0; --p-yellow:#ffc400; color:var(--p-ink); background:var(--p-paper); }
.portal .portal-hero { padding:clamp(28px,6vw,78px) 0; background:#f4e6cc; }
.portal-intro { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:clamp(20px,5vw,65px); align-items:center; }
.portal h1 { font-size:clamp(2rem,6vw,4.6rem); line-height:1.04; letter-spacing:-.045em; overflow-wrap:anywhere; margin:18px 0; }
.portal h1 span { color:inherit; background:var(--p-yellow); padding:0 .12em; box-decoration-break:clone; }
.portal h2 { font-size:clamp(1.6rem,3vw,2.7rem); line-height:1.15; margin:.2em 0 .6em; }
.portal h3 { font-size:1.15rem; line-height:1.25; margin:.3em 0 .6em; }
.portal p { line-height:1.55; }
.portal a:not(.btn) { color:inherit; }
.portal-tag { display:inline-block; background:var(--p-ink); color:#fff; font-weight:700; padding:7px 12px; font-size:.78rem; }
.portal-key,.portal-city-cover { display:block; width:100%; height:auto; border:2px solid var(--p-ink); border-radius:18px; box-shadow:7px 7px 0 var(--p-ink); }
.portal-city-cover { max-height:350px; object-fit:contain; background:#2f3852; }
.portal-search { margin:24px 0 16px; }
.portal-search label { display:block; margin-bottom:7px; font-weight:700; }
.portal-search > div { display:flex; flex-wrap:wrap; gap:8px; }
.portal-search input { min-width:0; flex:1 1 180px; padding:13px 15px; border:2px solid var(--p-ink); border-radius:7px; background:#fff; color:var(--p-ink); font:inherit; }
.portal-search input:focus-visible { outline:3px solid #337db3; outline-offset:2px; }
.portal .btn.ghost { border-color:var(--p-ink); color:var(--p-ink); }
.portal .actions { display:flex; flex-wrap:wrap; gap:10px; }
.portal-section { padding-top:clamp(28px,5vw,56px); padding-bottom:clamp(28px,5vw,56px); }
.portal-heading { display:flex; flex-wrap:wrap; align-items:end; justify-content:space-between; gap:10px; }
.portal-kicker { font-size:.76rem; font-weight:700; letter-spacing:.08em; color:#565969; margin:0; }
.portal-grid,.portal-actions-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.portal-card { border:2px solid var(--p-ink); background:#fff; border-radius:13px; overflow:hidden; min-width:0; display:flex; flex-direction:column; }
.portal-cover { display:block; position:relative; height:200px; background:#e9dfc9; overflow:hidden; }
.portal-cover img { width:100%; height:100%; object-fit:contain; background:#262d40; }
.portal-cover-fallback { display:grid; place-items:center; height:100%; background:#f3ca49; font-weight:800; font-size:1.5rem; text-align:center; }
.portal-episode-count { position:absolute; bottom:10px; left:10px; background:var(--p-yellow); color:#16181d; padding:4px 8px; font-weight:700; border:1px solid #16181d; }
.portal-card-body { padding:16px; flex:1; }
.portal-card-body h3 a { text-decoration:none; }
.portal-link { font-weight:700; }
.portal-community { background:#e9e9df; }
.portal-actions-grid article,.portal-empty { padding:20px; border:2px solid var(--p-ink); border-radius:12px; background:#fff; }
.portal-actions-grid > article { display:flex; flex-direction:column; min-width:0; overflow-wrap:anywhere; }
.portal-actions-grid > article > .btn:last-child { align-self:stretch; margin-top:auto; box-sizing:border-box; width:100%; min-width:0; min-height:64px; padding:10px 12px; text-align:center; white-space:normal; line-height:1.2; }
.portal-actions-grid > article > p:last-of-type { margin-bottom:20px; }
.portal-empty { grid-column:1/-1; }
.portal-travel-form {display:flex;flex-wrap:wrap;gap:12px;align-items:end}
.portal-travel-form label {display:grid;gap:6px;flex:1 1 200px;min-width:0;font-weight:700}
.portal-travel-form select {font:inherit;background:white;color:#202638;border:2px solid #202638;border-radius:7px;padding:12px;max-width:100%}
.travel-disclosure {font-size:.82rem;overflow-wrap:anywhere;color:#565969}
@media(max-width:850px) { .portal-grid,.portal-actions-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .portal-intro,.portal-grid,.portal-actions-grid { grid-template-columns:1fr; } .portal-key { max-height:240px; object-fit:cover; } .portal-cover { height:210px; } .portal .btn { max-width:100%; white-space:normal; } }
/* Stylesheet is included only by the editorial portal templates. Keep the
   existing game header unchanged on its own pages. */
@media(max-width:600px) {
  .top .wrap { flex-wrap:wrap; gap:6px; padding-top:10px; padding-bottom:10px; }
  .top .nav { width:100%; min-width:0; justify-content:space-between; flex-wrap:wrap; }
  .top .nav a { flex-shrink:0; }
}
.portal-travel-form input {font:inherit;background:white;color:#202638;border:2px solid #202638;border-radius:7px;padding:12px;width:100%;min-width:0}
