/* =======================================================
   HOYA娛樂城 — Theme Stylesheet
   Luxury dark casino · midnight blue + champagne gold
   Mobile-first · semantic · performance optimized
   ======================================================= */

:root {
	--hoya-bg: #07080d;
	--hoya-bg-2: #0d1018;
	--hoya-bg-3: #131826;
	--hoya-surface: #161b29;
	--hoya-surface-2: #1d2336;
	--hoya-border: rgba(212, 175, 55, 0.18);
	--hoya-border-soft: rgba(255, 255, 255, 0.08);
	--hoya-text: #f4f1e6;
	--hoya-text-soft: #b9b3a3;
	--hoya-muted: #7a7768;
	--hoya-gold: #d4af37;
	--hoya-gold-2: #f3d57a;
	--hoya-gold-3: #b8911f;
	--hoya-ruby: #c0392b;
	--hoya-emerald: #1f8a70;
	--hoya-radius: 14px;
	--hoya-radius-lg: 22px;
	--hoya-shadow-gold: 0 14px 40px -12px rgba(212, 175, 55, 0.45);
	--hoya-shadow-card: 0 18px 50px -22px rgba(0, 0, 0, 0.7);
	--hoya-container: 1200px;
	--hoya-header-h: 72px;
}

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: var(--hoya-text);
	background: radial-gradient(ellipse at top, #0f1424 0%, var(--hoya-bg) 60%) fixed;
	overflow-x: hidden;
	padding-bottom: env(safe-area-inset-bottom);
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--hoya-gold-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--hoya-gold); }

h1, h2, h3, h4 {
	font-weight: 700;
	letter-spacing: 0.02em;
	margin: 0 0 .5em;
	line-height: 1.2;
	color: var(--hoya-text);
}
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }

p { margin: 0 0 1em; }

.hoya-container {
	max-width: var(--hoya-container);
	margin: 0 auto;
	padding: 0 20px;
}

@media (min-width: 768px) {
	.hoya-container { padding: 0 32px; }
}

/* ---------- Skip link ---------- */
.hoya-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--hoya-gold);
	color: #000;
	padding: 10px 16px;
	z-index: 9999;
}
.hoya-skip-link:focus { left: 16px; top: 16px; }

/* ---------- Buttons ---------- */
.hoya-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	min-height: 44px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .04em;
	cursor: pointer;
	border: 1px solid transparent;
	transition: transform .2s, box-shadow .2s, background .2s, color .2s;
	white-space: nowrap;
}
.hoya-btn--lg { padding: 16px 30px; min-height: 52px; font-size: 16px; }
.hoya-btn--block { display: flex; width: 100%; }

.hoya-btn--gold {
	background: linear-gradient(135deg, var(--hoya-gold-2), var(--hoya-gold) 50%, var(--hoya-gold-3));
	color: #1a1405;
	box-shadow: var(--hoya-shadow-gold);
}
.hoya-btn--gold:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 50px -10px rgba(212, 175, 55, 0.6);
	color: #000;
}

.hoya-btn--outline {
	background: rgba(255, 255, 255, 0.04);
	color: var(--hoya-text);
	border-color: rgba(255, 255, 255, 0.18);
}
.hoya-btn--outline:hover {
	border-color: var(--hoya-gold);
	color: var(--hoya-gold-2);
	background: rgba(212, 175, 55, 0.08);
}

.hoya-btn--ghost {
	background: transparent;
	color: var(--hoya-text);
	border-color: rgba(255, 255, 255, 0.18);
}
.hoya-btn--ghost:hover { border-color: var(--hoya-gold); color: var(--hoya-gold-2); }

.hoya-link-gold {
	color: var(--hoya-gold-2);
	font-weight: 600;
}

/* ---------- Header ---------- */
.hoya-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: rgba(7, 8, 13, 0.85);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--hoya-border-soft);
	padding-top: env(safe-area-inset-top);
}
.hoya-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--hoya-header-h);
}
.hoya-header__brand { display: flex; align-items: center; }
.hoya-logo {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	color: var(--hoya-text);
}
.hoya-logo__mark {
	font-family: "Cinzel", serif;
	font-weight: 800;
	font-size: 26px;
	letter-spacing: .12em;
	color: var(--hoya-gold-2);
	text-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}
.hoya-logo__sub { font-weight: 700; font-size: 16px; color: var(--hoya-text); }

.hoya-nav { flex: 1; display: none; }
.hoya-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 28px;
	justify-content: center;
}
.hoya-nav__list a {
	color: var(--hoya-text);
	font-weight: 500;
	font-size: 15px;
	padding: 8px 4px;
	border-bottom: 2px solid transparent;
	transition: color .2s, border-color .2s;
}
.hoya-nav__list a:hover { color: var(--hoya-gold-2); border-bottom-color: var(--hoya-gold); }

.hoya-header__cta { display: none; gap: 10px; align-items: center; }

.hoya-menu-toggle {
	margin-left: auto;
	width: 44px;
	height: 44px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 10px;
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.hoya-menu-toggle span {
	display: block;
	width: 20px; height: 2px;
	background: var(--hoya-gold-2);
	border-radius: 2px;
	transition: transform .2s, opacity .2s;
}
.hoya-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hoya-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hoya-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hoya-mobile-menu {
	border-top: 1px solid var(--hoya-border-soft);
	background: var(--hoya-bg-2);
	padding: 18px 20px calc(20px + env(safe-area-inset-bottom));
}
.hoya-mobile-menu nav { display: flex; flex-direction: column; gap: 14px; }
.hoya-mobile-menu nav a {
	color: var(--hoya-text);
	padding: 12px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	font-size: 16px;
	font-weight: 500;
}
.hoya-mobile-menu nav a.hoya-btn { border-bottom: none; margin-top: 6px; }

@media (min-width: 1024px) {
	.hoya-nav, .hoya-header__cta { display: flex; }
	.hoya-menu-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hoya-hero {
	position: relative;
	min-height: 92vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	padding: 80px 0 100px;
	isolation: isolate;
}
.hoya-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
	opacity: .55;
}
.hoya-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.12), transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(192, 57, 43, 0.10), transparent 60%),
		linear-gradient(180deg, #0a0d18 0%, #07080d 100%);
}
.hoya-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(7, 8, 13, 0) 0%, rgba(7, 8, 13, .85) 100%);
}
.hoya-hero__inner { max-width: 760px; }

.hoya-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--hoya-gold-2);
	background: rgba(212, 175, 55, 0.08);
	border: 1px solid var(--hoya-border);
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
}

.hoya-hero__title { margin: 28px 0 18px; }
.hoya-hero__title-en {
	display: block;
	font-family: "Cinzel", serif;
	font-size: clamp(2.6rem, 8vw, 5.2rem);
	font-weight: 800;
	letter-spacing: .12em;
	background: linear-gradient(180deg, var(--hoya-gold-2) 0%, var(--hoya-gold) 60%, var(--hoya-gold-3) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	text-shadow: 0 0 40px rgba(212, 175, 55, 0.25);
}
.hoya-hero__title-tw {
	display: block;
	margin-top: 6px;
	font-size: clamp(1.6rem, 4.6vw, 2.6rem);
	color: var(--hoya-text);
	font-weight: 700;
}
.hoya-hero__desc {
	color: var(--hoya-text-soft);
	font-size: clamp(15px, 1.8vw, 17px);
	max-width: 560px;
}
.hoya-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 30px; }
.hoya-hero__bullets {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 22px;
	color: var(--hoya-text-soft);
	font-size: 14px;
}
.hoya-hero__bullets li::before {
	content: "✦";
	color: var(--hoya-gold);
	margin-right: 6px;
}

/* ---------- Marquee ---------- */
.hoya-marquee {
	background: linear-gradient(90deg, #0a0d18, #131826, #0a0d18);
	border-block: 1px solid var(--hoya-border-soft);
	overflow: hidden;
	padding: 14px 0;
}
.hoya-marquee__track {
	display: flex;
	width: max-content;
	gap: 60px;
	animation: hoya-marquee 40s linear infinite;
}
.hoya-marquee__group {
	display: flex;
	gap: 60px;
	flex-shrink: 0;
}
.hoya-marquee__group span {
	color: var(--hoya-text-soft);
	font-size: 14px;
	white-space: nowrap;
}
.hoya-marquee__group strong { color: var(--hoya-gold-2); margin-right: 6px; }
@keyframes hoya-marquee {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.hoya-marquee__track { animation: none; }
}

/* ---------- Stats ---------- */
.hoya-stats { padding: 60px 0; }
.hoya-stats__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	text-align: center;
}
.hoya-stats__grid > div {
	background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
	border: 1px solid var(--hoya-border-soft);
	border-radius: var(--hoya-radius);
	padding: 24px 18px;
}
.hoya-stats__grid strong {
	display: block;
	font-family: "Cinzel", serif;
	font-size: clamp(1.4rem, 3.2vw, 2rem);
	color: var(--hoya-gold-2);
	font-weight: 800;
}
.hoya-stats__grid span {
	color: var(--hoya-text-soft);
	font-size: 13px;
	margin-top: 6px;
	display: block;
}
@media (min-width: 768px) {
	.hoya-stats__grid { grid-template-columns: repeat(4, 1fr); gap: 28px; }
}

/* ---------- Sections ---------- */
.hoya-section { padding: 80px 0; }
.hoya-section__head { text-align: center; margin-bottom: 50px; }
.hoya-section__head .hoya-eyebrow { margin-bottom: 14px; }
.hoya-section__head h2 { margin: 14px 0 10px; }
.hoya-section__head p { color: var(--hoya-text-soft); }

/* ---------- Games grid ---------- */
.hoya-games {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}
@media (min-width: 640px) { .hoya-games { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hoya-games { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.hoya-game-card {
	background: var(--hoya-surface);
	border: 1px solid var(--hoya-border-soft);
	border-radius: var(--hoya-radius-lg);
	overflow: hidden;
	box-shadow: var(--hoya-shadow-card);
	transition: transform .3s, border-color .3s, box-shadow .3s;
	display: flex;
	flex-direction: column;
}
.hoya-game-card:hover {
	transform: translateY(-6px);
	border-color: var(--hoya-gold);
	box-shadow: 0 24px 60px -22px rgba(212, 175, 55, 0.35);
}
.hoya-game-card__media {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: linear-gradient(135deg, #1a2238, #0e1322);
	position: relative;
}
.hoya-game-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s;
}
.hoya-game-card:hover .hoya-game-card__media img { transform: scale(1.06); }
.hoya-game-card__placeholder {
	width: 100%; height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Cinzel", serif;
	font-size: 80px;
	color: var(--hoya-gold);
	opacity: .6;
}
.hoya-game-card__body { padding: 22px 22px 24px; }
.hoya-game-card__body h3 { color: var(--hoya-gold-2); margin-bottom: 6px; }
.hoya-game-card__body p { color: var(--hoya-text-soft); font-size: 14px; min-height: 50px; }
.hoya-game-card__link { font-weight: 600; }

/* ---------- Trust ---------- */
.hoya-trust {
	background: linear-gradient(180deg, var(--hoya-bg-2), var(--hoya-bg));
}
.hoya-trust__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: start;
}
@media (min-width: 1024px) { .hoya-trust__grid { grid-template-columns: 1fr 1.2fr; gap: 60px; } }
.hoya-trust__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .hoya-trust__list { grid-template-columns: 1fr 1fr; } }
.hoya-trust__list li {
	background: rgba(255, 255, 255, 0.025);
	border: 1px solid var(--hoya-border-soft);
	border-left: 3px solid var(--hoya-gold);
	padding: 16px 18px;
	border-radius: 12px;
}
.hoya-trust__list strong { color: var(--hoya-gold-2); display: block; font-size: 16px; margin-bottom: 4px; }
.hoya-trust__list span { color: var(--hoya-text-soft); font-size: 14px; }

/* ---------- Promotions ---------- */
.hoya-promo-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}
@media (min-width: 640px) { .hoya-promo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hoya-promo-grid { grid-template-columns: repeat(4, 1fr); } }
.hoya-promo-card {
	position: relative;
	background: linear-gradient(180deg, var(--hoya-surface-2), var(--hoya-surface));
	border: 1px solid var(--hoya-border-soft);
	border-radius: var(--hoya-radius-lg);
	padding: 26px 22px 24px;
	overflow: hidden;
	transition: border-color .3s, transform .3s;
}
.hoya-promo-card:hover { border-color: var(--hoya-gold); transform: translateY(-4px); }
.hoya-promo-card__num {
	position: absolute;
	top: 14px; right: 18px;
	font-family: "Cinzel", serif;
	font-size: 38px;
	font-weight: 800;
	color: rgba(212, 175, 55, 0.18);
}
.hoya-promo-card h3 { color: var(--hoya-gold-2); }
.hoya-promo-card p { color: var(--hoya-text-soft); font-size: 14px; margin-bottom: 14px; }

/* ---------- VIP ---------- */
.hoya-vip {
	background:
		radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.14), transparent 60%),
		var(--hoya-bg);
}
.hoya-vip__inner { text-align: center; }
.hoya-vip__ladder {
	list-style: none;
	margin: 40px 0 0;
	padding: 0;
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .hoya-vip__ladder { grid-template-columns: repeat(6, 1fr); gap: 16px; } }
.hoya-vip__ladder li {
	border: 1px solid var(--hoya-border);
	background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0));
	border-radius: 14px;
	padding: 22px 12px;
	font-weight: 700;
	color: var(--hoya-gold-2);
}
.hoya-vip__ladder li span {
	display: block;
	font-family: "Cinzel", serif;
	font-size: 13px;
	color: var(--hoya-text-soft);
	margin-bottom: 4px;
}

/* ---------- FAQ ---------- */
.hoya-faq { max-width: 860px; margin: 0 auto; }
.hoya-accordion details {
	background: var(--hoya-surface);
	border: 1px solid var(--hoya-border-soft);
	border-radius: 14px;
	margin-bottom: 12px;
	overflow: hidden;
	transition: border-color .2s;
}
.hoya-accordion details[open] { border-color: var(--hoya-gold); }
.hoya-accordion summary {
	cursor: pointer;
	padding: 18px 22px;
	font-weight: 700;
	color: var(--hoya-text);
	font-size: 15px;
	display: flex;
	justify-content: space-between;
	gap: 14px;
	list-style: none;
	min-height: 44px;
	align-items: center;
}
.hoya-accordion summary::-webkit-details-marker { display: none; }
.hoya-accordion summary::after {
	content: "+";
	font-family: "Cinzel", serif;
	font-size: 22px;
	color: var(--hoya-gold-2);
	transition: transform .2s;
}
.hoya-accordion details[open] summary::after { content: "−"; }
.hoya-accordion__body {
	padding: 0 22px 20px;
	color: var(--hoya-text-soft);
	font-size: 15px;
}

/* ---------- CTA band ---------- */
.hoya-cta-band {
	text-align: center;
	background:
		radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.18), transparent 65%),
		linear-gradient(180deg, var(--hoya-bg-2), var(--hoya-bg));
}
.hoya-cta-band h2 { font-family: "Noto Sans TC", sans-serif; }
.hoya-cta-band p { color: var(--hoya-text-soft); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.hoya-footer {
	background: #05060a;
	border-top: 1px solid var(--hoya-border-soft);
	padding: 60px 0 100px;
	margin-bottom: 60px; /* room for mobile sticky CTA */
}
@media (min-width: 1024px) { .hoya-footer { padding-bottom: 60px; margin-bottom: 0; } }
.hoya-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 36px;
	margin-bottom: 40px;
}
@media (min-width: 768px) { .hoya-footer__grid { grid-template-columns: 1.5fr repeat(3, 1fr); gap: 44px; } }
.hoya-footer__brand p { color: var(--hoya-text-soft); font-size: 14px; margin-top: 14px; }
.hoya-footer__col h3 { color: var(--hoya-gold-2); font-size: 15px; margin-bottom: 14px; letter-spacing: .08em; }
.hoya-footer__col ul { list-style: none; padding: 0; margin: 0; }
.hoya-footer__col li { margin-bottom: 10px; }
.hoya-footer__col a { color: var(--hoya-text-soft); font-size: 14px; }
.hoya-footer__col a:hover { color: var(--hoya-gold-2); }
.hoya-footer__legal {
	border-top: 1px solid var(--hoya-border-soft);
	padding-top: 24px;
	color: var(--hoya-muted);
	font-size: 13px;
}
.hoya-payments {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 14px;
	color: var(--hoya-text-soft);
}
.pay-pill {
	border: 1px solid var(--hoya-border-soft);
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	color: var(--hoya-text-soft);
}
.hoya-disclaimer { color: var(--hoya-muted); margin: 8px 0; line-height: 1.7; }
.hoya-copyright { color: var(--hoya-muted); margin: 0; }

/* ---------- Sticky mobile CTA ---------- */
.hoya-mobile-cta {
	position: fixed;
	left: 16px; right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom));
	z-index: 95;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--hoya-gold-2), var(--hoya-gold) 50%, var(--hoya-gold-3));
	color: #1a1405 !important;
	font-weight: 800;
	padding: 12px 18px;
	border-radius: 14px;
	box-shadow: 0 18px 40px -14px rgba(212, 175, 55, 0.6);
	text-align: center;
	font-size: 15px;
}
.hoya-mobile-cta small {
	display: block;
	font-size: 11px;
	font-weight: 600;
	opacity: .8;
	margin-top: 2px;
}
@media (min-width: 1024px) { .hoya-mobile-cta { display: none; } }

/* ---------- Search & utility ---------- */
.hoya-search { display: flex; gap: 8px; }
.hoya-search input {
	flex: 1;
	background: var(--hoya-surface);
	border: 1px solid var(--hoya-border-soft);
	color: var(--hoya-text);
	padding: 10px 14px;
	border-radius: 10px;
}
.hoya-search button {
	background: var(--hoya-gold);
	color: #000;
	border: none;
	padding: 10px 18px;
	border-radius: 10px;
	font-weight: 700;
	cursor: pointer;
}
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px,1px,1px,1px);
	white-space: nowrap;
}

.hoya-prose h1, .hoya-prose h2, .hoya-prose h3 { color: var(--hoya-text); }
.hoya-prose a { color: var(--hoya-gold-2); text-decoration: underline; }

.hoya-404 { text-align: center; padding: 120px 0; }
.hoya-404 h1 { font-family: "Cinzel", serif; font-size: 6rem; color: var(--hoya-gold-2); }

/* ---------- Reveal animations ---------- */
[data-reveal] {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .8s ease, transform .8s ease;
}
[data-reveal].is-revealed {
	opacity: 1;
	transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
	[data-reveal] { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Focus states for accessibility ---------- */
:focus-visible {
	outline: 2px solid var(--hoya-gold);
	outline-offset: 3px;
	border-radius: 6px;
}
