:root{
  --bg:#121212;
  --panel:rgba(255,255,255,0.08);
  --panel-strong:rgba(15,23,42,0.9);
  --stroke:rgba(255,255,255,0.14);
  --gold:#f1c40f;
  --gold-soft:#ffdb4d;
  --text:#ffffff;
  --muted:rgba(255,255,255,0.72);
  --shadow:0 24px 60px rgba(0,0,0,0.55);
}

html{
  height:100%;
  overscroll-behavior:none;
}

*{
  box-sizing:border-box;
}

body{
  background:var(--bg);
  color:var(--text);
  font-family:"Segoe UI",Tahoma,Verdana,sans-serif;
  margin:0;
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:28px 20px 40px;
  overflow-x:hidden;
  overscroll-behavior:none;
}

#bg-video{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:-3;
  filter:brightness(0.22) blur(4px) contrast(1.12);
  transform:scale(1.05);
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background:
    radial-gradient(circle at 50% 22%, rgba(241,196,15,0.14), transparent 28%),
    radial-gradient(circle at center, transparent 36%, rgba(0,0,0,0.7) 100%);
  pointer-events:none;
}

.menu{
  position:fixed;
  top:20px;
  left:24px;
  display:flex;
  gap:10px;
  padding:8px 12px;
  background:rgba(15,23,42,0.84);
  backdrop-filter:blur(20px);
  border:1px solid var(--stroke);
  border-radius:30px;
  box-shadow:var(--shadow);
  z-index:2000;
  transition:transform .35s ease, opacity .35s ease, visibility .35s ease;
}

.season-menu-close{
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:none;
  border-radius:14px;
  background:rgba(255,255,255,0.08);
  color:var(--text);
  font-size:24px;
  line-height:1;
  cursor:pointer;
  transition:transform .18s ease, background .18s ease;
}

.season-menu-close:hover,
.season-menu-close:focus-visible{
  transform:translateY(-2px);
  background:rgba(255,255,255,0.16);
  outline:none;
}

.menu.hidden,
.menu.is-compact-hidden{
  opacity:0;
  visibility:hidden;
  transform:translateY(-16px);
  pointer-events:none;
}

.season-popup-row{
  width:100%;
  max-width:760px;
  display:flex;
  justify-content:flex-start;
  margin:0 0 14px;
}

.season-popup-compact,
.season-popup-fixed{
  position:relative;
  min-width:32px;
  min-height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  padding:0 10px 0 0;
  border:none;
  border-radius:10px;
  background:rgba(15,23,42,0.88);
  color:var(--text);
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px);
  border:1px solid rgba(255,255,255,0.12);
  cursor:pointer;
  transition:transform .28s ease, opacity .28s ease, visibility .28s ease, background .22s ease;
}

.season-popup-compact:hover,
.season-popup-compact:focus-visible{
  transform:translateY(-2px);
  background:rgba(20,30,48,0.94);
  outline:none;
}

.season-popup-compact.is-hidden{
  opacity:0;
  visibility:hidden;
  transform:translateY(-12px);
  pointer-events:none;
}

.season-popup-helper{
  width:fit-content;
  max-width:760px;
  margin:0 0 10px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(15,23,42,0.7);
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 12px 28px rgba(0,0,0,0.25);
  color:rgba(255,255,255,0.92);
  font-size:13px;
  font-weight:700;
  letter-spacing:.2px;
  line-height:1.3;
  text-align:left;
  align-self:flex-start;
}

.theme-song-card{
  width:100%;
  max-width:760px;
  margin:0 0 14px;
  padding:14px 16px;
  display:flex;
  flex-direction:column;
  gap:12px;
  border-radius:20px;
  background:rgba(15,23,42,0.7);
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 16px 34px rgba(0,0,0,0.26);
  backdrop-filter:blur(16px);
}

.theme-song-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  isolation:isolate;
}

.theme-song-copy{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}

.theme-song-kicker{
  display:inline-flex;
  width:fit-content;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(241,196,15,0.14);
  color:rgba(255,255,255,0.88);
  font-size:11px;
  font-weight:800;
  letter-spacing:1px;
  text-transform:uppercase;
}

.theme-song-text{
  margin:0;
  color:rgba(255,255,255,0.86);
  font-size:14px;
  line-height:1.5;
}

.theme-song-visual{
  width:82px;
  height:82px;
  object-fit:cover;
  border-radius:50%;
  mix-blend-mode:screen;
  filter:brightness(1.16) saturate(1.2) contrast(1.2);
  box-shadow:0 0 34px rgba(241,196,15,0.26);
  background:transparent;
}

.theme-song-visual-shell{
  position:relative;
  width:82px;
  height:82px;
  flex:0 0 82px;
}

.theme-song-visual-shell .theme-song-visual{
  position:absolute;
  inset:0;
  display:block;
}

.theme-song-visual-static{
  opacity:1;
  transition:opacity .2s ease;
}

.theme-song-visual-animated{
  opacity:0;
  transition:opacity .2s ease;
}

.theme-song-card.is-playing .theme-song-visual-static{
  opacity:0;
}

.theme-song-card.is-playing .theme-song-visual-animated{
  opacity:1;
}

.theme-song-player-shell{
  width:100%;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px;
  background:rgba(10,20,46,0.34);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-radius:24px;
  border:1px solid rgba(106,144,255,0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 14px 34px rgba(8,16,38,0.16);
}

.theme-song-control{
  border:none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:52px;
  height:52px;
  padding:0 16px;
  border-radius:20px;
  background:transparent;
  color:rgba(222,232,255,0.92);
  cursor:pointer;
  overflow:hidden;
  transition:
    width .4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background .25s ease,
    color .25s ease,
    transform .25s ease;
}

.theme-song-control:hover,
.theme-song-control:focus-visible{
  width:135px;
  background:rgba(87,126,219,0.18);
  outline:none;
}

.theme-song-card.is-playing .theme-song-play{
  background:rgba(18,34,72,0.92);
  color:#ffffff;
  width:135px;
  box-shadow:0 10px 24px rgba(8,16,38,0.24);
}

.theme-song-card.is-muted .theme-song-mute{
  background:rgba(18,34,72,0.92);
  color:#ffffff;
}

.theme-song-control-icon{
  min-width:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
}

.theme-song-control-text{
  display:none;
}

.theme-song-progress-block{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:0 6px;
}

.theme-song-time{
  color:rgba(214,226,255,0.86);
  font-size:12px;
  font-weight:700;
  letter-spacing:.4px;
}

.theme-song-progress{
  width:100%;
  accent-color:#8faeff;
}

.theme-song-player{
  display:none;
}

@media (max-width:600px){
  .theme-song-head{
    align-items:flex-start;
  }

  .theme-song-visual-shell{
    width:64px;
    height:64px;
    flex-basis:64px;
  }

  .theme-song-visual{
    width:64px;
    height:64px;
  }

  .theme-song-player-shell{
    flex-wrap:nowrap;
    align-items:center;
    padding:10px;
  }

  .theme-song-control:hover,
  .theme-song-control:focus-visible,
  .theme-song-card.is-playing .theme-song-play{
    width:112px;
  }

  .theme-song-progress-block{
    width:auto;
    order:2;
    flex:1 1 auto;
    padding:0 4px;
  }

  .theme-song-play{
    order:1;
    flex:0 0 auto;
  }

  .theme-song-mute{
    order:3;
    flex:0 0 auto;
  }
}

.season-popup-code{
  min-width:auto;
  width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border-radius:9px;
  background:linear-gradient(135deg, var(--gold), var(--gold-soft));
  color:#0f172a;
  font-weight:900;
  font-size:13px;
  letter-spacing:.4px;
}

.season-popup-label{
  display:inline-block;
  max-width:220px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:700;
  color:rgba(255,255,255,0.86);
}

button,
.season-popup-compact,
.toolbar,
.page-jump,
.install-app-btn,
.theme-song-control,
.theme-video-close{
  touch-action:manipulation;
}

.link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  width:52px;
  height:52px;
  padding:0 8px;
  overflow:hidden;
  white-space:nowrap;
  border-radius:18px;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  color:var(--gold);
  background:rgba(255,255,255,0.08);
  transition:width .45s cubic-bezier(.175,.885,.32,1.275), background .25s ease, transform .18s ease, color .25s ease;
}

.link:hover,
.link:focus-visible,
.link.expanded{
  width:220px;
  background:rgba(241,196,15,0.96);
  color:#0f172a;
  transform:translateY(-2px);
}

.link.active{
  background:var(--gold);
  color:#0f172a;
  box-shadow:0 6px 18px rgba(241,196,15,0.45);
}

.link-icon{
  min-width:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
}

.link-text{
  max-width:0;
  opacity:0;
  transform:translateX(-6px);
  transition:max-width .45s ease, opacity .25s ease, transform .25s ease;
  color:inherit;
}

.link:hover .link-text,
.link:focus-visible .link-text,
.link.expanded .link-text{
  max-width:480px;
  opacity:1;
  transform:translateX(0);
}

.title-container{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  width:100%;
  max-width:980px;
  margin:20px 0 14px;
  text-align:center;
}

.logo-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  filter:drop-shadow(0 6px 12px rgba(0,0,0,0.6));
}

.title-text{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  line-height:1;
}

.title-main{
  margin:0;
  position:relative;
  z-index:2;
  font-weight:900;
  font-size:clamp(36px, 6.5vw, 92px);
  letter-spacing:6px;
  text-transform:uppercase;
  background:linear-gradient(180deg, #fff0b8 0%, var(--gold) 30%, #c28f06 60%, #0b0b0b 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 1px 0 rgba(0,0,0,0.55), 0 10px 30px rgba(0,0,0,0.45);
  transition:transform .35s cubic-bezier(.2,.9,.2,1), filter .35s ease;
}

.title-main::after{
  content:"";
  position:absolute;
  left:-10%;
  top:0;
  width:120%;
  height:40%;
  transform:skewX(-12deg);
  background:linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.35), rgba(255,255,255,0.08));
  pointer-events:none;
  mix-blend-mode:screen;
  filter:blur(6px);
  opacity:0.9;
}

.title-main.glitch{
  transform:translateX(-2px) skewX(-1deg) scale(1.01);
  filter:drop-shadow(0 6px 18px rgba(0,0,0,0.55));
}

.title-main.glitch::before,
.title-main.glitch::after{
  content:attr(data-text);
  position:absolute;
  inset:0;
  pointer-events:none;
  mix-blend-mode:screen;
  opacity:0.85;
}

.title-main.glitch::before{
  color:rgba(255,96,96,0.9);
  transform:translateX(-3px) translateY(1px);
  clip-path:polygon(0 0,100% 0,100% 30%,0 30%);
}

.title-main.glitch::after{
  color:rgba(96,168,255,0.9);
  transform:translateX(3px) translateY(-1px);
  clip-path:polygon(0 70%,100% 70%,100% 100%,0 100%);
}

.title-sub{
  color:rgba(241,196,15,0.96);
  font-weight:600;
  font-size:clamp(12px, 1.4vw, 16px);
  letter-spacing:1px;
}

.title-reflection{
  position:absolute;
  left:50%;
  top:calc(100% + 6px);
  width:92%;
  height:26px;
  transform:translateX(-50%) scaleY(-1);
  border-radius:8px;
  opacity:0.28;
  filter:blur(6px);
  background:linear-gradient(180deg, rgba(241,196,15,0.08), rgba(0,0,0,0));
  mask-image:linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0));
}

.title-scanline{
  position:absolute;
  inset:0;
  border-radius:8px;
  background-image:linear-gradient(rgba(255,255,255,0.02) 1px, rgba(0,0,0,0) 1px);
  background-size:100% 3px;
  mix-blend-mode:overlay;
  opacity:0.18;
}

.reader-meta{
  width:100%;
  display:flex;
  justify-content:center;
  margin:0 0 18px;
}

.experience-layout{
  width:min(100%, 1320px);
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  gap:40px;
  align-items:start;
}

.comic-panel{
  min-width:0;
}

.status-chip{
  padding:10px 16px;
  border-radius:999px;
  background:rgba(0,0,0,0.34);
  border:1px solid rgba(255,255,255,0.1);
  color:var(--muted);
  font-size:14px;
  text-align:center;
  backdrop-filter:blur(12px);
}

.comic-wrapper{
  position:relative;
  width:100%;
  max-width:760px;
  padding:22px;
  background:rgba(255,255,255,0.06);
  backdrop-filter:blur(18px);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:28px;
  box-shadow:0 40px 90px rgba(0,0,0,0.65), inset 0 0 0 1px rgba(255,255,255,0.04);
  perspective:1200px;
  transform-style:preserve-3d;
  overflow:visible;
  transition:transform .4s ease, box-shadow .4s ease;
  touch-action:pan-y pinch-zoom;
  will-change:transform;
}

.comic-wrapper:hover{
  transform:translateY(-6px);
  box-shadow:0 55px 120px rgba(0,0,0,0.75), inset 0 0 0 1px rgba(255,255,255,0.06);
}

.page-stage{
  position:relative;
  width:100%;
  overflow:hidden;
  transform-style:preserve-3d;
  contain:paint;
  isolation:isolate;
  aspect-ratio:3 / 4;
  border-radius:16px;
}

.comic-frame{
  position:relative;
  width:100%;
  height:100%;
}

.page-layer{
  position:absolute;
  inset:0;
  pointer-events:none;
  will-change:transform;
  transform:translate3d(0,0,0);
}

.page-layer.is-empty{
  opacity:0;
}

.page-layer img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  background:rgba(0,0,0,0.3);
  backface-visibility:hidden;
  transform:translateZ(0);
  will-change:transform;
}

.page-layer.prev{ z-index:1; }
.page-layer.current{ z-index:2; }
.page-layer.next{ z-index:1; }

.page-layer.current img{
  filter:none;
}

#page-shadow{
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:0;
  transition:opacity .25s ease;
  z-index:3;
}

#page-counter{
  position:absolute;
  right:24px;
  bottom:24px;
  padding:10px 18px;
  border-radius:18px;
  background:var(--panel-strong);
  backdrop-filter:blur(12px);
  box-shadow:0 10px 30px rgba(0,0,0,0.6);
  font-size:14px;
  font-weight:600;
  z-index:5;
}

#vignette-container{
  position:absolute;
  inset:0;
  z-index:4;
}

.vignetta-area{
  position:absolute;
  cursor:pointer;
  background:rgba(255,255,255,0);
  transition:background .18s ease;
  -webkit-tap-highlight-color:transparent;
  -webkit-touch-callout:none;
  user-select:none;
}

@media (hover:hover){
  .vignetta-area:hover{
    background:rgba(255,255,255,0.12);
    outline:2px solid var(--gold);
  }
}

.vignetta-area.active-touch{
  background:rgba(255,255,255,0.18);
  outline:2px solid var(--gold);
}

.toolbar{
  width:100%;
  max-width:760px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:22px;
}

.nav-btn,
.page-jump button,
.install-actions button,
.install-app-btn{
  border:none;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
}

.nav-btn,
.page-jump button,
.install-primary,
.install-app-btn{
  background:linear-gradient(135deg, var(--gold), var(--gold-soft));
  color:#111827;
  box-shadow:0 12px 28px rgba(241,196,15,0.42);
}

.nav-btn,
.page-jump button{
  padding:10px 22px;
  font-size:15px;
  transition:transform .22s ease, box-shadow .22s ease, opacity .22s ease;
}

.nav-btn:hover,
.page-jump button:hover,
.install-app-btn:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 40px rgba(241,196,15,0.55);
}

.nav-btn:focus-visible,
.page-jump button:focus-visible,
.install-app-btn:focus-visible,
.install-actions button:focus-visible{
  outline:2px solid rgba(255,255,255,0.9);
  outline-offset:3px;
}

.nav-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
}

.page-jump{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}

.page-jump input{
  width:110px;
  padding:10px 14px;
  border:2px solid #333;
  border-radius:12px;
  background:#1e1e1e;
  color:var(--gold);
  text-align:center;
  font-size:15px;
}

.modal{
  position:fixed;
  inset:0;
  z-index:3000;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.95);
  cursor:zoom-out;
}

.modal[hidden]{
  display:none;
}

.modal-content{
  max-width:95%;
  max-height:95%;
  border-radius:14px;
  box-shadow:0 30px 80px rgba(0,0,0,0.8);
}

.theme-video-modal{
  position:fixed;
  inset:0;
  z-index:3100;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(3,8,20,0.82);
  backdrop-filter:blur(10px);
}

.theme-video-modal[hidden]{
  display:none;
}

.theme-video-card{
  width:min(100%, 920px);
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:18px;
  border-radius:24px;
  background:rgba(11,19,38,0.92);
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 28px 64px rgba(0,0,0,0.48);
}

.theme-video-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.theme-video-title{
  font-size:14px;
  font-weight:800;
  letter-spacing:.8px;
  text-transform:uppercase;
  color:rgba(255,255,255,0.9);
}

.theme-video-close{
  border:none;
  border-radius:999px;
  padding:10px 16px;
  background:rgba(255,255,255,0.08);
  color:var(--text);
  font-weight:700;
  cursor:pointer;
  transition:transform .18s ease, background .18s ease;
}

.theme-video-close:hover,
.theme-video-close:focus-visible{
  transform:translateY(-2px);
  background:rgba(255,255,255,0.16);
  outline:none;
}

.theme-video-player{
  width:100%;
  max-height:72vh;
  display:block;
  border-radius:18px;
  background:#000;
  box-shadow:0 16px 44px rgba(0,0,0,0.42);
}

.install-app-btn{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:3200;
  max-width:min(84vw, 220px);
  padding:12px 18px;
  font-size:14px;
  line-height:1.2;
  text-align:center;
  transition:transform .22s ease, box-shadow .22s ease;
}

.install-app-btn[hidden],
.install-modal[hidden]{
  display:none;
}

.install-modal{
  position:fixed;
  inset:0;
  z-index:3300;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(0,0,0,0.72);
  backdrop-filter:blur(8px);
}

.install-modal-card{
  width:min(100%, 360px);
  padding:22px;
  border:1px solid rgba(255,255,255,0.12);
  border-radius:22px;
  background:rgba(15,23,42,0.96);
  box-shadow:0 24px 60px rgba(0,0,0,0.45);
  color:var(--text);
  transform:translateY(0);
  animation:installModalIn .24s ease-out;
}

.install-modal-card h2{
  margin:0 0 10px;
  font-size:22px;
}

.install-modal-card p{
  margin:0 0 14px;
  color:var(--muted);
  line-height:1.5;
}

.install-steps{
  margin:0 0 18px;
  padding-left:18px;
  color:var(--text);
  line-height:1.5;
}

.install-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.install-actions button{
  padding:10px 14px;
}

.install-secondary{
  background:rgba(255,255,255,0.08);
  color:var(--text);
}

.roulette-section{
  width:100%;
  margin:0 0 40px;
}

.roulette-shell{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.roulette-copy{
  text-align:center;
}

.roulette-kicker{
  display:inline-block;
  margin-bottom:10px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(241,196,15,0.14);
  color:rgba(255,255,255,0.82);
  font-size:12px;
  font-weight:700;
  letter-spacing:1.4px;
  text-transform:uppercase;
}

.roulette-copy h2{
  margin:0 0 10px;
  font-size:clamp(28px, 4vw, 42px);
}

.roulette-description{
  width:min(100%, 720px);
  margin:0 auto;
  color:var(--muted);
  line-height:1.6;
}

.roulette-card{
  width:100%;
  padding:24px 22px 20px;
  border-radius:28px;
  background:linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border:1px solid rgba(255,255,255,0.1);
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px;
}

.roulette-container{
  position:relative;
  width:min(100%, 500px);
  aspect-ratio:1 / 1;
  cursor:pointer;
  user-select:none;
  outline:none;
}

.roulette-container:focus-visible,
.roulette-btn:focus-visible{
  outline:2px solid rgba(255,255,255,0.92);
  outline-offset:4px;
}

#roulette-wheel{
  width:100%;
  height:100%;
  display:block;
  border-radius:50%;
  box-shadow:inset 0 0 0 12px rgba(0,0,0,0.22), 0 0 30px rgba(255,255,255,0.08);
}

.roulette-ball{
  position:absolute;
  width:18px;
  height:18px;
  background:#fff;
  border-radius:50%;
  box-shadow:0 0 15px rgba(255,255,255,0.8);
  transform:translate(-50%, -50%);
  pointer-events:none;
  z-index:2;
}

.roulette-pointer{
  position:absolute;
  top:-10px;
  left:50%;
  transform:translateX(-50%);
  width:0;
  height:0;
  border-left:14px solid transparent;
  border-right:14px solid transparent;
  border-top:26px solid var(--gold);
  filter:drop-shadow(0 0 8px rgba(241,196,15,0.55));
  z-index:3;
}

.roulette-center{
  position:absolute;
  inset:50% auto auto 50%;
  width:68px;
  height:68px;
  transform:translate(-50%, -50%);
  border-radius:50%;
  background:radial-gradient(circle at 30% 30%, #f0d47d, #8c6717 74%);
  box-shadow:inset 0 2px 8px rgba(255,255,255,0.28), 0 6px 18px rgba(0,0,0,0.35);
  z-index:2;
  pointer-events:none;
}

.roulette-controls{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}

.roulette-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
}

.roulette-btn{
  border:none;
  border-radius:999px;
  padding:12px 20px;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.roulette-btn:hover{
  transform:translateY(-2px);
}

.roulette-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
}

.roulette-btn-primary{
  background:linear-gradient(135deg, var(--gold), var(--gold-soft));
  color:#151515;
  box-shadow:0 12px 28px rgba(241,196,15,0.32);
}

.roulette-btn-secondary{
  background:rgba(255,255,255,0.08);
  color:var(--text);
  border:1px solid rgba(255,255,255,0.12);
}

.roulette-result-panel{
  width:min(100%, 460px);
  padding:18px 18px 16px;
  border-radius:22px;
  background:rgba(0,0,0,0.28);
  border:1px solid rgba(255,255,255,0.08);
  text-align:center;
}

.roulette-result-label{
  display:block;
  margin-bottom:8px;
  color:var(--muted);
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:1.2px;
}

.roulette-result{
  min-height:40px;
  font-size:clamp(22px, 3.5vw, 32px);
  font-weight:700;
  line-height:1.35;
}

.roulette-hint{
  color:var(--muted);
  font-size:15px;
  text-align:center;
  line-height:1.5;
}

.roulette-legend{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
  color:var(--muted);
  font-size:14px;
}

.roulette-legend span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,0.05);
}

.roulette-legend i{
  width:12px;
  height:12px;
  border-radius:50%;
  display:inline-block;
}

.roulette-green{ background:#1f9d55; }
.roulette-red{ background:#b71c1c; }
.roulette-black{ background:#111111; border:1px solid rgba(255,255,255,0.12); }

@keyframes installModalIn{
  from{
    opacity:0;
    transform:translateY(12px) scale(0.98);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

@media (min-width:1180px){
  .experience-layout{
    grid-template-columns:minmax(0, 1.7fr) minmax(320px, .92fr);
    gap:34px;
  }

  .comic-panel{
    display:flex;
    flex-direction:column;
    align-items:center;
  }

  .season-popup-helper{
    margin-left:calc((100% - min(100%, 760px)) / 2);
  }

  .roulette-section{
    margin-top:6px;
  }

  .roulette-shell{
    position:sticky;
    top:108px;
  }

  .roulette-card{
    min-height:fit-content;
  }
}

@media (max-width:600px){
  body{
    padding-top:84px;
    padding-bottom:140px;
    min-height:calc(100dvh + 140px);
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior-y:contain;
    touch-action:manipulation;
  }

  .menu{
    top:8px;
    left:50%;
    transform:translateX(-50%);
    padding:6px 8px;
    box-shadow:0 12px 30px rgba(0,0,0,0.55);
  }

  .menu.hidden{
    transform:translateX(-50%) translateY(-14px);
  }

  .menu.is-compact-hidden{
    transform:translateX(-50%) translateY(-14px);
  }

  .season-popup-compact{
    min-width:32px;
    min-height:32px;
    gap:8px;
    padding:0 10px 0 0;
    border-radius:10px;
  }

  .season-popup-code{
    width:32px;
    height:32px;
    border-radius:9px;
    font-size:12px;
  }

  .season-popup-helper{
    margin-bottom:6px;
    font-size:12px;
  }

  .season-popup-label{
    max-width:170px;
    font-size:12px;
  }

  .link{
    min-width:44px;
    height:44px;
    font-size:13px;
  }

  .season-menu-close{
    width:38px;
    height:38px;
    border-radius:12px;
    font-size:22px;
  }

  .title-container{
    gap:12px;
    margin-top:0;
  }

  .title-main{
    letter-spacing:2px;
  }

  .comic-wrapper{
    width:100%;
    max-width:760px;
    padding:14px;
    touch-action:pan-y pinch-zoom;
  }

  .nav-btn{
    display:none;
  }

  #page-counter{
    right:14px;
    bottom:14px;
    padding:8px 12px;
    font-size:13px;
  }

  .install-app-btn{
    right:14px;
    bottom:16px;
    padding:12px 16px;
    font-size:13px;
  }

  .install-modal{
    align-items:flex-end;
    padding:16px;
  }

  .install-modal-card{
    width:min(100%, 420px);
    border-radius:24px 24px 18px 18px;
  }

  .theme-video-modal{
    align-items:center;
    justify-content:center;
    padding:12px;
  }

  .theme-video-card{
    padding:14px;
    border-radius:24px 24px 18px 18px;
  }

  .theme-video-topbar{
    align-items:flex-start;
  }

  .theme-video-close{
    padding:9px 14px;
  }

  .theme-video-player{
    max-height:58vh;
    border-radius:16px;
  }

  .roulette-section{
    margin-top:44px;
    margin-bottom:24px;
  }

  .roulette-card{
    padding:18px 14px 16px;
    border-radius:22px;
  }

  .roulette-btn{
    width:100%;
    max-width:280px;
  }

  .roulette-result-panel{
    padding:16px 14px;
  }

  .roulette-hint{
    font-size:14px;
  }
}

@media (hover:none) and (pointer:coarse){
  button:hover,
  .season-popup-compact:hover,
  .nav-btn:hover,
  .page-jump button:hover,
  .theme-song-control:hover,
  .theme-video-close:hover{
    transform:none;
  }

  button:focus,
  .season-popup-compact:focus,
  .nav-btn:focus,
  .page-jump button:focus,
  .theme-song-control:focus,
  .theme-video-close:focus{
    outline:none;
  }
}

@supports not (background-clip:text){
  .title-main{
    color:var(--gold);
    background:none;
    text-shadow:0 0 8px rgba(0,0,0,0.7);
  }
}
