/* gameplay4 portal — "arcade lounge": deep night background, soft aurora light, glass panels, warm gradient accents */
.portal {
  --bg0: #0b0a1f; --bg1: #13112e; --surf: rgba(255, 255, 255, 0.045); --surf2: rgba(255, 255, 255, 0.08); --edge: rgba(255, 255, 255, 0.09);
  --ink: #f4f2ff; --ink2: #b3aed6; --ink3: #7d78a3;
  --a1: #7c5cff; --a2: #ff4fd8; --a3: #ffb547; --ok: #3ee08f; --warn: #ff5a6e;
  --grad: linear-gradient(135deg, var(--a1), var(--a2) 55%, var(--a3));
  --r: 18px; --shadow: 0 18px 50px rgba(5, 3, 20, 0.55);
  margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--font); font-weight: 500;
  background: radial-gradient(1200px 700px at 8% -10%, rgba(124, 92, 255, 0.28), transparent 60%),
    radial-gradient(900px 600px at 105% 10%, rgba(34, 200, 255, 0.16), transparent 60%),
    radial-gradient(1000px 700px at 50% 120%, rgba(255, 79, 216, 0.14), transparent 60%), var(--bg0);
  background-attachment: fixed;
}
.portal a { color: inherit; }
.portal ::selection { background: rgba(124, 92, 255, 0.5); }

/* ── header ── */
.pt-head { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 12px clamp(14px, 3vw, 36px);
  background: rgba(11, 10, 31, 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--edge); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; font: 900 1.25rem/1 var(--display); box-shadow: 0 6px 20px rgba(255, 79, 216, 0.4); }
.logo-word { font: 800 1.15rem/1 var(--display); letter-spacing: 0.06em; color: var(--ink); }
.logo-word b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pt-search { position: relative; flex: 1; max-width: 560px; margin: 0 auto; display: flex; align-items: center; min-width: 0; }
.pt-search input { flex: 1; min-width: 0; height: 44px; padding: 0 48px 0 18px; border-radius: 999px; border: 1px solid var(--edge); background: var(--surf2); color: var(--ink); font: 600 1rem var(--font); outline: none; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.pt-search input::placeholder { color: var(--ink3); }
.pt-search input:focus { border-color: rgba(124, 92, 255, 0.8); background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.2); }
.pt-search button { position: absolute; right: 5px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; font-size: 0.95rem; cursor: pointer; }
.sugg { position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 6px; background: rgba(19, 17, 46, 0.97); border: 1px solid var(--edge); border-radius: 16px; box-shadow: var(--shadow); }
.sugg[hidden] { display: none; }
.sugg a { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.sugg a:hover { background: var(--surf2); }
.sugg img { width: 64px; height: 40px; object-fit: cover; border-radius: 8px; }
.portal .lang-switch { flex-shrink: 0; }

/* ── category bar ── */
.catnav { display: flex; gap: 10px; overflow-x: auto; padding: 14px clamp(14px, 3vw, 36px) 6px; scrollbar-width: none; }
.catnav::-webkit-scrollbar { display: none; }
.catnav a { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px 15px 8px 9px; border-radius: 14px; background: var(--surf); border: 1px solid var(--edge); text-decoration: none; font-weight: 700; font-size: 0.95rem; white-space: nowrap; color: var(--ink2); transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s; }
.catnav a i { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--surf2); font-style: normal; font-size: 1rem; }
.catnav a:hover { color: var(--ink); background: var(--surf2); transform: translateY(-1px); }
.catnav a.on { color: #fff; border-color: transparent; background: linear-gradient(135deg, rgba(124, 92, 255, 0.55), rgba(255, 79, 216, 0.45)); }
.catnav a.adult i { background: rgba(255, 90, 110, 0.18); }
.catnav a.adult.on { background: linear-gradient(135deg, rgba(255, 90, 110, 0.6), rgba(255, 79, 216, 0.4)); }

/* ── layout ── */
.pt-main { max-width: 1360px; margin: 0 auto; padding: 10px clamp(14px, 3vw, 36px) 40px; }
.pt-h1 { font: 800 clamp(1.5rem, 4vw, 2.3rem)/1.15 var(--display); margin: 14px 0 6px; letter-spacing: 0.02em; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 34px 0 14px; }
.row-head h2, .pt-h2 { display: flex; align-items: center; gap: 10px; margin: 0; font: 800 1.2rem/1.2 var(--display); letter-spacing: 0.03em; }
.row-head h2 small { font: 700 0.8rem var(--font); color: var(--ink3); padding: 3px 9px; border-radius: 999px; background: var(--surf); }
.row-head a { flex-shrink: 0; padding: 7px 14px; border-radius: 999px; background: var(--surf); border: 1px solid var(--edge); font-weight: 700; font-size: 0.88rem; text-decoration: none; color: var(--ink2); transition: background 0.15s, color 0.15s; }
.row-head a:hover { background: var(--surf2); color: var(--ink); }
.listhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 16px; }
.muted { color: var(--ink3); }
.small { font-size: 0.85rem; }

/* ── game cards ── */
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 16px; }
.ggrid.row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(178px, 210px); overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 4px 12px; margin: -4px; scrollbar-width: none; }
.ggrid.row::-webkit-scrollbar { display: none; }
.gcard { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--bg1); text-decoration: none; scroll-snap-align: start; isolation: isolate;
  box-shadow: 0 6px 18px rgba(5, 3, 20, 0.45); transition: transform 0.22s cubic-bezier(.2, .8, .2, 1), box-shadow 0.22s; }
.gcard img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: linear-gradient(135deg, #1d1a44, #2a1e47); transition: transform 0.4s ease; }
.gcard span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-weight: 800; font-size: 0.95rem; line-height: 1.15; color: #fff; background: linear-gradient(transparent, rgba(8, 6, 24, 0.92)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard .playic { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -38px 0 0 -26px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; font-style: normal; font-size: 1.1rem; padding-left: 3px; box-sizing: border-box; opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.25s cubic-bezier(.2, .9, .3, 1.4); box-shadow: 0 8px 24px rgba(255, 79, 216, 0.5); }
.gcard::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid transparent; transition: border-color 0.2s; pointer-events: none; }
.gcard:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(124, 92, 255, 0.35); z-index: 1; }
.gcard:hover img { transform: scale(1.06); }
.gcard:hover .playic { opacity: 1; transform: scale(1); }
.gcard:hover::after { border-color: rgba(255, 255, 255, 0.35); }
.trb { position: absolute; top: 8px; left: 8px; padding: 3px 7px; border-radius: 7px; font: 800 0.68rem/1 var(--display); font-style: normal; color: #fff; background: #e30a17; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); letter-spacing: 0.05em; }

/* ── home: featured showcase ── */
.showcase { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; margin-top: 8px; }
.hero { position: relative; border-radius: 26px; overflow: hidden; min-height: 360px; background: var(--bg1); box-shadow: var(--shadow); isolation: isolate; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; display: flex; align-items: flex-end; text-decoration: none; }
.hero-slide.on { opacity: 1; z-index: 1; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s ease; z-index: -1; }
.hero-slide.on img { transform: scale(1.12); }
.hero-slide::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 6, 24, 0.95) 0%, rgba(8, 6, 24, 0.78) 38%, rgba(8, 6, 24, 0.2) 70%, transparent 85%), linear-gradient(0deg, rgba(8, 6, 24, 0.9), transparent 60%); }
.hero-copy { padding: clamp(18px, 4vw, 40px); max-width: 520px; display: flex; flex-direction: column; gap: 10px; }
.hero-kicker { align-self: flex-start; padding: 5px 11px; border-radius: 999px; font: 800 0.72rem var(--display); letter-spacing: 0.12em; color: #fff; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px); }
.hero-copy h2 { margin: 0; font: 900 clamp(1.7rem, 4vw, 2.8rem)/1.05 var(--display); text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5); }
.hero-copy p { margin: 0; color: #ddd8ff; font-size: 1.05rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-dots { position: absolute; right: 18px; bottom: 18px; z-index: 2; display: flex; gap: 7px; }
.hero-dots button { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.35); cursor: pointer; transition: width 0.3s, background 0.3s; }
.hero-dots button.on { width: 26px; background: #fff; }
.play-cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px 13px 14px; border: 0; border-radius: 999px; background: var(--grad); color: #fff; font: 800 1.05rem var(--display); letter-spacing: 0.06em; cursor: pointer; text-decoration: none; box-shadow: 0 10px 30px rgba(255, 79, 216, 0.45); transition: transform 0.15s, box-shadow 0.15s; }
.play-cta i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); font-style: normal; font-size: 0.85rem; padding-left: 2px; box-sizing: border-box; }
.play-cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 36px rgba(255, 79, 216, 0.6); }
.side-tiles { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.tile { position: relative; border-radius: 22px; overflow: hidden; text-decoration: none; display: flex; align-items: flex-end; padding: 18px; min-height: 160px; isolation: isolate; box-shadow: var(--shadow); transition: transform 0.2s; }
.tile:hover { transform: translateY(-3px); }
.tile img, .tile canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 6, 24, 0.9), rgba(8, 6, 24, 0.1) 70%); }
.tile b { display: block; font: 900 1.35rem var(--display); }
.tile small { color: #ddd8ff; font-size: 0.92rem; }
.tile .badge { position: absolute; top: 12px; left: 12px; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 8px; font: 800 0.68rem var(--display); letter-spacing: 0.1em; color: #1a0f00; background: linear-gradient(135deg, #ffe08a, #ffb547); }

/* originals strip */
.orig { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) and (min-width: 761px) { .orig { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ocard { position: relative; border-radius: var(--r); overflow: hidden; text-decoration: none; background: var(--bg1); aspect-ratio: 3 / 4; display: flex; align-items: flex-end; isolation: isolate; box-shadow: 0 6px 18px rgba(5, 3, 20, 0.45); transition: transform 0.2s, box-shadow 0.2s; }
.ocard canvas, .ocard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ocard::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 6, 24, 0.95), transparent 60%); }
.ocard div { padding: 12px; }
.ocard b { display: block; font: 800 1rem var(--display); }
.ocard small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink2); font-size: 0.82rem; line-height: 1.2; margin-top: 3px; }
.ocard:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(255, 181, 71, 0.25); }
.ocard::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255, 213, 128, 0.25); pointer-events: none; }
.online { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(62, 224, 143, 0.12); color: var(--ok); font-weight: 800; font-size: 0.88rem; }
.online::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: blink 1.6s infinite; }
.online[hidden] { display: none; }
@keyframes blink { 50% { opacity: 0.35; } }

/* ── list pages ── */
.sorter { display: flex; gap: 4px; margin-left: auto; padding: 4px; border-radius: 999px; background: var(--surf); border: 1px solid var(--edge); }
.sorter a { padding: 7px 14px; border-radius: 999px; color: var(--ink2); text-decoration: none; font-weight: 800; font-size: 0.88rem; }
.sorter a.on { background: var(--grad); color: #fff; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 30px 0; font-weight: 700; color: var(--ink2); }
.pager a { padding: 10px 18px; border-radius: 999px; background: var(--surf2); border: 1px solid var(--edge); text-decoration: none; font-weight: 800; }
.pager a:hover { background: rgba(124, 92, 255, 0.35); }
.empty { color: var(--ink2); font-size: 1.1rem; }

/* ── game page ── */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.9rem; color: var(--ink3); margin: 6px 0 14px; }
.crumbs a { color: var(--ink2); text-decoration: none; font-weight: 700; }
.crumbs a:hover { color: var(--ink); }
.crumbs i { font-style: normal; opacity: 0.5; }
.gpage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.stage { position: relative; isolation: isolate; }
.stage::before { content: ''; position: absolute; inset: -30px; z-index: -1; background: var(--bg) center / cover; filter: blur(60px) saturate(1.4); opacity: 0.45; border-radius: 40px; }
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 76vh; margin: 0 auto; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); border: 1px solid var(--edge); }
.player.vert { aspect-ratio: 9 / 16; max-width: min(100%, calc(76vh * 9 / 16)); }
.player .pbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) brightness(0.45) saturate(1.3); transform: scale(1.15); }
.pstart { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 18px; text-align: center; }
.pstart .pthumb { width: min(300px, 55%); aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.15); }
.pstart b { font: 900 clamp(1.2rem, 3vw, 2rem) var(--display); text-shadow: 0 2px 12px #000; }
.pstart .play-cta { align-self: center; font-size: 1.2rem; padding: 15px 34px 15px 16px; }
.pstart small { color: #cfcaf0; font-size: 0.78rem; max-width: 440px; opacity: 0.85; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player:fullscreen { max-height: none; max-width: none; border-radius: 0; border: 0; }
.pbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 18px 0 6px; }
.pbar h1 { margin: 0 0 8px; font: 900 clamp(1.3rem, 3.4vw, 2rem)/1.1 var(--display); }
.pbar-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.iconbtn { flex-shrink: 0; padding: 10px 16px; border-radius: 14px; background: var(--surf2); border: 1px solid var(--edge); color: var(--ink); font: 800 0.9rem var(--font); cursor: pointer; transition: background 0.15s; }
.iconbtn:hover { background: rgba(124, 92, 255, 0.35); }
.iconbtn[hidden] { display: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; background: rgba(124, 92, 255, 0.18); border: 1px solid rgba(124, 92, 255, 0.4); text-decoration: none; font-size: 0.85rem; font-weight: 800; color: #e6e0ff; }
.chip:hover { background: rgba(124, 92, 255, 0.32); }
.chip.ghost { background: transparent; border-color: var(--edge); color: var(--ink3); font-weight: 700; }
.chip.tr { background: rgba(227, 10, 23, 0.2); border-color: rgba(227, 10, 23, 0.55); }
.pinfo { display: grid; gap: 12px; margin-top: 14px; }
.pcard { padding: 16px 18px; border-radius: var(--r); background: var(--surf); border: 1px solid var(--edge); }
.pcard h2 { margin: 0 0 6px; font: 800 0.95rem var(--display); letter-spacing: 0.05em; color: var(--ink2); }
.pcard p { margin: 0; line-height: 1.5; color: #dcd8f5; }
.tagbox { display: flex; flex-wrap: wrap; gap: 6px; }
.gside { position: sticky; top: 140px; display: grid; gap: 10px; padding: 14px; border-radius: 22px; background: var(--surf); border: 1px solid var(--edge); }
.side-h { margin: 2px 4px 4px; font: 800 1rem var(--display); }
.mini { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; padding: 6px; border-radius: 14px; text-decoration: none; font-weight: 800; font-size: 0.92rem; line-height: 1.2; transition: background 0.15s; }
.mini img { width: 96px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.mini:hover { background: var(--surf2); }

/* ── age gate ── */
.gate { display: flex; justify-content: center; padding: 30px 0 60px; }
.gate-card { width: min(460px, 100%); padding: 30px 24px; border-radius: 26px; background: rgba(19, 17, 46, 0.9); border: 1px solid rgba(255, 90, 110, 0.4); box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; gap: 12px; }
.gate-icon { font-size: 3rem; }
.gate-card form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.gate-card .input { width: 100%; box-sizing: border-box; }
.gate-card .chk { display: flex; gap: 8px; font-size: 0.85rem; color: var(--ink2); align-items: flex-start; }
.gate-card [hidden] { display: none !important; }
.gate-card .btn { align-self: stretch; text-align: center; }
.gtabs { display: flex; gap: 4px; justify-content: center; padding: 4px; border-radius: 999px; background: var(--surf); align-self: center; }
.gtabs button { padding: 8px 18px; border-radius: 999px; border: 0; background: transparent; color: var(--ink2); font: 800 0.9rem var(--font); cursor: pointer; }
.gtabs button.on { background: var(--grad); color: #fff; }
.gerr { color: var(--warn); margin: 0; font-weight: 700; }

/* ── footer & cookie bar ── */
.pt-foot { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; max-width: 1360px; margin: 40px auto 0; padding: 26px clamp(14px, 3vw, 36px) 40px; border-top: 1px solid var(--edge); color: var(--ink3); font-size: 0.9rem; }
.foot-brand { display: flex; align-items: center; gap: 10px; font: 800 1rem var(--display); color: var(--ink2); }
.foot-brand .logo-mark { width: 28px; height: 28px; border-radius: 9px; font-size: 0.95rem; }
.pt-foot { position: relative; }
.credit { position: absolute; right: clamp(14px, 3vw, 36px); bottom: 14px; font-size: 0.68rem; color: var(--ink3); opacity: 0.6; letter-spacing: 0.02em; }
.pt-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pt-foot a { color: var(--ink3); text-decoration: none; }
.pt-foot a:hover { color: var(--ink); }
.consent { position: fixed; left: 14px; bottom: 14px; z-index: 60; max-width: 340px; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 18px; background: rgba(19, 17, 46, 0.97); border: 1px solid var(--edge); box-shadow: var(--shadow); backdrop-filter: blur(10px); animation: rin2 0.4s ease-out; }
.consent p { margin: 0; font-size: 0.92rem; color: var(--ink); font-weight: 700; }
.consent div { display: flex; gap: 8px; }
.consent .btn { border-radius: 12px; padding: 8px 16px; }
.consent .btn:not(.ghost) { background: var(--grad); border: 0; color: #fff; box-shadow: none; }
@keyframes rin2 { from { opacity: 0; transform: translateY(16px); } }
.cookie-panel { max-width: 1360px; margin: 0 auto 30px; padding: 16px 20px; border-radius: 18px; background: var(--surf); border: 1px solid var(--edge); display: flex; flex-direction: column; gap: 8px; box-sizing: border-box; width: calc(100% - 2 * clamp(14px, 3vw, 36px)); }
.cookie-panel[hidden] { display: none; }
.cookie-panel b { font: 800 1rem var(--display); }
.cookie-panel p { margin: 0; color: var(--ink2); line-height: 1.5; font-size: 0.92rem; }
.cookie-panel div { display: flex; flex-wrap: wrap; gap: 16px; }
.cookie-panel a { color: #c9b8ff; font-size: 0.9rem; }
@media (max-width: 640px) { .consent { left: 10px; right: 10px; max-width: none; flex-direction: row; align-items: center; padding: 10px 12px; } .consent p { flex: 1; font-size: 0.85rem; } .consent .btn { padding: 7px 11px; font-size: 0.8rem; } }

/* ── responsive ── */
@media (max-width: 760px) { .orig { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ocard { aspect-ratio: 1 / 1; } }
@media (max-width: 960px) {
  .showcase { grid-template-columns: 1fr; }
  .side-tiles { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .gpage { grid-template-columns: 1fr; }
  .gside { position: static; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .side-h { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pt-head { gap: 10px; padding: 10px 12px; }
  .logo-word { display: none; }
  .portal .lang-switch { display: none; }
  .pt-search input { height: 40px; font-size: 0.95rem; }
  .catnav { padding: 10px 12px 4px; gap: 8px; }
  .catnav a { padding: 6px 12px 6px 6px; font-size: 0.85rem; border-radius: 12px; }
  .catnav a i { width: 26px; height: 26px; border-radius: 8px; font-size: 0.9rem; }
  .pt-main { padding: 6px 12px 30px; }
  .hero { min-height: 260px; border-radius: 20px; }
  .hero-copy p { display: none; }
  .side-tiles { gap: 10px; }
  .tile { min-height: 120px; padding: 12px; border-radius: 16px; }
  .tile b { font-size: 1.05rem; }
  .tile small { display: none; }
  .orig { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ocard small { display: none; }
  .ocard b { font-size: 0.82rem; }
  .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ggrid.row { grid-auto-columns: 148px; gap: 10px; }
  .gcard span { font-size: 0.82rem; padding: 20px 9px 8px; }
  .gcard .playic { display: none; }
  .row-head { margin: 26px 0 10px; }
  .row-head h2 { font-size: 1.02rem; }
  .player { border-radius: 14px; }
  .pbar { flex-direction: column; }
  .stage::before { inset: -10px; }
}

/* admin dashboard */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 16px 0; }
.kpi { padding: 16px; border-radius: var(--r); background: var(--surf); border: 1px solid var(--edge); display: flex; flex-direction: column; gap: 2px; }
.kpi b { font: 900 1.9rem var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi span { font-weight: 800; }
.kpi small { color: var(--ink3); }
.chart { width: 100%; height: auto; max-height: 220px; }
.chart text { fill: var(--ink3); font-size: 9px; font-family: var(--font); }
.stgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
table.st { width: 100%; border-collapse: collapse; }
table.st td { padding: 7px 4px; border-bottom: 1px solid var(--edge); }
table.st td:last-child { text-align: right; font-weight: 800; }
table.st a { color: var(--ink); text-decoration: none; }

.intro { max-width: 820px; margin: -6px 0 18px; color: var(--ink2); line-height: 1.5; }
.foot-cats { max-width: 1360px; margin: 40px auto 0; padding: 0 clamp(14px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; }
.foot-cats a { color: var(--ink3); text-decoration: none; }
.foot-cats a:hover { color: var(--ink); }
.foot-cats + .pt-foot { margin-top: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* account button, menu and sign-in window */
.acct { position: relative; flex-shrink: 0; }
.acct-login { height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--grad); color: #fff; font: 800 0.95rem var(--font); cursor: pointer; box-shadow: 0 6px 18px rgba(255, 79, 216, 0.35); white-space: nowrap; }
.acct-me { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid var(--edge); background: var(--surf2); color: var(--ink); font: 800 0.92rem var(--font); cursor: pointer; }
.acct-me .av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--display); }
.acct-me .nm { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 8px; border-radius: 16px; background: rgba(19, 17, 46, 0.98); border: 1px solid var(--edge); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; z-index: 40; }
.acct-menu[hidden] { display: none; }
.acct-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--edge); margin-bottom: 4px; }
.acct-head b { display: block; }
.acct-head small { color: var(--ink3); }
.acct-menu a, .acct-menu button { text-align: left; padding: 9px 10px; border-radius: 10px; border: 0; background: none; color: var(--ink); font: 700 0.95rem var(--font); text-decoration: none; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--surf2); }
.amodal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(5, 3, 20, 0.7); backdrop-filter: blur(6px); }
.amodal[hidden] { display: none; }
.abox { position: relative; width: min(420px, 100%); max-height: 92vh; overflow: auto; padding: 24px 22px; border-radius: 24px; background: #15123a; border: 1px solid rgba(124, 92, 255, 0.45); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.aclose { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surf2); color: var(--ink); cursor: pointer; }
.ahead { display: flex; gap: 12px; align-items: center; padding-right: 30px; }
.ahead b { display: block; font: 800 1.1rem var(--display); }
.ahead small { color: var(--ink2); font-size: 0.86rem; line-height: 1.3; display: block; margin-top: 3px; }
.gbtn { display: flex; justify-content: center; min-height: 44px; }
.gbtn[hidden], .aor[hidden], .amodal [hidden] { display: none !important; }
.aor { text-align: center; color: var(--ink3); font-size: 0.85rem; display: flex; align-items: center; gap: 10px; }
.aor::before, .aor::after { content: ''; flex: 1; height: 1px; background: var(--edge); }
#aForm { display: flex; flex-direction: column; gap: 10px; }
#aForm .input { width: 100%; box-sizing: border-box; }
#aForm .chk { display: flex; gap: 8px; align-items: flex-start; font-size: 0.85rem; color: var(--ink2); }
#aForm .chk a { color: var(--ink); }
#aForm .btn { width: 100%; background: var(--grad); border: 0; color: #fff; box-shadow: none; }
.aforgot { align-self: center; color: var(--ink3); font-size: 0.88rem; }
.aerr { margin: 0; color: var(--warn); font-weight: 700; }
.aok { margin: 0; color: var(--ok); font-weight: 700; }
@media (max-width: 640px) { .acct-login { height: 36px; padding: 0 12px; font-size: 0.85rem; } .acct-me .nm { display: none; } .acct-me { padding: 0 3px; } }

/* blog */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.bcard { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--surf); border: 1px solid var(--edge); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.bcard:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(124, 92, 255, 0.3); }
.bcard img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg1); }
.bcard div { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.bcard small { color: var(--ink3); font-weight: 700; }
.bcard b { font: 800 1.08rem/1.25 var(--display); }
.bcard p { margin: 0; color: var(--ink2); font-size: 0.92rem; line-height: 1.4; }
.post { max-width: 860px; margin: 0 auto 10px; font-size: 1.08rem; line-height: 1.65; color: #e3dff8; }
.post header small { color: var(--ink3); font-weight: 700; }
.post .lead { font-size: 1.15rem; color: var(--ink2); margin-top: 0; }
.post h2 { font: 800 1.35rem/1.25 var(--display); margin: 34px 0 10px; color: var(--ink); }
.post a { color: #c9b8ff; text-decoration: underline; text-decoration-color: rgba(201, 184, 255, 0.4); text-underline-offset: 3px; }
.post ul, .post ol { padding-left: 22px; }
.post li { margin: 6px 0; }
.post .ggrid { margin: 16px 0 6px; }
.post .ggrid a { text-decoration: none; }
.pcard details { margin-top: 10px; color: var(--ink3); }
.pcard summary { cursor: pointer; font-weight: 700; font-size: 0.88rem; }
.pcard details p { color: var(--ink2); margin-top: 6px; }

/* install */
.install-btn { flex-shrink: 0; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(124, 92, 255, 0.6); background: rgba(124, 92, 255, 0.18); color: var(--ink); font: 800 0.88rem var(--font); cursor: pointer; }
.install-btn[hidden] { display: none; }
.ios-tip { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(19, 17, 46, 0.97); border: 1px solid rgba(124, 92, 255, 0.5); box-shadow: var(--shadow); }
.ios-tip img { width: 40px; height: 40px; border-radius: 10px; }
.ios-tip p { margin: 0; flex: 1; font-size: 0.88rem; color: var(--ink2); }
.ios-tip button { padding: 8px 14px; border-radius: 12px; border: 0; background: var(--grad); color: #fff; font-weight: 800; }
@media (max-width: 640px) { .install-btn b { display: none; } .install-btn { padding: 0 10px; height: 36px; } }

.pacts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.iconbtn.on { background: rgba(255, 79, 216, 0.22); border-color: rgba(255, 79, 216, 0.6); }
.iconbtn b { font-weight: 900; }

.reward { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 75; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 22px; border-radius: 18px; background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(255, 79, 216, 0.95)); color: #fff; box-shadow: 0 14px 40px rgba(255, 79, 216, 0.45); animation: rin 0.5s cubic-bezier(.2, .9, .3, 1.3); transition: opacity 0.6s, transform 0.6s; text-align: center; }
.reward b { font: 900 1.1rem var(--display); }
.reward span { font-weight: 800; }
.reward small { opacity: 0.9; font-size: 0.8rem; }
.reward.out { opacity: 0; transform: translate(-50%, -20px); }
@keyframes rin { from { opacity: 0; transform: translate(-50%, -30px) scale(0.9); } }

/* profile */
.pf-head { display: flex; gap: 22px; align-items: center; padding: 22px; margin-top: 10px; border-radius: 24px; background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(255, 79, 216, 0.12)); border: 1px solid var(--edge); }
.pf-av { flex-shrink: 0; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 28px; background: var(--grad); font: 900 2.6rem var(--display); color: #fff; box-shadow: 0 12px 30px rgba(255, 79, 216, 0.4); }
.pf-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pf-main .pt-h1 { margin: 0; }
.pf-lv { display: flex; gap: 12px; align-items: baseline; }
.pf-lv b { font: 800 1.1rem var(--display); }
.pf-lv span { color: var(--ink2); font-weight: 700; }
.pf-bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.pf-bar i { display: block; height: 100%; background: var(--grad); border-radius: inherit; }
.pf-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }
.pf-stats span { font-weight: 700; }
.pf-stats em { font-style: normal; color: var(--ink3); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge-tile { padding: 14px 12px; border-radius: 16px; background: var(--surf); border: 1px solid var(--edge); text-align: center; display: flex; flex-direction: column; gap: 4px; filter: grayscale(1); opacity: 0.45; }
.badge-tile.on { filter: none; opacity: 1; background: linear-gradient(160deg, rgba(255, 181, 71, 0.18), rgba(124, 92, 255, 0.12)); border-color: rgba(255, 181, 71, 0.45); }
.badge-tile i { font-style: normal; font-size: 2rem; }
.badge-tile b { font-size: 0.95rem; }
.badge-tile small { color: var(--ink3); font-size: 0.78rem; }
.pf-acct { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.pf-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pf-row .input { max-width: 260px; }
.btn.danger { color: var(--warn); border-color: rgba(255, 90, 110, 0.5); }
@media (max-width: 640px) { .pf-head { flex-direction: column; text-align: center; } .pf-lv, .pf-stats { justify-content: center; } }
