:root {
  color-scheme: dark;
  --bg: #111116;
  --panel: #1a1a22;
  --ink: #fff;
  --muted: #c0bec8;
  --accent: #f43e68;
  --accent-light: #ff8ca3;
  --line: rgba(255, 255, 255, .1);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: radial-gradient(ellipse at 50% -15%, #39202d 0, transparent 48%), var(--bg);
  font: 16px/1.5 Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
a { color: inherit; }

.shell { width: min(100% - 32px, 920px); margin: 0 auto; padding: 22px 0 34px; }
.shell-gate { width: min(100% - 28px, 440px); min-height: 100vh; min-height: 100svh; display: grid; align-content: center; }
.shell-detail { width: min(100% - 28px, 560px); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #f6d4dc; font-size: 14px; font-weight: 750; letter-spacing: .04em; text-decoration: none; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 2px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 12px; font-weight: 900; }
.step { color: #aaa9b5; font-size: 12px; }

.gate { overflow: hidden; border: 1px solid #62334a; border-radius: 24px; background: #120d14; box-shadow: 0 28px 80px #000a, 0 0 55px #9a245329; }
.visual { height: 300px; position: relative; overflow: hidden; background: #28131f; }
.visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #110a1200 45%, #120d14 100%); pointer-events: none; }
.visual img { position: absolute; top: 0; left: 0; display: block; width: 100%; height: auto; transform: translateY(-18.75%); }
.age-badge { position: absolute; z-index: 1; top: 18px; right: 18px; display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid #ffffff8c; border-radius: 50%; background: #210d1c9e; color: #fff; font-size: 19px; font-weight: 800; backdrop-filter: blur(8px); }
.visual-label { position: absolute; z-index: 1; left: 24px; bottom: 17px; color: #ffdce9; font-size: 11px; font-weight: 750; letter-spacing: .22em; }
.gate-content { padding: 0 24px 25px; text-align: center; }
.eyebrow { margin: 0 0 8px; color: var(--accent-light); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
h1, h2 { margin: 0; color: var(--ink); font-weight: 900; letter-spacing: -.02em; }
.gate h1 { font-size: clamp(28px, 7.2vw, 36px); line-height: 1.17; letter-spacing: .02em; }
.gate h1 em { color: #ff6f9f; font-style: normal; }
.lead { max-width: 540px; margin: 14px auto 0; color: #e7cfd9; font-size: 15px; line-height: 1.75; }
.gate .lead { max-width: 310px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 13px; padding: 14px 18px; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(115deg, #fa477e, #ed225a); box-shadow: 0 9px 25px #e81c6759; font: inherit; font-size: 15px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .18s ease, filter .18s ease; }
.gate .button { width: 100%; margin-top: 23px; font-size: 16px; }
.button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.button:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.button .arrow { font-size: 22px; line-height: 1; }
.button.secondary { color: #f0e1e7; background: #ffffff12; border: 1px solid #ffffff20; box-shadow: none; }
.fine { margin: 13px 0 0; color: #9f8b98; font-size: 11px; line-height: 1.55; }

.age-notice { padding: 17px 20px; border: 1px solid rgba(255, 59, 79, .65); border-radius: 16px; background: linear-gradient(120deg, rgba(255, 59, 79, .2), rgba(26, 26, 34, .94)); text-align: center; }
.age-notice-head { display: flex; align-items: center; justify-content: center; gap: 12px; }
.age-notice-badge { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border: 2px solid #ff3b4f; border-radius: 50%; background: rgba(255, 59, 79, .12); color: #ff3b4f; font-size: 16px; font-weight: 900; }
.age-notice h1 { color: #ff3b4f; font-size: clamp(22px, 5vw, 27px); line-height: 1.25; }
.age-notice p { margin: 7px 0 0; color: #ff6575; font-size: 14px; font-weight: 750; line-height: 1.5; }
.age-notice .age-detail { margin-top: 5px; color: #ff9aa5; font-size: 12px; font-weight: 500; }
.intro { padding: 35px 10px 26px; text-align: center; }
.intro h2 { font-size: clamp(27px, 5vw, 38px); line-height: 1.2; }
.intro > p:last-child { margin: 10px auto 0; color: var(--muted); font-size: 14px; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; text-align: left; }
.category-card { position: relative; isolation: isolate; overflow: hidden; min-height: 246px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 22px; background-color: var(--panel); background-position: center; background-size: cover; color: inherit; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.category-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(17, 17, 22, .08) 0%, rgba(17, 17, 22, .28) 37%, rgba(17, 17, 22, .96) 100%); }
.category-card::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .1; pointer-events: none; background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,.18) 19px 20px, transparent 21px 38px); mask-image: linear-gradient(120deg, transparent 30%, black 100%); }
.category-card:hover { transform: translateY(-3px); border-color: rgba(244, 62, 104, .65); }
.card-player { background-image: url("category-player.webp"); }
.card-drama { background-image: url("category-drama.webp"); }
.card-top, .card-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag { padding: 6px 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #f6d4dc; background: rgba(10,10,15,.48); font-size: 11px; }
.symbol { display: grid; width: 43px; height: 43px; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; color: white; background: rgba(10,10,15,.4); font-size: 20px; }
.card-copy { position: relative; z-index: 1; display: block; margin-top: auto; padding-top: 34px; }
.card-copy strong { display: block; color: #fff; font-size: 21px; font-weight: 850; }
.card-copy small { display: block; margin-top: 5px; color: #d0ccd5; font-size: 12px; line-height: 1.6; }
.card-bottom { margin-top: 17px; }
.count { color: #c0bec8; font-size: 11px; }
.enter { display: inline-flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 12px; color: #fff; background: var(--accent); font-size: 12px; font-weight: 750; }
.enter b { font-size: 17px; line-height: 10px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; margin-top: 24px; }
.notice { margin: 22px 0; padding: 15px 17px; border: 1px solid rgba(244, 62, 104, .35); border-radius: 15px; color: #d8c4d0; background: #100b1199; font-size: 13px; line-height: 1.7; text-align: left; }
.detail-panel { padding: clamp(25px, 6vw, 42px); border: 1px solid rgba(244, 62, 104, .36); border-radius: 22px; background: linear-gradient(145deg, rgba(37, 22, 32, .97), rgba(26, 26, 34, .97)); box-shadow: 0 22px 70px #0008; text-align: center; }
.detail-panel h1 { font-size: clamp(27px, 6vw, 36px); }
.detail-mark { display: grid; width: 62px; height: 62px; place-items: center; margin: 22px auto 16px; border: 1px solid #ff739f66; border-radius: 19px; color: #ffdce9; background: linear-gradient(145deg, #fa477e35, #9d245822); font-size: 20px; font-weight: 900; }
.detail-panel .lead { max-width: 420px; }
.offer-list { display: grid; gap: 12px; max-width: 380px; margin: 24px auto 0; }
.offer-button { width: 100%; }
.offer-button:nth-child(n + 2) { color: #f0e1e7; background: linear-gradient(120deg, #4b3547, #302733); border: 1px solid #ffffff24; box-shadow: none; }
.footer { padding: 17px 8px 0; color: #85838f; font-size: 11px; line-height: 1.7; text-align: center; }

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 560px); padding: 16px 0 24px; }
  .shell-gate { min-height: 100vh; min-height: 100svh; align-content: center; }
  .visual { height: 270px; }
  .category-grid, .category-only-grid { grid-template-columns: 1fr; gap: 10px; }
  .category-card { min-height: 205px; padding: 15px; border-radius: 18px; }
  .intro { padding: 30px 4px 22px; }
  .age-notice { padding: 14px 12px; border-radius: 14px; }
  .age-notice-head { gap: 9px; }
  .age-notice-badge { width: 42px; height: 42px; font-size: 14px; }
  .gate-content { padding: 0 20px 22px; }
}

@media (max-height: 690px) {
  .visual { height: 240px; }
  .gate-content { padding-bottom: 18px; }
  .gate .lead { margin-top: 10px; }
  .gate .button { margin-top: 16px; }
  .shell-gate { align-content: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Category page: two categories, with the surrounding sections removed. */
.category-only-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  align-content: center;
  padding-top: 18px;
  padding-bottom: 18px;
}
.category-only-grid { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-top-actions { display: inline-flex; align-items: center; gap: 8px; }
.tag-free {
  border-color: rgba(255, 117, 159, .6);
  color: #fff;
  background: linear-gradient(120deg, rgba(250, 71, 126, .9), rgba(237, 34, 90, .78));
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(232, 28, 103, .28);
}
