:root {
  --bg: #170b29;
  --bg2: #2e1450;
  --card: #24113d;
  --line: #6e4aa4;
  --text: #f7efff;
  --muted: #cfbae8;
  --accent: #f4c14f;
  --accent2: #ffe7a4;
  --chip: #31185a;
  --radius: 22px;
  --btn-radius: 9999px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; background: radial-gradient(1200px 600px at 15% -20%, #8f62d544, transparent), linear-gradient(160deg, var(--bg), var(--bg2)); color: var(--text); font-family: 'Trebuchet MS', 'Segoe UI', sans-serif; }
a { color: inherit; text-decoration: none; }
img, svg, video, canvas, iframe { max-width: 100%; height: auto; display: block; }
.container { width: min(1140px, calc(100% - 28px)); margin: 0 auto; }
.container.narrow { width: min(860px, calc(100% - 28px)); }
.container.wide { width: min(1260px, calc(100% - 24px)); }
main, section, .container, .hero-grid, .slot-layout, .card-grid, .footer-grid, .top-nav { min-width: 0; }
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(6px); background: #120a20d9; border-bottom: 1px solid var(--line); }
.header-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 152px; height: auto; }
.top-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.top-nav a { color: var(--muted); font-weight: 700; font-size: 15px; }
.top-nav a.active, .top-nav a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--btn-radius); padding: 12px 20px; border: 1px solid transparent; font-weight: 800; letter-spacing: .02em; }
.btn-primary { background: linear-gradient(130deg, var(--accent), var(--accent2)); color: #2e1c00; box-shadow: 0 10px 24px #00000038; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.hero { padding: 44px 0 12px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; align-items: stretch; }
.hero-copy, .hero-media { background: linear-gradient(180deg, #281449f2, #1b0d33f2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.06; margin: 0 0 12px; }
.hero p { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 0 0 14px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.slider { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); min-height: 300px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.8); }
.slide-caption { position: absolute; left: 12px; right: 12px; bottom: 12px; background: #1a0d31db; border: 1px solid #7f58b7; border-radius: 12px; padding: 12px; }
.section { padding: 26px 0; }
.section h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 34px); }
.section p.lead { margin: 0 0 14px; color: var(--muted); font-size: 17px; }
.card-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.card { background: linear-gradient(180deg, #2a1748, var(--card)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.card > img { width: 100%; height: 210px; object-fit: cover; object-position: center; background: #140b25; }
.card .pad { padding: 14px; }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.meta { color: var(--muted); font-size: 14px; line-height: 1.5; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.badge { background: var(--chip); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; }
.author-block, .address-block, .table-wrap, .content-card { background: linear-gradient(180deg, #2a144b, #190d31); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.author-grid { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; }
.author-grid img { border-radius: 14px; border: 1px solid var(--line); }
.author-grid.reverse { grid-template-columns: 1fr 160px; }
.author-grid.reverse img { order: 2; }
.author-grid.compact { grid-template-columns: 120px 1fr; gap: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; word-break: break-word; overflow-wrap: anywhere; }
th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer { margin-top: 30px; border-top: 1px solid var(--line); background: #130a22; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 16px; padding: 24px 0; }
.footer-col h4 { margin: 0 0 8px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.footer-col a { display: block; padding: 5px 0; color: var(--text); opacity: .88; }
.resp-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.resp-logo { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: #24113d; color: var(--muted); border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 13px; min-height: 48px; }
.resp-logo-image { background: #fff; border-color: #8d70ba; padding: 8px 10px; }
.resp-logo-image img { height: 24px; width: auto; max-width: 160px; object-fit: contain; display: block; }
.fine { color: var(--muted); font-size: 12px; margin: 0; padding: 14px 0 24px; }
.page-hero { padding: 30px 0 12px; }
.page-hero .content-card h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 46px); }
.slot-layout { display: grid; gap: 16px; grid-template-columns: 1.15fr .85fr; }
.demo-frame { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16/9; }
.demo-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.faq-item { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.load-wrap { display: flex; justify-content: center; margin-top: 14px; }
.cta-band { background: linear-gradient(130deg, #3a1a63, #2a144b); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 14px 30px #00000033; }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 34px); }
.cta-band p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.fortune-wrap { position: relative; overflow: hidden; }
.wheel-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.wheel-stage { display: flex; justify-content: center; align-items: center; position: relative; min-height: 340px; }
.wheel-disc {
  width: min(320px, 84vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid #f4c14f;
  box-shadow: 0 18px 38px #00000055;
  background: conic-gradient(
    #f4c14f 0deg 60deg,
    #8652cb 60deg 120deg,
    #65e8cb 120deg 180deg,
    #f4c14f 180deg 240deg,
    #8652cb 240deg 300deg,
    #65e8cb 300deg 360deg
  );
  transition: transform 4.8s cubic-bezier(.18,.72,.15,1);
}
.wheel-disc::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 26%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #1c0f33;
  border: 3px solid #f4c14f;
}
.wheel-pointer {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid #f4c14f;
  filter: drop-shadow(0 6px 8px #00000066);
  z-index: 2;
}
.wheel-ui h2 { margin: 0 0 8px; font-size: clamp(24px, 3.5vw, 38px); }
.wheel-ui p { margin: 0 0 14px; color: var(--muted); line-height: 1.7; }
.wheel-note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.fortune-modal {
  position: fixed;
  inset: 0;
  background: #07030fbd;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 16px;
}
.fortune-modal.open { display: flex; }
.fortune-dialog {
  width: min(520px, 100%);
  background: linear-gradient(180deg, #2c1750, #1c0f34);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 44px #0000005c;
  padding: 18px;
  position: relative;
}
.fortune-close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 19px;
}
.fortune-dialog h3 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); }
.fortune-dialog p { margin: 0 0 12px; color: var(--muted); line-height: 1.65; }
@media (max-width: 980px) {
  .hero-grid, .slot-layout { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .wheel-shell { grid-template-columns: 1fr; }
  .wheel-stage { min-height: 300px; }
  .demo-frame iframe { min-height: 260px; }
}
@media (max-width: 640px) {
  .container { width: min(1140px, calc(100% - 22px)); }
  .container.narrow, .container.wide { width: min(1140px, calc(100% - 22px)); }
  .header-row { min-height: 68px; }
  .top-nav { gap: 10px; }
  .top-nav a { font-size: 14px; }
  .card-grid { grid-template-columns: 1fr; }
  .card > img { height: 190px; }
  .author-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-copy, .hero-media, .content-card, .table-wrap { padding: 14px; }
  .wheel-disc { width: min(280px, 82vw); }
  .wheel-stage { min-height: 260px; }
  .demo-frame iframe { min-height: 220px; }
  .cta-band { padding: 16px; }
}
.card, .content-card, .author-block, .address-block, .cta-band { border-style: dashed; }
.btn-primary { background: linear-gradient(130deg, var(--accent2), var(--accent)); }
