/* Pop717 Game theme – main styles. Palette matched to the Pop717 app screenshots (lavender UI, indigo-blue buttons, gold accents). */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-extrabold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
	--bg: #F3F4FF;
	--lav: #E6E9FF;
	--lav2: #D9DEFF;
	--card: #FFFFFF;
	--ink: #23214A;
	--text: #3C3B57;
	--muted: #5F6283;
	--pri: #5B5FE8;
	--pri-d: #4547C9;
	--pri2: #5B7FEA;
	--grad: linear-gradient(135deg, #465CC7 0%, #464DC5 55%, #4547C9 100%);
	--gold: #F5B83D;
	--gold-d: #E29A13;
	--border: #DCE0FA;
	--radius: 16px;
	--radius-s: 10px;
	--shadow: 0 10px 30px rgba(68, 72, 170, .12);
	--wrap: 1180px;
	--header-h: 68px;
	--fs-body: clamp(1rem, .96rem + .2vw, 1.0625rem);
	--fs-h1: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
	--fs-h2: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem);
	--fs-h3: clamp(1.125rem, 1rem + .5vw, 1.3125rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
	margin: 0;
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: var(--fs-body);
	line-height: 1.7;
	color: var(--text);
	background: var(--bg);
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pri-d); text-underline-offset: 3px; }
a:hover { color: var(--pri); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.pop7-skip:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; background: #fff; padding: 10px 14px; border-radius: 8px; }

.pop7-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 28px); }

/* Buttons */
.pop7-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 10px 22px; border-radius: 999px;
	font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
	border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
	white-space: nowrap;
}
.pop7-btn:hover { transform: translateY(-1px); }
.pop7-btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(91, 95, 232, .32); }
.pop7-btn--primary:hover { color: #fff; box-shadow: 0 10px 24px rgba(91, 95, 232, .42); }
.pop7-btn--ghost { background: #fff; color: var(--pri-d); border-color: var(--pri2); }
.pop7-btn--ghost:hover { background: var(--lav); color: var(--pri-d); }
.pop7-btn--gold { background: linear-gradient(180deg, #FFD36B, var(--gold)); color: #3A2600; box-shadow: 0 8px 18px rgba(226, 154, 19, .35); }
.pop7-btn--gold:hover { color: #3A2600; }
.pop7-btn--light { background: #fff; color: var(--pri-d); }
.pop7-btn--light:hover { color: var(--pri-d); background: var(--lav); }

.pop7-cta-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 440px; }
.pop7-cta-row .pop7-btn { width: 100%; padding-left: 12px; padding-right: 12px; white-space: normal; }

/* Header */
.pop7-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.admin-bar .pop7-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .pop7-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .pop7-header { top: 0; } }
.pop7-header__in { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.pop7-brand { flex: 0 0 auto; }
.pop7-brand img, .pop7-brand .custom-logo { width: auto; height: 42px; max-width: 170px; object-fit: contain; }
.pop7-logo { display: inline-flex; align-items: center; }
.pop7-nav { flex: 1 1 auto; min-width: 0; }
.pop7-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.pop7-menu a { display: block; padding: 8px 10px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.pop7-menu a:hover, .pop7-menu .current-menu-item > a { background: var(--lav); color: var(--pri-d); }
.pop7-menu > li { position: relative; }
.pop7-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 180px; list-style: none; margin: 0; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.pop7-menu li:hover > .sub-menu, .pop7-menu li:focus-within > .sub-menu { display: block; }
.pop7-header__cta { display: flex; gap: 8px; flex: 0 0 auto; }
.pop7-header__cta .pop7-btn { min-height: 40px; padding: 8px 18px; font-size: .9375rem; }
.pop7-burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--border); background: #fff; border-radius: 12px; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.pop7-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.pop7-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.pop7-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pop7-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1100px) {
	.pop7-menu a { padding: 8px 7px; font-size: .875rem; }
}
@media (max-width: 960px) {
	.pop7-burger { display: flex; }
	.pop7-header__cta { display: none; }
	.pop7-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
	.pop7-nav.is-open { display: block; }
	.pop7-menu { flex-direction: column; padding: 10px clamp(16px, 4vw, 28px) 16px; gap: 2px; }
	.pop7-menu .sub-menu { display: block; position: static; padding: 0 0 0 14px; border: 0; box-shadow: none; }
	.pop7-menu a { padding: 12px 14px; font-size: 1rem; border-radius: 12px; }
	.pop7-brand img, .pop7-brand .custom-logo { height: 38px; }
}

/* Ticker */
.pop7-ticker { display: flex; align-items: stretch; background: var(--ink); color: #fff; font-size: .9rem; overflow: hidden; }
.pop7-ticker__tag { flex: 0 0 auto; display: flex; align-items: center; padding: 8px 14px; background: var(--gold); color: #3A2600; font-weight: 700; text-transform: uppercase; font-size: .75rem; letter-spacing: .06em; position: relative; z-index: 1; }
.pop7-ticker__toggle { flex: 0 0 40px; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.pop7-ticker__toggle:focus-visible { outline-offset: -4px; }
.pop7-ticker.is-paused .pop7-ticker__track { animation: none; }
.pop7-ticker.is-paused .pop7-ticker__view { overflow-x: auto; }
.pop7-ticker.is-paused .pop7-ticker__list[aria-hidden="true"] { display: none; }
.pop7-ticker__view { flex: 1 1 auto; overflow: hidden; min-width: 0; }
.pop7-ticker__track { display: flex; width: max-content; animation: pop7-marquee 40s linear infinite; }
.pop7-ticker:hover .pop7-ticker__track, .pop7-ticker:focus-within .pop7-ticker__track { animation-play-state: paused; }
.pop7-ticker__list { display: flex; list-style: none; margin: 0; padding: 0; flex: 0 0 auto; }
.pop7-ticker__list li { padding: 8px 26px; white-space: nowrap; position: relative; }
.pop7-ticker__list li::after { content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--gold); }
@keyframes pop7-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.pop7-ticker__track { animation: none; }
	.pop7-ticker__view { overflow-x: auto; }
	.pop7-ticker__toggle, .pop7-ticker__list[aria-hidden="true"] { display: none; }
	.pop7-btn { transition: none; }
}

/* Hero (front page) */
.pop7-hero { background: radial-gradient(1200px 500px at 85% -10%, #C9D3FF 0%, transparent 60%), linear-gradient(180deg, var(--lav) 0%, var(--bg) 100%); padding: clamp(28px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); }
.pop7-hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.pop7-eyebrow { display: inline-block; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--pri-d); border: 1px solid var(--border); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pop7-hero__h1, .pop7-phero__h1 { font-size: var(--fs-h1); line-height: 1.18; color: var(--ink); margin: 0 0 16px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pop7-hero__lead, .pop7-phero__lead { font-size: clamp(1.03rem, .98rem + .3vw, 1.18rem); color: var(--muted); margin: 0 0 22px; max-width: 60ch; }
.pop7-hero__date { margin: -8px 0 14px; color: var(--muted); font-size: .875rem; }
.pop7-hero__cta { margin-bottom: 20px; }
.pop7-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pop7-chips li { padding: 6px 12px; background: #fff; border: 1px solid var(--border); border-radius: 999px; font-size: .875rem; font-weight: 600; color: var(--ink); }
.pop7-hero__media img { width: 100%; border-radius: 22px; box-shadow: 0 18px 50px rgba(57, 60, 160, .25); aspect-ratio: 2 / 1; object-fit: cover; }

/* Page hero */
.pop7-phero { background: linear-gradient(180deg, var(--lav) 0%, var(--bg) 100%); padding: clamp(20px, 4vw, 44px) 0 clamp(22px, 3.5vw, 36px); }
.pop7-phero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(18px, 4vw, 44px); align-items: center; }
.pop7-phero__in.is-plain { grid-template-columns: minmax(0, 1fr); }
.pop7-phero__media img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); aspect-ratio: 1200 / 630; object-fit: cover; }
.pop7-crumbs ol { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; color: var(--muted); }
.pop7-crumbs li + li::before { content: "/"; margin-right: 6px; color: #A3A7C9; }
.pop7-crumbs a { color: var(--pri-d); text-decoration: none; }

@media (max-width: 960px) {
	.pop7-hero__in, .pop7-phero__in { grid-template-columns: minmax(0, 1fr); }
	.pop7-cta-row { max-width: none; }
}

/* Article content */
.pop7-page { padding-top: clamp(24px, 4vw, 44px); padding-bottom: clamp(32px, 5vw, 56px); }
.pop7-article { max-width: 860px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: clamp(20px, 4.5vw, 52px); box-shadow: 0 6px 24px rgba(68, 72, 170, .06); }
.pop7-content > * + *, .pop7-article > * + * { margin-top: 1.15em; }
.pop7-content p, .pop7-content ul, .pop7-content ol { margin: 0; }
.pop7-content p + p { margin-top: 1em; }
.pop7-content h2 { font-size: var(--fs-h2); line-height: 1.3; color: var(--ink); margin: 2em 0 .7em; font-weight: 700; padding-top: .2em; }
.pop7-content h3 { font-size: var(--fs-h3); line-height: 1.35; color: var(--ink); margin: 1.6em 0 .55em; font-weight: 700; }
.pop7-content h2:first-child, .pop7-content > :first-child { margin-top: 0; }
.pop7-content ul, .pop7-content ol { padding-left: 1.35em; }
.pop7-content li + li { margin-top: .45em; }
.pop7-content li::marker { color: var(--pri); font-weight: 700; }
.pop7-content strong { color: var(--ink); }
.pop7-content a { font-weight: 600; }

.pop7-answer { background: linear-gradient(135deg, #EEF1FF, #E3E8FF); border-left: 5px solid var(--pri); border-radius: var(--radius); padding: 18px 20px; }
.pop7-answer p { margin: 0; }
.pop7-note { background: #FFF7E3; border: 1px solid #F6DD9F; border-radius: var(--radius); padding: 16px 18px; color: #5A4511; }

ol.pop7-steps { list-style: none; counter-reset: pop7s; padding-left: 0; }
ol.pop7-steps > li { counter-increment: pop7s; position: relative; padding: 12px 14px 12px 58px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; }
ol.pop7-steps > li + li { margin-top: 10px; }
ol.pop7-steps > li::before { content: counter(pop7s); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; line-height: 1; }

.pop7-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 14px; }
.pop7-table-wrap table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .9375rem; }
.pop7-table-wrap th, .pop7-table-wrap td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.pop7-table-wrap th { background: var(--lav); color: var(--ink); font-weight: 700; }
.pop7-table-wrap tr:last-child td { border-bottom: 0; }
.pop7-table-wrap tbody tr:nth-child(even) td { background: #FAFBFF; }

.pop7-figure { margin: 1.6em auto; max-width: 360px; text-align: center; }
.pop7-figure img { border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow); margin: 0 auto; }
.pop7-figure figcaption { font-size: .875rem; color: var(--muted); margin-top: 10px; }

.pop7-inline-cta { margin: 1.6em 0 !important; }
.pop7-cta-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 460px; }
.pop7-cta-pair .pop7-btn { width: 100%; padding-left: 10px; padding-right: 10px; white-space: normal; }
.pop7-content .pop7-btn { font-weight: 700; }
.pop7-content a.pop7-btn--primary { color: #fff; }

.pop7-faq { display: grid; gap: 10px; }
.pop7-faq-item { border: 1px solid var(--border); border-radius: 14px; background: #fff; overflow: hidden; }
.pop7-faq-item + .pop7-faq-item { margin-top: 0; }
.pop7-faq-item summary { cursor: pointer; list-style: none; padding: 15px 50px 15px 18px; font-weight: 600; color: var(--ink); position: relative; }
.pop7-faq-item summary::-webkit-details-marker { display: none; }
.pop7-faq-item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--lav); color: var(--pri-d); display: grid; place-items: center; font-weight: 700; line-height: 1; }
.pop7-faq-item[open] summary::after { content: "–"; }
.pop7-faq-item[open] summary { background: var(--bg); }
.pop7-faq-a { padding: 4px 18px 16px; }

.pop7-support-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }

.pop7-directory { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.pop7-dir-group { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.pop7-dir-group h3 { margin: 0 0 8px !important; font-size: 1.05rem; }
.pop7-dir-group ul { list-style: none; padding: 0 !important; margin: 0; }
.pop7-dir-group li + li { margin-top: 4px; }
.pop7-dir-group a { text-decoration: none; }

.pop7-updated { font-size: .875rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 2em !important; }

.pop7-cards { display: grid; gap: 16px; }
.pop7-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.pop7-card h2 { margin: 0 0 6px; font-size: 1.2rem; }

/* CTA band */
.pop7-band { background: var(--grad); color: #fff; padding: clamp(26px, 4vw, 40px) 0; }
.pop7-band__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pop7-band__in > div:first-child { flex: 1 1 380px; min-width: 0; }
.pop7-band__title { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 800; margin: 0 0 6px; color: #fff; }
.pop7-band__text { margin: 0; color: #EEF1FF; }
.pop7-band .pop7-cta-row { flex: 1 1 300px; }

/* Footer */
.pop7-footer { background: #1E1C45; color: #C9CBEA; padding: clamp(32px, 5vw, 56px) 0 24px; font-size: .9375rem; }
.pop7-footer a { color: #E4E6FF; text-decoration: none; }
.pop7-footer a:hover { color: var(--gold); text-decoration: underline; }
.pop7-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 26px; }
.pop7-footer__brand img { height: 44px; width: auto; max-width: 180px; object-fit: contain; object-position: left; margin-bottom: 12px; }
.pop7-footer__brand p { margin: 0 0 10px; }
.pop7-footer__age strong { display: inline-block; background: var(--gold); color: #3A2600; border-radius: 6px; padding: 0 6px; margin-right: 4px; }
.pop7-footer__h { color: #fff; font-weight: 700; margin: 0 0 10px; }
.pop7-footer ul { list-style: none; margin: 0; padding: 0; }
.pop7-footer__col li + li { margin-top: 6px; }
.pop7-footer__help, .pop7-footer__others { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); }
.pop7-footer__inline { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pop7-footer__legal { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); }
.pop7-foot-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px !important; }
.pop7-footer__note { font-size: .85rem; color: #A9ACD3; margin: 0 0 10px; max-width: 90ch; }
.pop7-footer__copy { font-size: .85rem; color: #A9ACD3; margin: 0; }
@media (max-width: 960px) {
	.pop7-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pop7-footer__brand { grid-column: 1 / -1; }
}

/* Mobile sticky bar */
.pop7-sticky { display: none; }
@media (max-width: 960px) {
	.pop7-sticky { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(35, 33, 74, .96); box-shadow: 0 -6px 20px rgba(0, 0, 0, .18); }
	.pop7-sticky .pop7-btn { width: 100%; min-height: 46px; }
	body.pop7-has-sticky { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
	.pop7-btn { font-size: .9375rem; padding-left: 10px; padding-right: 10px; }
	.pop7-cta-row, .pop7-cta-pair { gap: 8px; }
	.pop7-article { border-radius: 16px; }
}

@media (max-width: 600px) {
	.pop7-article { padding: 20px 16px; border-radius: 18px; }
	.pop7-answer { padding: 14px 14px; border-left-width: 4px; }
	ol.pop7-steps > li { padding: 12px 12px 12px 52px; }
	ol.pop7-steps > li::before { left: 11px; }
	.pop7-faq-item summary { padding: 14px 46px 14px 14px; }
	.pop7-faq-a { padding: 4px 14px 14px; }
}
