/* 2026 game portal refresh
   Scoped to .portal-2026 so legacy and game-mirror pages remain untouched. */
@font-face {
  font-family:"Portal Orbitron";
  src:url("/games/cyber-marge/game/libs/fonts/orbitron_900.ttf") format("truetype");
  font-style:normal;
  font-weight:900;
  font-display:swap;
}
@font-face {
  font-family:"Portal Pixel";
  src:url("/games/microgic/game/assets/fonts/microgic-8.ttf") format("truetype");
  font-style:normal;
  font-weight:400;
  font-display:swap;
}
@font-face {
  font-family:"Portal Digital";
  src:url("/assets/games/superhorizon-vr/fonts/lets-go-digital-regular.ttf") format("truetype");
  font-style:normal;
  font-weight:400;
  font-display:swap;
}

body.portal-2026 {
  --bg:#0c0f12;
  --bg2:#12171b;
  --surface:#171d21;
  --surface2:#1d252a;
  --text:#f4f7ef;
  --text-muted:#9da8a3;
  --border:rgba(255,255,255,.09);
  --border-strong:rgba(255,255,255,.17);
  --accent:#c8ff42;
  --accent2:#a8dc26;
  --accent-dark:#d9ff7b;
  --accent-tint:rgba(200,255,66,.11);
  --radius:18px;
  --shadow-soft:0 16px 45px rgba(0,0,0,.22);
  --shadow:0 24px 65px rgba(0,0,0,.38);
  min-height:100vh;
  color:var(--text);
  background:
    radial-gradient(circle at 82% 4%,rgba(200,255,66,.08),transparent 28rem),
    radial-gradient(circle at 4% 42%,rgba(74,114,255,.08),transparent 34rem),
    var(--bg);
}

/* Keep the existing theme control meaningful. The portal stays graphic and
   game-led in light mode, while swapping the chrome and content surfaces. */
:root[data-theme="light"] body.portal-2026 {
  --bg:#f1f3ec;
  --bg2:#e6eae1;
  --surface:#fbfcf7;
  --surface2:#eef1e9;
  --text:#161b18;
  --text-muted:#65706a;
  --border:rgba(18,28,22,.10);
  --border-strong:rgba(18,28,22,.20);
  --accent:#9fd400;
  --accent2:#789f00;
  --accent-dark:#587800;
  --accent-tint:rgba(132,178,0,.11);
  --shadow-soft:0 16px 45px rgba(24,39,30,.10);
  --shadow:0 24px 65px rgba(24,39,30,.16);
  background:
    radial-gradient(circle at 82% 4%,rgba(132,178,0,.10),transparent 28rem),
    radial-gradient(circle at 4% 42%,rgba(74,114,255,.07),transparent 34rem),
    var(--bg);
}
:root[data-theme="light"] body.portal-2026 .site-nav {
  background:rgba(248,250,244,.9) !important;
  border-bottom-color:rgba(18,28,22,.09) !important;
}
:root[data-theme="light"] body.portal-2026 .site-nav-crumb,
:root[data-theme="light"] body.portal-2026 .site-nav-links a:hover,
:root[data-theme="light"] body.portal-2026 .site-nav-sitem:hover { color:#161b18 !important; }
:root[data-theme="light"] body.portal-2026 .site-nav-links a,
:root[data-theme="light"] body.portal-2026 .site-nav-sitem { color:#65706a !important; }
:root[data-theme="light"] body.portal-2026 .site-nav-lang,
:root[data-theme="light"] body.portal-2026 .site-nav-icon,
:root[data-theme="light"] body.portal-2026 .site-nav-me {
  color:#161b18 !important; background:rgba(18,28,22,.04) !important; border-color:rgba(18,28,22,.12) !important;
}
:root[data-theme="light"] body.portal-2026 .portal-auth-strip { background:rgba(251,252,247,.92); }
:root[data-theme="light"] body.portal-2026 .portal-newswire {
  background:rgba(246,248,241,.96);
  border-color:rgba(18,28,22,.12);
  box-shadow:0 14px 42px rgba(24,39,30,.08);
}
:root[data-theme="light"] body.portal-2026 .portal-newswire-brand::after { background:rgba(18,28,22,.16); }
:root[data-theme="light"] body.portal-2026 .portal-newswire-toggle { background:rgba(18,28,22,.04); }

body.portal-2026 .bg-anim { opacity:.16; }
body.portal-2026 .site-nav {
  background:rgba(12,15,18,.86) !important;
  border-bottom-color:rgba(255,255,255,.08) !important;
  box-shadow:none !important;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
body.portal-2026 .site-nav-logo { color:var(--accent) !important; }
body.portal-2026 .site-nav-crumb,
body.portal-2026 .site-nav-links a:hover,
body.portal-2026 .site-nav-sitem:hover { color:var(--text) !important; }
body.portal-2026 .site-nav-links a,
body.portal-2026 .site-nav-sitem { color:var(--text-muted) !important; }
body.portal-2026 .site-nav-lang,
body.portal-2026 .site-nav-icon,
body.portal-2026 .site-nav-me {
  color:var(--text) !important;
  background:rgba(255,255,255,.05) !important;
  border-color:var(--border) !important;
}
body.portal-2026 .site-nav-btn,
body.portal-2026 .site-nav.is-compact #nav-login {
  background:var(--accent) !important;
  border-color:var(--accent) !important;
  color:#11160b !important;
}
/* compact（スマホ）では #nav-login の「箱」が 32px の丸角ボタン。中の <button> まで上の !important で塗ると、
   余白つきの四角が箱から飛び出して右端に張りつく（2026-10-30 オーナー報告）ので、中身は透明にして余白も 0 にする */
body.portal-2026 .site-nav.is-compact #nav-login > .site-nav-btn {
  background:transparent !important; border-color:transparent !important; padding:0 !important; box-shadow:none !important;
}

body.portal-2026 a { color:var(--accent-dark); }
body.portal-2026 .btn { border-radius:999px; font-weight:800; }
body.portal-2026 .btn-primary {
  color:#12170a !important;
  background:var(--accent) !important;
  border-color:var(--accent) !important;
  box-shadow:0 8px 28px rgba(200,255,66,.13);
}
body.portal-2026 .btn-outline {
  color:var(--text) !important;
  background:rgba(255,255,255,.035) !important;
  border-color:var(--border-strong) !important;
}
body.portal-2026 .btn-outline:hover { border-color:var(--accent) !important; }
body.portal-2026 input,
body.portal-2026 textarea,
body.portal-2026 select { color:var(--text); background:#101519; border-color:var(--border-strong); }

.portal-shell { width:min(1180px,calc(100% - 40px)); margin-inline:auto; }
.portal-eyebrow {
  display:flex; align-items:center; gap:.55rem; margin:0 0 .85rem;
  color:var(--accent); font-size:.72rem; font-weight:900; letter-spacing:.16em; text-transform:uppercase;
}
.portal-eyebrow::before { content:""; width:28px; height:2px; background:currentColor; }
.portal-page-head { padding:4rem 0 2.2rem; }
.portal-page-head h1 { margin:0; max-width:780px; font-size:clamp(2.35rem,6vw,5.4rem); line-height:.92; letter-spacing:-.055em; }
.portal-page-head p:not(.portal-eyebrow) { max-width:650px; margin-top:1.2rem; color:var(--text-muted); font-size:1rem; line-height:1.75; }

/* Home */
.portal-hero { position:relative; min-height:clamp(470px,72vh,760px); overflow:hidden; display:flex; align-items:flex-end; }
.portal-hero-media {
  position:absolute; inset:0; z-index:0;
  background-image:url('/assets/games/keyvisuals/variants/lumina-hero-b.jpg');   /* 先頭の 1 枚（js/portal-2026.js の FEATURED_GAMES[0]）と同じ絵。JS が走る前のちらつき防止 */
  background-size:cover; background-position:center;
  transform:scale(1.015); opacity:1;
  transition:opacity .34s ease,transform 1.1s ease;
}
.portal-hero::before {
  content:""; position:absolute; inset:0; z-index:1;
  background-image:linear-gradient(90deg,rgba(7,9,11,.96) 0%,rgba(7,9,11,.78) 35%,rgba(7,9,11,.18) 72%),
    linear-gradient(0deg,var(--bg) 0%,transparent 42%);
}
.portal-hero::after { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(120deg,rgba(200,255,66,.05),transparent 38%); pointer-events:none; }
.portal-hero.is-changing .portal-hero-media { opacity:.22; transform:scale(1.035); }
.portal-hero.is-changing .portal-hero-copy { opacity:.55; transform:translateY(5px); }
.portal-hero-inner { position:relative; z-index:2; width:min(1180px,calc(100% - 40px)); margin:0 auto; padding:6rem 0 5.5rem; }
.portal-hero-copy { width:min(610px,100%); }
.portal-hero-copy { transition:opacity .22s ease,transform .22s ease; }
.portal-hero h1 {
  margin:0 0 1rem; color:#fff; font-size:clamp(3rem,8vw,6.8rem); line-height:.86;
  letter-spacing:-.065em; text-shadow:0 16px 60px rgba(0,0,0,.5);
}
.portal-hero-title-line { display:block; width:max-content; max-width:100%; white-space:nowrap; }
.portal-hero h1[data-game-logo="cyber-marge"] {
  font-family:"Portal Orbitron","Arial Black",sans-serif;
  font-size:clamp(2.55rem,6.45vw,5.45rem); font-weight:900; line-height:.9; letter-spacing:-.035em;
  color:#d9feff; text-shadow:0 0 12px rgba(0,229,255,.42),0 7px 0 rgba(12,39,58,.72),0 20px 55px rgba(0,0,0,.72);
}
.portal-hero h1[data-game-logo="knockdown-shooter"] {
  font-family:Impact,Haettenschweiler,"Arial Narrow Bold","Avenir Next Condensed",sans-serif;
  font-weight:900; line-height:.82; letter-spacing:.005em;
  text-transform:uppercase; text-shadow:0 5px 0 rgba(68,43,23,.8),0 18px 55px rgba(0,0,0,.72);
}
.portal-hero h1[data-game-logo="pong3d"] {
  font-family:"Portal Orbitron","Arial Black",sans-serif;
  font-size:clamp(2.75rem,7.2vw,6.15rem); font-weight:900; font-style:italic; line-height:.88; letter-spacing:.015em;
  text-transform:uppercase; color:#f5fbff; text-shadow:-4px 0 0 rgba(0,229,255,.78),4px 0 0 rgba(255,43,204,.58),0 15px 55px rgba(0,0,0,.78);
}
.portal-hero h1[data-game-logo="superhorizon-vr"] {
  font-family:"Portal Digital","Courier New",monospace;
  font-size:clamp(3rem,7.8vw,6.6rem); font-weight:400; line-height:.82; letter-spacing:.045em;
  color:#eafeff; text-shadow:0 0 8px rgba(0,229,255,.88),0 0 28px rgba(0,229,255,.46),4px 3px 0 rgba(255,63,180,.35);
}
.portal-hero h1[data-game-logo="cyber-siege"] {
  font-family:"Portal Orbitron","Arial Black",sans-serif;
  font-size:clamp(3rem,7.55vw,6.35rem); font-weight:900; line-height:.82; letter-spacing:.055em;
  text-transform:uppercase; color:#effcff;
  text-shadow:-3px 0 0 rgba(0,206,255,.72),3px 0 0 rgba(255,116,37,.56),0 0 24px rgba(0,174,255,.34),0 18px 55px rgba(0,0,0,.78);
}
.portal-hero h1[data-game-logo="lumina"] {
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(3.2rem,8.4vw,7rem); font-weight:700; font-style:italic; line-height:.9; letter-spacing:.06em;
  color:#e4f1ff; text-shadow:0 0 18px rgba(94,157,255,.6),0 0 54px rgba(94,157,255,.3),0 18px 55px rgba(0,0,0,.72);
}
.portal-hero h1[data-game-logo="light-up-the-night"] {
  font-family:"Hiragino Mincho ProN",Palatino,"Palatino Linotype",Georgia,serif;
  font-size:clamp(2.7rem,6.8vw,5.7rem); font-weight:800; font-style:italic; line-height:.94; letter-spacing:-.01em;
  color:#ffe3a3; text-shadow:0 0 18px rgba(255,176,64,.55),0 0 56px rgba(255,150,40,.28),0 5px 0 rgba(60,28,0,.55);
}
.portal-hero h1[data-game-logo="retro-handheld"] {
  font-family:"Portal Pixel","Courier New",monospace;
  font-size:clamp(1.7rem,6.6vw,5.5rem); font-weight:400; line-height:.95; letter-spacing:.01em;
  text-transform:uppercase; color:#e3f5c8; text-shadow:0 0 14px rgba(160,230,90,.5),4px 4px 0 rgba(26,48,16,.85),0 18px 55px rgba(0,0,0,.72);
}
.portal-hero h1[data-game-logo="big-wave"] {
  font-family:"Hiragino Mincho ProN",Palatino,"Palatino Linotype",Georgia,serif;
  font-size:clamp(3rem,8vw,6.6rem); font-weight:900; line-height:.86; letter-spacing:.02em;
  color:#f3f8ff; text-shadow:0 0 22px rgba(88,150,230,.55),0 6px 0 rgba(10,32,74,.8),0 20px 55px rgba(0,0,0,.72);
}
.portal-hero h1[data-game-logo="slow-rush"] {
  font-family:"Portal Orbitron","Arial Black",sans-serif;
  font-size:clamp(3rem,7.6vw,6.4rem); font-weight:900; font-style:italic; line-height:.84; letter-spacing:.04em;
  text-transform:uppercase; color:#f4fff0; text-shadow:-6px 0 0 rgba(95,255,140,.4),-12px 0 0 rgba(95,255,140,.18),0 18px 55px rgba(0,0,0,.78);
}
.portal-hero-lead { max-width:540px; color:#c2cbc6; font-size:clamp(.98rem,1.5vw,1.13rem); line-height:1.7; }
.portal-hero-actions { display:flex; flex-wrap:wrap; gap:.7rem; margin-top:1.55rem; }
.portal-hero-actions .btn { padding:.78rem 1.35rem; }
body.portal-2026 .portal-hero-actions .btn-outline { border-color:rgba(255,255,255,.3) !important; background:rgba(7,9,11,.34) !important; color:#fff !important; backdrop-filter:blur(10px); }
body.portal-2026 .portal-hero-actions .btn-outline:hover { border-color:#fff !important; background:rgba(255,255,255,.12) !important; color:#fff !important; }
.portal-hero-facts { display:flex; gap:1.5rem; flex-wrap:wrap; margin-top:1.7rem; color:#a8b1ad; font-size:.77rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.portal-hero-facts span::before { content:""; display:inline-block; width:5px; height:5px; margin-right:.5rem; border-radius:50%; background:var(--accent); vertical-align:1px; }
.portal-hero-controls { display:flex; align-items:center; gap:.65rem; margin-top:1.45rem; width:max-content; }
.portal-hero-arrow { width:40px; height:40px; display:grid; place-items:center; padding:0; border:1px solid rgba(255,255,255,.2); border-radius:50%; background:rgba(7,9,11,.48); color:#fff; font:inherit; font-size:1.45rem; line-height:1; cursor:pointer; backdrop-filter:blur(10px); }
.portal-hero-arrow:hover,.portal-hero-arrow:focus-visible { border-color:var(--accent); color:var(--accent); }
.portal-hero-dots { display:flex; align-items:center; gap:.45rem; }
.portal-hero-dot { width:32px; height:40px; display:grid; place-items:center; padding:0; border:0; background:transparent; cursor:pointer; }
.portal-hero-dot::before { content:""; width:22px; height:6px; border-radius:99px; background:rgba(255,255,255,.28); transition:width .2s ease,background-color .2s ease; }
.portal-hero-dot.is-active::before { width:30px; background:var(--accent); }

/* First-view newswire: latest headlines move as a single continuous signal. */
.portal-newswire[hidden] { display:none; }
.portal-newswire {
  position:relative; z-index:3; overflow:hidden;
  color:var(--text); background:rgba(13,17,20,.96);
  border-block:1px solid var(--border); box-shadow:0 16px 46px rgba(0,0,0,.24);
}
.portal-newswire-inner {
  width:min(1180px,calc(100% - 40px)); min-height:76px; margin-inline:auto;
  display:grid; grid-template-columns:auto minmax(0,1fr) 44px; align-items:center; gap:1rem;
}
.portal-newswire-brand {
  position:relative; display:flex; align-items:center; gap:.65rem; align-self:stretch;
  padding-right:1.15rem; color:var(--text) !important; text-decoration:none;
  font-size:.72rem; font-weight:950; letter-spacing:.13em; white-space:nowrap;
}
.portal-newswire-brand::after { content:""; position:absolute; top:20px; right:0; bottom:20px; width:1px; background:rgba(255,255,255,.14); }
.portal-newswire-brand:hover,.portal-newswire-brand:focus-visible { color:var(--accent) !important; }
.portal-newswire-live {
  width:8px; height:8px; flex:0 0 auto; border-radius:50%; background:var(--accent);
  box-shadow:0 0 0 0 rgba(200,255,66,.4); animation:portal-newswire-pulse 2.2s ease-out infinite;
}
.portal-newswire-window {
  min-width:0; overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent);
  mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent);
}
.portal-newswire-track {
  --newswire-duration:48s;
  display:flex; width:max-content; animation:portal-newswire-scroll var(--newswire-duration) linear infinite;
  will-change:transform;
}
.portal-newswire.is-paused .portal-newswire-track { animation-play-state:paused; }
.portal-newswire-set { display:flex; align-items:center; flex:0 0 auto; padding-right:1.5rem; }
.portal-newswire-item {
  display:flex; align-items:center; gap:.68rem; flex:0 0 auto; padding:.8rem 1.2rem;
  color:var(--text) !important; text-decoration:none; white-space:nowrap;
}
.portal-newswire-item::after { content:""; width:4px; height:4px; margin-left:.65rem; rotate:45deg; background:var(--border-strong); }
.portal-newswire-item:hover .portal-newswire-title,.portal-newswire-item:focus-visible .portal-newswire-title { color:var(--accent); }
.portal-newswire-category { color:var(--accent); font-size:.65rem; font-weight:950; letter-spacing:.11em; text-transform:uppercase; }
.portal-newswire-category.is-notice { color:#ff9b90; }
.portal-newswire-category.is-event { color:#ffd074; }
.portal-newswire-category.is-update { color:#7ee6c6; }
.portal-newswire-title { max-width:38ch; overflow:hidden; text-overflow:ellipsis; font-size:.86rem; font-weight:800; transition:color .2s ease; }
.portal-newswire-date { color:var(--text-muted); font-size:.7rem; font-variant-numeric:tabular-nums; letter-spacing:.06em; }
.portal-newswire-toggle {
  width:42px; height:42px; display:grid; place-items:center; padding:0;
  border:1px solid var(--border); border-radius:50%; color:var(--text-muted); background:rgba(255,255,255,.04); cursor:pointer;
}
.portal-newswire-toggle:hover,.portal-newswire-toggle:focus-visible { color:var(--accent); border-color:var(--accent); }
.portal-newswire-toggle svg { width:15px; height:15px; }
@keyframes portal-newswire-scroll { to { transform:translateX(-50%); } }
@keyframes portal-newswire-pulse {
  55% { box-shadow:0 0 0 0 rgba(200,255,66,.34); }
  100% { box-shadow:0 0 0 8px rgba(200,255,66,0); }
}

.portal-auth-strip { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:1.5rem; align-items:center; margin-top:18px; position:relative; z-index:2; padding:1.15rem 1.3rem; background:rgba(24,30,34,.9); border:1px solid var(--border); border-radius:18px; box-shadow:var(--shadow-soft); backdrop-filter:blur(16px); }
.portal-auth-strip h2 { margin:0 0 .25rem; font-size:1rem; }
.portal-auth-strip p { margin:0; color:var(--text-muted); font-size:.82rem; }
.portal-auth-strip .member-copy { display:none; }
body.portal-2026.is-authenticated .portal-auth-strip .guest-copy { display:none; }
body.portal-2026.is-authenticated .portal-auth-strip .member-copy { display:block; }

body.portal-home .home-hub { display:flex; flex-direction:column; width:min(1180px,calc(100% - 40px)); max-width:none; margin:4.2rem auto 0; padding:0; gap:4.5rem; }
body.portal-home .home-games { width:100%; order:1; }
body.portal-home .home-feed { width:100%; order:2; }
body.portal-home .home-games > .section-title,
body.portal-home #feed-section > .section-title { font-size:clamp(1.55rem,3vw,2.3rem); margin-bottom:1.2rem; }
body.portal-home .home-games .games-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:14px; overflow:visible; margin:0; padding:0; }
body.portal-home .home-games .game-card { grid-column:span 4; min-width:0; overflow:hidden; border:1px solid var(--border); border-radius:16px; background:var(--surface); box-shadow:none; transition:transform .2s,border-color .2s; }
body.portal-home .home-games .game-card:hover { transform:translateY(-4px); border-color:rgba(200,255,66,.45); }
body.portal-home .home-games .game-card:nth-child(1),
body.portal-home .home-games .game-card:nth-child(2) { grid-column:span 6; }
body.portal-home .home-games .game-thumb { aspect-ratio:16/9; }
body.portal-home .home-games .game-info { padding:.85rem 1rem 1rem; }
body.portal-home .home-games .game-info h3 { margin:0; font-size:1rem; }
body.portal-home .home-games .game-info h3,
body.portal-home .home-games .game-title-link {
  color:var(--game-logo-color,var(--accent-dark));
  line-height:1.08; text-decoration:none;
}
body.portal-home .home-games .game-card[data-game-id="cyber-marge"],
body.portal-home .home-games .game-card[data-game-id="cyber-siege"],
body.portal-home .home-games .game-card[data-game-id="block-slide"] { --game-logo-color:#9deeff; }
body.portal-home .home-games .game-card[data-game-id="cyber-marge"] h3,
body.portal-home .home-games .game-card[data-game-id="cyber-siege"] h3,
body.portal-home .home-games .game-card[data-game-id="block-slide"] h3 {
  font-family:"Portal Orbitron","Arial Black",sans-serif; font-weight:900; letter-spacing:.015em;
}
body.portal-home .home-games .game-card[data-game-id="superhorizon-vr"] { --game-logo-color:#7ef5ff; }
body.portal-home .home-games .game-card[data-game-id="superhorizon-vr"] h3 {
  font-family:"Portal Digital","Courier New",monospace; font-weight:400; letter-spacing:.08em;
  text-shadow:0 0 10px rgba(0,229,255,.3);
}
body.portal-home .home-games .game-card[data-game-id="knockdown-shooter"] { --game-logo-color:#ffd07a; }
body.portal-home .home-games .game-card[data-game-id="knockdown-shooter"] h3 {
  font-family:Impact,Haettenschweiler,"Arial Narrow Bold","Avenir Next Condensed",sans-serif;
  font-weight:900; letter-spacing:.025em; text-transform:uppercase;
}
body.portal-home .home-games .game-card[data-game-id="pong3d"] { --game-logo-color:#7eeaff; }
body.portal-home .home-games .game-card[data-game-id="pong3d"] h3 {
  font-family:"Portal Orbitron","Arial Black",sans-serif; font-weight:900; font-style:italic;
  letter-spacing:.035em; text-transform:uppercase; text-shadow:1px 0 0 rgba(255,63,180,.5);
}
body.portal-home .home-games .game-card[data-game-id="microgic"] { --game-logo-color:#ffd95a; }
body.portal-home .home-games .game-card[data-game-id="microgic"] h3 {
  font-family:"Portal Pixel",monospace; font-size:.72em; font-weight:400; letter-spacing:.025em; line-height:1.3;
}
body.portal-home .home-games .game-card[data-game-id="spades"] { --game-logo-color:#f1e7d0; }
body.portal-home .home-games .game-card[data-game-id="spades"] h3 {
  font-family:Georgia,"Times New Roman",serif; font-style:italic; font-weight:700; letter-spacing:.025em;
}
body.portal-home .home-games .game-card[data-game-id="fractas"] { --game-logo-color:#ffb14f; }
body.portal-home .home-games .game-card[data-game-id="fractas"] h3 {
  font-family:"Quicksand","Avenir Next",sans-serif; font-weight:700; letter-spacing:.095em; text-transform:uppercase;
}
body.portal-home .home-games .game-card[data-game-id="lumina"] { --game-logo-color:#a9d6ff; }
body.portal-home .home-games .game-card[data-game-id="lumina"] h3 {
  font-family:Georgia,"Times New Roman",serif; font-style:italic; font-weight:700; letter-spacing:.08em;
  text-shadow:0 0 12px rgba(94,157,255,.3);
}
body.portal-home .home-games .game-card[data-game-id="jumpjump"] { --game-logo-color:#fff073; }
body.portal-home .home-games .game-card[data-game-id="jumpjump"] h3 {
  font-family:"Quicksand","Arial Rounded MT Bold",sans-serif; font-weight:700; letter-spacing:-.045em;
}
body.portal-home .home-games .game-card[data-game-id="light-up-the-night"] { --game-logo-color:#ffd58a; }
body.portal-home .home-games .game-card[data-game-id="light-up-the-night"] h3 {
  font-family:"Hiragino Mincho ProN",Palatino,"Palatino Linotype",Georgia,serif; font-style:italic; font-weight:800; letter-spacing:.01em;
  text-shadow:0 0 12px rgba(255,170,60,.32);
}
body.portal-home .home-games .game-info p { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; color:var(--text-muted); font-size:.78rem; line-height:1.5; margin:.45rem 0 0; }
body.portal-home .home-games .game-tags { display:flex; margin-top:.75rem; }
body.portal-home .home-games .external-links { display:none; }
body.portal-home .game-play-overlay { background:var(--accent); color:#10140a; }
body.portal-home .home-games-more { margin:1.2rem 0 0 auto; color:var(--text); background:transparent; border-color:var(--border-strong); }
/* Feed も Games と同じ 1180px 幅を使う。以前の左見出し＋760pxカードではPCだけ大きな空白ができていた。 */
body.portal-home .home-feed { display:block; }
body.portal-home .home-feed::before { content:"COMMUNITY"; display:block; margin-bottom:.65rem; color:var(--accent); font-size:.68rem; font-weight:900; letter-spacing:.16em; }
body.portal-home .home-feed .feed-wrap { max-width:none !important; width:100%; }
body.portal-home .feed-compose,
body.portal-home .feed-post,
body.portal-home .feed-signin { background:var(--surface); border-color:var(--border); box-shadow:none; }
body.portal-home .feed-pick { color:var(--text); background:var(--accent-tint); border-color:rgba(200,255,66,.25); }
body.portal-home #announcements-section,
body.portal-home > .section { width:min(1180px,calc(100% - 40px)); max-width:none; }
body.portal-home .announcements-list,
body.portal-home .bk-frame { background:var(--surface); border-color:var(--border); box-shadow:none; }

/* Games */
body.portal-games .games-page { width:min(1180px,calc(100% - 40px)); max-width:none; margin:0 auto; padding:0 0 5rem; }
body.portal-games .games-page > .section-title,
body.portal-games .games-page > .games-sub { display:none; }
.portal-filters { display:flex; flex-wrap:wrap; gap:.5rem; margin:0 0 1.5rem; }
.portal-filter { appearance:none; border:1px solid var(--border); border-radius:999px; padding:.52rem .9rem; background:var(--surface); color:var(--text-muted); font:inherit; font-size:.78rem; font-weight:800; cursor:pointer; }
.portal-filter:hover,.portal-filter.is-active { color:#11160b; border-color:var(--accent); background:var(--accent); }
body.portal-games .games-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
body.portal-games .game-row { display:block; padding:0; overflow:hidden; min-width:0; background:var(--surface); border-color:var(--border); border-radius:16px; box-shadow:none; }
body.portal-games .game-row[hidden] { display:none; }
body.portal-games .game-row:hover { border-color:rgba(200,255,66,.5); box-shadow:var(--shadow-soft); transform:translateY(-4px); }
body.portal-games .gr-thumb { width:100%; aspect-ratio:16/10; border-radius:0; }
body.portal-games .gr-body { padding:1rem; min-height:155px; }
body.portal-games .gr-head h3 { color:var(--text); }
body.portal-games .gr-rating .gr-stars { color:var(--accent); }
body.portal-games .gr-score { color:var(--accent-dark); }

/* Ranking */
body.portal-ranking > .section { width:min(980px,calc(100% - 40px)); max-width:none; margin:0 auto; padding:0 0 5rem; }
body.portal-ranking > .section > .section-title { display:none; }
body.portal-ranking .lb-tabs { gap:.5rem; }
body.portal-ranking .lb-tabs .btn { padding:.62rem 1rem !important; }
body.portal-ranking .view-switch { background:var(--surface); border:1px solid var(--border); border-radius:999px; padding:.25rem; }
body.portal-ranking .view-switch button { border-radius:999px; }
body.portal-ranking .view-switch button.active { background:var(--accent); color:#11160b; }
body.portal-ranking .leaderboard { display:flex; flex-direction:column; gap:.55rem; background:transparent; border:0; }
body.portal-ranking .lb-row { border:1px solid var(--border); border-radius:14px; background:var(--surface); }
body.portal-ranking .lb-row:nth-child(-n+3) { border-color:rgba(200,255,66,.27); background:linear-gradient(90deg,rgba(200,255,66,.085),var(--surface) 42%); }
body.portal-ranking .lb-score { color:var(--accent-dark); }

/* News */
body.portal-news .news-body { width:min(980px,calc(100% - 40px)); max-width:none; margin:0 auto; padding:0 0 5rem; }
body.portal-news #list-view > h1 { display:none; }
body.portal-news .news-list,
body.portal-news .news-detail,
body.portal-news .news-ix,
body.portal-news .news-pager-item { background:var(--surface); border-color:var(--border); }
body.portal-news .announcement-item { padding:1.25rem; }

/* Login */
body.portal-login .auth-wrapper { width:min(1080px,calc(100% - 40px)); max-width:none; min-height:calc(100vh - 74px); margin:0 auto; display:grid; grid-template-columns:minmax(0,1.25fr) minmax(340px,.75fr); gap:0; align-items:stretch; padding:3rem 0; }
.portal-login-art { min-height:590px; position:relative; overflow:hidden; isolation:isolate; border:1px solid var(--border); border-right:0; border-radius:24px 0 0 24px; background:#0a0d10; }
.portal-login-art-copy { position:absolute; inset:auto 2.2rem 2.2rem; z-index:2; }
/* 背景のバナー（js/auth-art.js が .portal-art-slides に入れて、ゆっくり切り替える）。文字が読めるよう、下から濃い影を重ねる（2026-11-02: 暗い画像に暗い文字で読めなかった） */
.portal-art-slides { position:absolute; inset:0; z-index:0; }
.portal-art-slide { position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; transition:opacity .9s ease; }
.portal-art-slide.is-on { opacity:1; }
.portal-login-art::after { content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(0deg,rgba(6,8,10,.95) 0%,rgba(6,8,10,.78) 30%,rgba(6,8,10,.16) 66%,rgba(6,8,10,.32) 100%); }
body.portal-login .portal-login-art h1,
body.portal-login .portal-login-art .portal-eyebrow { color:#fff; text-shadow:0 2px 20px rgba(0,0,0,.6); }
body.portal-login .portal-login-art .portal-eyebrow { color:#c9f26b; }
body.portal-login .portal-login-art p:not(.portal-eyebrow) { color:#e6ede9; text-shadow:0 1px 12px rgba(0,0,0,.6); }
.portal-art-caption { position:absolute; left:1.4rem; top:1.2rem; z-index:2; margin:0; padding:.28rem .7rem; border-radius:999px; font-size:.74rem; font-weight:800; letter-spacing:.04em; color:#fff;
  background:rgba(8,10,12,.5); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); border:1px solid rgba(255,255,255,.14); }
.portal-art-dots { position:absolute; right:1.4rem; top:1.35rem; z-index:2; display:flex; gap:.4rem; }
.portal-art-dots button { width:8px; height:8px; padding:0; border:0; border-radius:50%; background:rgba(255,255,255,.4); cursor:pointer; transition:background .2s ease, transform .2s ease; }
.portal-art-dots button.is-on { background:#c9f26b; transform:scale(1.25); }
.portal-art-dots button:focus-visible { outline:2px solid #fff; outline-offset:2px; }
@media (prefers-reduced-motion: reduce) { .portal-art-slide { transition:none; } }
.portal-login-art h1 { margin:.55rem 0; font-size:clamp(2.5rem,5vw,4.6rem); line-height:.9; letter-spacing:-.055em; }
.portal-login-art p { max-width:430px; color:#c5cec9; line-height:1.6; }
body.portal-login .auth-card { width:auto; max-width:none; margin:0; border-radius:0 24px 24px 0; border-color:var(--border); background:var(--surface); box-shadow:none; padding:clamp(2rem,5vw,3.5rem); display:flex; flex-direction:column; justify-content:center; }

/* 入力欄: 暗い地の欄に、明るい文字（ライトテーマでは文字も暗くなり、打った文字が読めなかった・2026-11-02）。日付の欄はカレンダーの部品も明るくする */
body.portal-login .form-group input { color:#eef3ef; caret-color:#c9f26b; color-scheme:dark; }
body.portal-login .form-group input::placeholder { color:#8a968f; opacity:1; }
body.portal-login .form-group input[type="date"]::-webkit-calendar-picker-indicator { opacity:.8; cursor:pointer; }
body.portal-login .form-group input:-webkit-autofill { -webkit-text-fill-color:#eef3ef; box-shadow:0 0 0 40px #101519 inset; caret-color:#c9f26b; }

/* Profile / game detail / book */
body.portal-profile > .section { width:min(1180px,calc(100% - 40px)); max-width:none; margin-inline:auto; }
body.portal-profile .profile-header,
body.portal-profile .score-card,
body.portal-profile .pf-post,
body.portal-profile .history-table { background:var(--surface); border-color:var(--border); box-shadow:none; }
body.portal-profile .score-card .score-val { color:var(--accent-dark); }
body.portal-game-detail .game-outer { width:min(1180px,100%); max-width:none !important; }
body.portal-game-detail .game-wrap,
body.portal-game-detail .game-sidebar > div { border:1px solid var(--border); background:var(--surface) !important; }
body.portal-book { --paper:#f3eddf; background:#101316; }
body.portal-book .pv-top { background:rgba(12,15,18,.9); border-bottom:1px solid var(--border); }
body.portal-book .pv-home,body.portal-book .pv-lang { color:#dce4df; }
body.portal-book .pv-banner { background:linear-gradient(120deg,#1b2428,#25342d); }
body.portal-book .book { border-radius:18px; box-shadow:0 28px 80px rgba(0,0,0,.34); }

@media (max-width:900px) {
  .portal-shell,.portal-hero-inner,.portal-newswire-inner,body.portal-home .home-hub,
  body.portal-games .games-page,body.portal-ranking > .section,
  body.portal-news .news-body,body.portal-profile > .section { width:min(100% - 28px,1180px); }
  body.portal-home .home-games .game-card { grid-column:span 6; }
  body.portal-home .home-games .game-card:nth-child(1),
  body.portal-home .home-games .game-card:nth-child(2) { grid-column:span 6; }
  body.portal-games .games-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.portal-login .auth-wrapper { width:min(100% - 28px,1080px); grid-template-columns:1fr; }
  .portal-login-art { min-height:360px; border-right:1px solid var(--border); border-bottom:0; border-radius:20px 20px 0 0; }
  body.portal-login .auth-card { border-radius:0 0 20px 20px; }
}

@media (max-width:640px) {
  .portal-page-head { padding:2.8rem 0 1.5rem; }
  .portal-page-head h1 { font-size:clamp(2.25rem,14vw,3.8rem); }
  /* 高さは固定。説明文の行数や特徴の段数で伸びると、スライドのたびにページ全体が縦に伸び縮みしてレイアウトが崩れる
     （2026-10-30 オーナー報告・650〜825px まで動いていた）。中身は下に寄せ、長い説明文は 5 行で省略する */
  .portal-hero { min-height:0; height:clamp(660px,170vw,780px); align-items:flex-end; }
  .portal-hero-media { background-position:62% center; }
  .portal-hero::before { background-image:linear-gradient(0deg,rgba(7,9,11,.98) 0%,rgba(7,9,11,.7) 56%,rgba(7,9,11,.18) 100%); }
  .portal-hero-inner { padding:0 0 3.4rem; }
  .portal-hero h1 { font-size:clamp(3.15rem,17vw,5rem); }
  .portal-hero-lead { font-size:.93rem; line-height:1.6; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:5; line-clamp:5; overflow:hidden; }
  .portal-hero-actions { margin-top:1.3rem; }
  .portal-hero-facts { gap:.45rem 1.1rem; margin-top:1.4rem; font-size:.7rem; letter-spacing:.04em; }
  .portal-hero-controls { margin-top:1.2rem; }
  .portal-hero-actions .btn { flex:1 1 140px; justify-content:center; }
  /* 掲載が 9 枚になっても 1 行に収める（左右の矢印が画面の外へはみ出さない）。点は幅を分け合って縮む */
  .portal-hero-controls { width:100%; max-width:100%; gap:.4rem; }
  .portal-hero-arrow { width:44px; height:44px; flex:0 0 44px; }
  .portal-hero-dots { flex:1 1 0; min-width:0; gap:0; justify-content:center; }
  .portal-hero-dot { flex:1 1 0; min-width:0; max-width:30px; width:auto; height:44px; }
  .portal-hero-dot::before { width:min(calc(100% - 6px),20px); }
  .portal-hero-dot.is-active::before { width:min(100%,26px); }
  .portal-newswire-inner {
    min-height:112px; padding:.75rem 0; grid-template-columns:minmax(0,1fr) 44px;
    grid-template-rows:auto auto; column-gap:.75rem; row-gap:.55rem;
  }
  .portal-newswire-brand { align-self:center; min-height:38px; padding-right:0; font-size:.69rem; }
  .portal-newswire-brand::after { display:none; }
  .portal-newswire-window { grid-column:1 / -1; grid-row:2; width:100%; -webkit-mask-image:none; mask-image:none; }
  .portal-newswire-track { width:100%; animation:none; transform:none; }
  .portal-newswire-set { width:100%; padding:0; }
  .portal-newswire-set[aria-hidden="true"] { display:none; }
  .portal-newswire-item { display:none; width:100%; min-width:0; padding:.2rem 0; grid-template-columns:auto minmax(0,1fr) auto; gap:.6rem; }
  .portal-newswire-item.is-current { display:grid; }
  .portal-newswire-item::after { display:none; }
  .portal-newswire-title { max-width:none; min-width:0; font-size:.82rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .portal-newswire-toggle { grid-column:2; grid-row:1; width:42px; height:42px; }
  .portal-auth-strip { grid-template-columns:1fr; gap:.8rem; margin-top:14px; }
  .portal-auth-strip .btn { width:100%; justify-content:center; }
  body.portal-home .home-hub { margin-top:3.2rem; gap:3.4rem; }
  body.portal-home .home-games .games-grid { display:flex; overflow-x:auto; gap:12px; margin:0 -14px; padding:0 14px 12px; scroll-snap-type:x mandatory; }
  body.portal-home .home-games .game-card,
  body.portal-home .home-games .game-card:nth-child(1),
  body.portal-home .home-games .game-card:nth-child(2) { flex:0 0 78vw; scroll-snap-align:start; }
  body.portal-home .home-feed { display:block; }
  body.portal-home .home-feed::before { display:block; margin-bottom:.8rem; }
  body.portal-games .games-list { grid-template-columns:1fr; }
  body.portal-games .gr-body { min-height:0; }
  body.portal-ranking .lb-tabs { flex-wrap:nowrap; overflow-x:auto; padding-bottom:.4rem; }
  body.portal-ranking .lb-tabs .btn { flex:0 0 auto; }
  .portal-login-art { min-height:280px; }
  .portal-login-art-copy { inset:auto 1.3rem 1.3rem; }
  .portal-login-art h1 { font-size:2.7rem; }
  body.portal-login .auth-card { padding:1.7rem 1.2rem; }
}

/* スマホ: バナーの絵は横長(16:9)なので、縦長の画面だと左右が見切れる。
   絵を画面の高さいっぱいの横長の箱に置き、左→右へゆっくり動かして全体が見えるようにする（動きは GPU の transform のみ）。
   「視差効果を減らす」の人は従来どおり固定表示（上の 640px の規則）。切り替えのたびに js/portal-2026.js が先頭へ戻す */
@supports (aspect-ratio:16/9) {
  @media (max-width:640px) and (prefers-reduced-motion:no-preference) {
    .portal-hero-media {
      inset:0 auto 0 0; width:auto; height:100%; aspect-ratio:16/9; background-position:center;
      transform:translate3d(0,0,0); will-change:transform;
      animation:portalHeroPan 9s ease-in-out infinite alternate;
    }
    .portal-hero.is-changing .portal-hero-media { transform:translate3d(0,0,0); }
  }
}
@keyframes portalHeroPan { from { transform:translate3d(0,0,0); } to { transform:translate3d(calc(100vw - 100%),0,0); } }

@media (prefers-reduced-motion:reduce) {
  body.portal-2026 *,body.portal-2026 *::before,body.portal-2026 *::after { scroll-behavior:auto !important; transition-duration:.01ms !important; animation-duration:.01ms !important; }
  .portal-newswire-window { overflow-x:auto; -webkit-mask-image:none; mask-image:none; }
  .portal-newswire-track { animation:none !important; transform:none !important; will-change:auto; }
  .portal-newswire-set[aria-hidden="true"] { display:none; }
  .portal-newswire-live { animation:none !important; }
}
@media (prefers-reduced-motion:reduce) and (min-width:641px) {
  .portal-newswire-toggle { display:none; }
}
