
  :root {
    --void: #0A0518;
    --neon: #7928CA;
    --mag: #FF0080;
    --ink: #f6f1ff;
    --muted: rgba(246,241,255,.68);
    --safe-t: env(safe-area-inset-top);
    --safe-b: env(safe-area-inset-bottom);
  }
  * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  html, body { margin: 0; padding: 0; background: #05020d; color: var(--ink); overflow-x: hidden; width: 100%; }
  html { scroll-behavior: smooth; color-scheme: dark; }
  body {
    font-family: Outfit, "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", "Apple SD Gothic Neo", sans-serif;
    min-height: 100dvh;
  }
  body.locked { overflow: hidden; height: 100%; }
  button, input, textarea { font-family: inherit; }
  button { cursor: pointer; touch-action: manipulation; user-select: none; }
  #device {
    width: min(100%, 480px);
    max-width: 480px;
    margin: 0 auto;
    min-height: 100dvh;
    position: relative;
    background: radial-gradient(120% 70% at 50% -10%, rgba(121,40,202,.35), transparent 55%), var(--void);
    overflow-x: clip;
  }
  @media (min-width: 520px) {
    #device { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 0 90px rgba(121,40,202,.28); }
  }
  .orb { position: absolute; border-radius: 50%; filter: blur(46px); pointer-events: none; z-index: 0; }
  .orb-a { width: 260px; height: 260px; background: #7928CA; opacity: .5; top: -80px; left: -90px; }
  .orb-b { width: 220px; height: 220px; background: #FF0080; opacity: .22; top: 420px; right: -90px; }
  .orb-c { width: 180px; height: 180px; background: #5b21b6; opacity: .35; bottom: 180px; left: -70px; }
  #app { position: relative; z-index: 1; padding-bottom: calc(150px + var(--safe-b)); }
  .pad { padding-left: 16px; padding-right: 16px; }
  .glass {
    background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.16);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
  }
  .tap { transition: transform .16s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .2s; }
  .tap:active { transform: scale(.972); }
  :focus-visible { outline: 2px solid #FF0080; outline-offset: 2px; }
  header.top { padding: calc(14px + var(--safe-t)) 16px 8px; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .mark {
    font-family: Orbitron, sans-serif;
    letter-spacing: .22em;
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(90deg, #FF0080, #c084fc);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .lang { position: relative; }
  #langBtn {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 40px; padding: 0 12px; border-radius: 999px;
    color: var(--ink); border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.06);
  }
  #langBtn svg { width: 16px; height: 16px; }
  #langMenu {
    position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: 228px;
    max-height: min(64vh, 460px); overflow: auto; -webkit-overflow-scrolling: touch;
    padding: 6px; z-index: 40; margin: 0; list-style: none;
  }
  #langFilter {
    width: 100%; min-height: 38px; margin-bottom: 4px; padding: 0 10px;
    border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
    background: rgba(10,5,24,.55); color: var(--ink); font-size: 13px;
  }
  #langMenu button {
    width: 100%; text-align: start; min-height: 40px; border: 0; border-radius: 12px;
    background: transparent; color: var(--ink); padding: 0 10px; font-size: 14px;
  }
  #langMenu button[aria-selected="true"] {
    background: linear-gradient(90deg, rgba(255,0,128,.32), rgba(121,40,202,.35));
  }
  .mast-glow { filter: drop-shadow(0 0 14px rgba(255,0,128,.42)) drop-shadow(0 0 28px rgba(121,40,202,.38)); margin-top: 18px; }
  #masthead {
    margin: 0; text-align: center; font-weight: 900;
    font-family: Outfit, "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: clamp(1.62rem, 6.6vw, 2.05rem);
    line-height: 1.28; letter-spacing: .04em;
    background: linear-gradient(100deg, #f7ecff 0%, #FF4DA6 22%, #e9d5ff 42%, #9d4edd 62%, #FF0080 82%, #f7ecff 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: sheen 5.5s linear infinite;
  }
  @keyframes sheen { to { background-position: 220% 50%; } }
  .rule {
    height: 2px; width: 46%; margin: 12px auto 0; border-radius: 99px;
    background: linear-gradient(90deg, transparent, #FF0080, #7928CA, transparent);
    box-shadow: 0 0 16px rgba(255,0,128,.7);
  }
  #mastSub { text-align: center; color: var(--muted); margin: 10px 0 0; font-size: 13.5px; line-height: 1.55; }
  .live {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 10px 0 0; color: #d9d2e9; font-size: 12px; letter-spacing: .04em;
  }
  .dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 10px #3DDC97; animation: blink 1.6s ease infinite; }
  @keyframes blink { 50% { opacity: .35; } }
  #eligible { margin: 14px 16px 0; padding: 14px; display: flex; gap: 12px; align-items: flex-start; }
  #eligible[hidden] { display: none !important; }
  #eligible .ticket {
    flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(255,0,128,.35), rgba(121,40,202,.45));
    box-shadow: 0 0 18px rgba(255,0,128,.35);
  }
  #eligible strong { display: block; font-family: Orbitron, sans-serif; letter-spacing: .04em; font-size: 13px; }
  #eligible p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
  #eligX { margin-left: auto; border: 0; background: transparent; color: #fff; min-width: 36px; min-height: 36px; }
  .tabs {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px; padding: 16px 16px 4px;
  }
  .tabs button {
    min-height: 52px; padding: 8px 4px; white-space: normal;
    border-radius: 16px; color: var(--ink); font-weight: 650; font-size: 12px; line-height: 1.25;
    border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  }
  .tabs button[aria-selected="true"] {
    border-color: transparent;
    background: linear-gradient(#160824, #160824) padding-box, linear-gradient(120deg, #FF0080, #7928CA) border-box;
    box-shadow: 0 0 22px rgba(255,0,128,.28);
  }
  .block { margin-top: 14px; }
  .block h2, #composer h2 {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 10px; font-size: 16px; font-weight: 750;
  }
  #composer h2 svg { width: 18px; height: 18px; color: #FF4DA6; }
  .block h2 svg, #composer h2 svg { width: 18px; height: 18px; color: #FF4DA6; }
  #moodCard { padding: 16px; }
  .moodword { margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #d9d2e9; }
  .moodpct { margin: 2px 0 12px; font-family: Orbitron, sans-serif; font-size: 40px; font-weight: 800; line-height: 1; }
  .moodpct.bull, .moodword.bull { color: #3DDC97; text-shadow: 0 0 18px rgba(61,220,151,.35); }
  .moodpct.bear, .moodword.bear { color: #FF4D6D; text-shadow: 0 0 18px rgba(255,77,109,.35); }
  .moodpct.neu, .moodword.neu { color: #e7e2f2; }
  .meter { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
  .meter span { display: block; height: 100%; width: 0; transition: width .65s cubic-bezier(.2,.8,.2,1); }
  .meter .g { background: linear-gradient(90deg, #12875a, #3DDC97); box-shadow: 0 0 12px rgba(61,220,151,.55); }
  .meter .r { background: linear-gradient(90deg, #9f1239, #FF4D6D); }
  .meter .n { background: linear-gradient(90deg, #6d647c, #e7e2f2); }
  .legend { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
  .moodbtn {
    display: grid; grid-template-columns: 10px 1fr auto auto; gap: 8px; align-items: center;
    min-height: 44px; padding: 0 12px; border-radius: 14px; text-align: left;
    border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: var(--ink);
  }
  .moodbtn.on { border-color: rgba(255,0,128,.7); box-shadow: 0 0 0 1px rgba(255,0,128,.35), 0 0 18px rgba(121,40,202,.35); }
  .moodbtn em { font-style: normal; color: var(--muted); font-size: 12px; }
  .sw { width: 10px; height: 10px; border-radius: 50%; }
  .sw.g { background: #3DDC97; } .sw.r { background: #FF4D6D; } .sw.n { background: #e7e2f2; }
  .clock { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
  .hscroll {
    display: flex; gap: 12px; overflow-x: auto; width: 100%; max-width: 100%;
    padding: 2px 16px 8px; scroll-snap-type: x mandatory; scroll-padding-left: 16px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .hscroll::-webkit-scrollbar { display: none; }
  .hcard { flex: 0 0 80%; scroll-snap-align: start; min-width: 0; padding: 14px; }
  .spark { width: 100%; height: 42px; display: block; margin-bottom: 8px; }
  .pill {
    display: inline-flex; align-items: center; gap: 4px;
    border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 700;
    background: rgba(121,40,202,.28); border: 1px solid rgba(255,255,255,.12);
  }
  .pill.rally { color: #3DDC97; } .pill.pullback { color: #FF4D6D; } .pill.range { color: #e7e2f2; }
  .clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .muted { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
  #composer { margin: 14px 16px 0; padding: 16px; }
  .lbl { margin: 12px 0 6px; font-size: 12px; letter-spacing: .06em; color: #d9d2e9; }
  .seg { display: flex; gap: 8px; }
  .segbtn {
    flex: 1; min-height: 44px; border-radius: 14px; padding: 6px;
    border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
    color: var(--ink); font-size: 12px; line-height: 1.25;
  }
  .segbtn.active {
    border-color: transparent;
    background: linear-gradient(#1a0b28, #1a0b28) padding-box, linear-gradient(120deg, #FF0080, #7928CA) border-box;
    box-shadow: 0 0 16px rgba(255,0,128,.22);
  }
  textarea, input[type="text"] {
    width: 100%; color-scheme: dark; background: rgba(8,4,18,.72); color: var(--ink);
    border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 12px 14px; font-size: 16px;
  }
  textarea { min-height: 112px; resize: vertical; }
  .formrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
  #count { color: var(--muted); font-size: 12px; }
  #count.hot { color: #FF4D6D; }
  .go {
    min-height: 46px; padding: 0 18px; border: 0; border-radius: 14px; color: white; font-weight: 750;
    background: linear-gradient(100deg, #FF0080, #7928CA);
    box-shadow: 0 8px 24px rgba(255,0,128,.35);
  }
  .err { color: #FF8AB0; font-size: 12.5px; margin: 8px 0 0; }
  .card { margin: 0 16px 12px; padding: 14px; }
  .who { display: flex; gap: 10px; align-items: center; }
  .ava {
    width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
    font-weight: 800; color: white; flex: 0 0 auto;
  }
  .who b { display: block; font-size: 14px; }
  .who span { color: var(--muted); font-size: 12px; }
  .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
  .bodytext { margin: 0; font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
  .votes { display: flex; gap: 8px; margin-top: 12px; }
  .vote, .replybtn, .sendbtn {
    min-height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; padding: 0 10px;
  }
  .vote svg, .replybtn svg, .sendbtn svg { width: 16px; height: 16px; }
  .vote.on-up { color: #3DDC97; border-color: rgba(61,220,151,.55); box-shadow: 0 0 12px rgba(61,220,151,.25); }
  .vote.on-down { color: #FF4D6D; border-color: rgba(255,77,109,.55); }
  .pop { animation: pop .28s ease; }
  @keyframes pop { 40% { transform: scale(1.12); } }
  .nest { margin-top: 12px; padding-left: 12px; border-left: 2px solid rgba(255,0,128,.55); display: flex; flex-direction: column; gap: 8px; }
  .reply { background: rgba(255,255,255,.035); border-radius: 14px; padding: 10px; }
  .replyform { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
  .replyform textarea { min-height: 72px; }
  .quote { margin-top: 8px; padding-left: 10px; border-left: 2px solid rgba(192,132,252,.7); }
  .quote + .quote { border-left-color: rgba(255,0,128,.7); }
  .sources { display: flex; gap: 10px; flex-wrap: wrap; padding: 4px 16px 8px; }
  .sources a { color: #FF9AD2; font-size: 13px; text-underline-offset: 3px; }
  #legalbar {
    position: fixed; z-index: 30; left: 50%; bottom: 0; transform: translateX(-50%);
    width: min(100vw, 480px);
    display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 2px;
    padding: 8px 8px calc(8px + var(--safe-b));
    background: rgba(10,5,24,.82);
    border-top: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  #legalbar button {
    border: 0; background: transparent; color: #e7dff5; font-size: 11px;
    min-height: 36px; padding: 6px 8px; text-decoration: underline; text-underline-offset: 3px;
  }
  #overlay {
    position: fixed; z-index: 60; top: 0; bottom: 0; left: 50%;
    width: min(100vw, 480px); transform: translateX(-50%);
    background: rgba(5,2,12,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; pointer-events: none; transition: opacity .35s ease;
  }
  #overlay.show { opacity: 1; pointer-events: auto; }
  #sheet {
    position: fixed; z-index: 70; left: 50%; bottom: 0; width: min(100vw, 480px);
    max-height: min(86dvh, 740px);
    transform: translateX(-50%) translateY(110%);
    transition: transform .42s cubic-bezier(.2,.9,.2,1);
    border-radius: 24px 24px 0 0; display: flex; flex-direction: column;
    background: linear-gradient(180deg, rgba(32,16,58,.96), rgba(10,5,24,.96));
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 -20px 60px rgba(0,0,0,.45), 0 0 30px rgba(121,40,202,.25);
    padding-bottom: var(--safe-b);
  }
  #sheet.open { transform: translateX(-50%) translateY(0); }
  .grab { display: flex; justify-content: center; padding: 10px 0 4px; }
  .grab i { width: 46px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.28); display: block; box-shadow: 0 0 12px rgba(255,0,128,.45); }
  .sheet-top { display: flex; align-items: center; gap: 8px; padding: 0 8px 8px 16px; }
  #sheetTitle { margin: 0; font-size: 18px; flex: 1; }
  #sheetClose { border: 0; background: rgba(255,255,255,.06); color: white; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
  #sheetBody { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px 22px; }
  #sheetBody h3 { margin: 16px 0 6px; font-size: 14px; color: #FF9AD2; }
  #sheetBody p, #sheetBody li { color: #efe8f8; font-size: 14px; line-height: 1.65; }
  #sheetBody a { color: #FF9AD2; }
  .kicker { color: #c4b5d6 !important; font-size: 12px !important; letter-spacing: .04em; }
  #toast {
    position: fixed; z-index: 45; left: 50%; bottom: calc(108px + var(--safe-b));
    transform: translateX(-50%) translateY(12px); width: min(92vw, 420px);
    opacity: 0; pointer-events: none; transition: .35s ease;
    text-align: center; padding: 12px 14px; color: white;
  }
  #toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
  #splash {
    position: fixed; z-index: 80; top: 0; bottom: 0; left: 50%;
    width: min(100vw, 480px); transform: translateX(-50%);
    background: #0A0518; overflow: hidden;
    animation: forceOut .7s ease 8s forwards;
  }
  #splash.leave { opacity: 0; visibility: hidden; pointer-events: none; animation: none; }
  @keyframes forceOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }
  #heroVideo {
    position: absolute; left: 50%; top: 42%;
    width: 100%; height: auto; max-height: 58%;
    transform: translate(-50%, -50%);
    object-fit: contain; background: transparent;
  }
  .mesh {
    position: absolute; inset: 0; pointer-events: none;
    background:
      radial-gradient(circle at 18% 12%, rgba(121,40,202,.42), transparent 38%),
      radial-gradient(circle at 86% 22%, rgba(255,0,128,.28), transparent 34%);
  }
  .shade {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(10,5,24,.58) 0%, rgba(10,5,24,.18) 36%, rgba(10,5,24,.12) 54%, rgba(10,5,24,.82) 100%);
  }
  .splash-ui { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; padding: calc(10px + var(--safe-t)) 16px calc(28px + var(--safe-b)); }
  .tick-track { height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; box-shadow: 0 0 16px rgba(121,40,202,.45); }
  #tickBar { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #7928CA, #FF0080); box-shadow: 0 0 14px #FF0080, 0 0 28px #7928CA; }
  .tick-row { display: flex; align-items: center; margin-top: 12px; }
  #tickLabel { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #f0e7ff; }
  #tickNum { display: none !important; }
  .splash-copy { margin-top: auto; }
  .splash-copy .mark { display: inline-block; margin-bottom: 8px; }
  .splash-title {
    margin: 0; font-family: Orbitron, sans-serif; font-weight: 800;
    font-size: clamp(1.35rem, 5.6vw, 1.85rem); line-height: 1.25;
    text-shadow: 0 0 18px rgba(255,0,128,.75), 0 0 36px rgba(121,40,202,.65);
  }
  #watchSub { margin: 10px 0 0; color: rgba(255,255,255,.88); font-size: 14px; line-height: 1.55; }
  video::-webkit-media-controls { display: none !important; }
  @media (prefers-reduced-motion: reduce) {
    #masthead, .dot { animation: none; }
  }
