:root {
  --paper: #f2f1ec;
  --ink: #151515;
  --soft-ink: #5e5d59;
  --line: rgba(21,21,21,.18);
  --time: #ff5a36;
  --time-soft: #ffb19d;
  --feed: #3157ff;
  --chips: #8adf75;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, a { font: inherit; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; color: #fff; background: #000; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.hub-header { position: fixed; inset: 0 0 auto; z-index: 30; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(20px, calc((100vw - 1380px)/2)); border-bottom: 1px solid rgba(21,21,21,.11); background: rgba(242,241,236,.8); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); }
.hub-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 11px; font-weight: 650; letter-spacing: .01em; }
.hub-brand img { width: 19px; height: 19px; }
.hub-header nav { display: flex; align-items: center; gap: 18px; }
.studio-link { color: var(--soft-ink); text-decoration: none; font-size: 11px; }
.studio-link:hover { color: var(--ink); }
.lang-toggle { width: 40px; height: 30px; border: 1px solid var(--line); border-radius: 99px; background: transparent; cursor: pointer; font-size: 11px; font-weight: 650; }
.lang-toggle:hover { color: #fff; background: var(--ink); }

.featured-game { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0,.9fr) minmax(500px,1.1fr); gap: clamp(50px,7vw,110px); align-items: center; padding: 126px max(24px,calc((100vw - 1380px)/2)) 80px; border-bottom: 1px solid var(--line); }
.feature-copy { position: relative; z-index: 2; }
.game-meta, .chapter-rule { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 600; }
.game-meta i { width: 22px; height: 1px; background: var(--line); }
.game-meta strong { color: var(--time); font-weight: 650; }
h1 { margin: 20px 0 10px; font-size: clamp(160px,17vw,278px); line-height: .76; letter-spacing: -.095em; font-weight: 730; font-variant-numeric: tabular-nums; }
.feature-hook { margin-top: 40px; }
.feature-hook p { margin: 0; font-size: clamp(24px,2.2vw,34px); line-height: 1.18; letter-spacing: -.035em; font-weight: 610; text-wrap: balance; }
.feature-hook p + p { color: var(--soft-ink); }
.play-cta { width: fit-content; min-height: 52px; display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 34px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 2px; color: #fff; background: var(--ink); text-decoration: none; font-size: 14px; font-weight: 650; transition: transform .2s, color .2s, background .2s; }
.play-cta:hover { color: var(--ink); background: var(--time); transform: translate(4px,-4px); }
.play-cta b { font-size: 18px; font-weight: 400; }

.time-trailer { position: relative; min-height: 590px; display: flex; flex-direction: column; padding: clamp(24px,3vw,42px); color: #f5f5f2; background: #151515; overflow: hidden; }
.time-trailer::before { content: "1440"; position: absolute; right: -3%; bottom: -10%; color: rgba(255,255,255,.025); font-size: 260px; line-height: .8; font-weight: 750; letter-spacing: -.1em; pointer-events: none; }
.trailer-top { position: relative; display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.15); }
.trailer-top span { color: #979793; font-size: 12px; }
.trailer-top strong { font-size: 32px; font-weight: 650; font-variant-numeric: tabular-nums; }
.time-grid { position: relative; display: grid; grid-template-columns: repeat(18,1fr); gap: clamp(5px,.55vw,9px); margin: auto 0; padding: 38px 0; }
.time-grid i { aspect-ratio: 1; display: block; background: #d9d8d2; transform: scale(.82); transition: background .55s cubic-bezier(.2,.8,.2,1), opacity .55s, transform .55s; }
.time-grid i.taken { background: #3a3937; opacity: .52; transform: scale(.58); }
.time-grid i.fragment { background: var(--time); opacity: 1; transform: scale(.88); }
.time-grid i.mine { background: #f8f7f2; opacity: 1; transform: scale(1); }
.trailer-bottom { position: relative; display: grid; grid-template-columns: minmax(130px,auto) 1fr auto; gap: 20px; align-items: end; }
.deduction-label { display: flex; flex-direction: column; gap: 5px; }
.deduction-label span { font-size: 14px; font-weight: 650; }
.deduction-label small { color: #777773; font-size: 10px; }
.trailer-progress { height: 2px; margin-bottom: 8px; background: rgba(255,255,255,.15); }
.trailer-progress i { width: 0; height: 100%; display: block; background: var(--time); transition: width .7s ease; }
#replay-trailer { padding: 0 0 5px; border: 0; color: #9d9d98; background: transparent; cursor: pointer; font-size: 11px; }
#replay-trailer:hover { color: #fff; }
.trailer-note { position: absolute; right: max(24px,calc((100vw - 1380px)/2)); bottom: 24px; margin: 0; color: #77756f; font-size: 10px; }

.game-chapter { min-height: 94svh; padding: 86px max(24px,calc((100vw - 1380px)/2)) 110px; border-bottom: 1px solid var(--line); }
.chapter-rule { justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.chapter-rule em { color: var(--soft-ink); font-size: 10px; font-style: normal; font-weight: 550; }
.chapter-layout { min-height: calc(94svh - 215px); display: grid; grid-template-columns: minmax(320px,.75fr) minmax(520px,1.25fr); gap: clamp(60px,9vw,150px); align-items: center; }
.chapter-layout.reverse .chapter-copy { grid-column: 2; }
.chapter-layout.reverse .chips-preview { grid-column: 1; grid-row: 1; }
.chapter-kicker { margin: 0 0 20px; color: var(--soft-ink); font-size: 12px; font-weight: 550; }
h2 { margin: 0; font-size: clamp(78px,9.5vw,148px); line-height: .82; letter-spacing: -.075em; font-weight: 720; }
.chapter-hook { max-width: 600px; margin: 36px 0 28px; font-size: clamp(23px,2.2vw,34px); line-height: 1.2; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.status-pill { display: inline-flex; min-height: 32px; align-items: center; padding: 0 12px; border: 1px solid currentColor; border-radius: 99px; color: var(--soft-ink); font-size: 10px; font-weight: 600; }

.feed-chapter { color: #f4f5ff; background: #10111a; }
.feed-chapter .chapter-rule { border-color: rgba(255,255,255,.18); }
.feed-chapter .chapter-rule em, .feed-chapter .chapter-kicker { color: #9699aa; }
.feed-chapter .chapter-hook { color: #b9bbca; }
.feed-chapter .status-pill { color: #a6b3ff; }
.feed-preview { position: relative; max-width: 760px; padding: 26px; border: 1px solid rgba(255,255,255,.16); background: #181a28; box-shadow: 20px 20px 0 var(--feed); }
.feed-controls { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 17px; color: #797c90; font-size: 9px; font-weight: 650; }
.feed-preview ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feed-preview li { min-height: 82px; display: grid; grid-template-columns: 34px 1fr auto; gap: 18px; align-items: center; padding: 0 18px; border-top: 1px solid rgba(255,255,255,.1); background: #202232; transition: transform .55s cubic-bezier(.2,.8,.2,1), background .3s; }
.feed-preview li b { color: #6f7286; font-size: 10px; }
.feed-preview li span { font-size: 15px; font-weight: 550; }
.feed-preview li em { color: #8998ff; font-size: 20px; font-style: normal; font-weight: 650; }
.feed-preview li:first-child { background: #292c42; }
.feed-preview > p, .chips-preview > p { margin: 18px 0 0; color: #7f8297; font-size: 11px; }

.chips-chapter { background: #dfe3dc; }
.chips-preview { max-width: 690px; padding: 28px; color: #e9eee8; background: #202621; }
.room-clock { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.16); }
.room-clock span { font-size: 54px; line-height: 1; font-weight: 650; letter-spacing: -.05em; }
.room-clock small { color: #8c968d; font-size: 10px; }
.device-list > div { min-height: 61px; display: grid; grid-template-columns: 1fr 7px 70px; gap: 14px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.1); }
.device-list span, .device-list b { font-size: 11px; font-weight: 600; }
.device-list i { width: 7px; height: 7px; border-radius: 50%; background: var(--chips); box-shadow: 0 0 10px rgba(138,223,117,.6); }
.device-list b { color: var(--chips); text-align: right; }
.device-list > div.offline i { background: #747a75; box-shadow: none; }
.device-list > div.offline b { color: #747a75; }
.device-list > div.offline span { color: #818782; text-decoration: line-through; }
.chips-preview > p { color: #909a91; }

footer { min-height: 110px; display: grid; grid-template-columns: 1fr auto auto auto; gap: 28px; align-items: center; padding: 30px max(20px,calc((100vw - 1380px)/2)); color: #85847e; background: #151515; font-size: 10px; }
footer button { padding: 0; border: 0; color: #b6b5af; background: transparent; cursor: pointer; font-size: 10px; }
footer a { color: #b6b5af; text-decoration: none; }

:focus-visible { outline: 3px solid var(--time); outline-offset: 4px; }

@media (max-width: 1050px) {
  .featured-game { grid-template-columns: 1fr; gap: 60px; }
  .feature-copy { max-width: 780px; }
  h1 { font-size: clamp(156px,28vw,250px); }
  .time-trailer { width: 100%; min-height: 520px; }
  .trailer-note { position: static; justify-self: end; }
  .chapter-layout, .chapter-layout.reverse { grid-template-columns: 1fr; gap: 64px; padding-top: 80px; }
  .chapter-layout.reverse .chapter-copy, .chapter-layout.reverse .chips-preview { grid-column: 1; grid-row: auto; }
  .feed-preview, .chips-preview { width: 100%; max-width: none; }
}

@media (max-width: 650px) {
  .hub-header { height: 50px; padding: 0 16px; }
  .hub-brand { font-size: 10px; }
  .studio-link { display: none; }
  .featured-game { min-height: auto; gap: 40px; padding: 96px 16px 54px; }
  .game-meta { font-size: 10px; }
  h1 { margin-top: 18px; font-size: clamp(116px,38vw,162px); }
  .feature-hook { margin-top: 30px; }
  .feature-hook p { font-size: clamp(23px,6.8vw,29px); }
  .play-cta { width: 100%; min-height: 50px; margin-top: 28px; }
  .time-trailer { min-height: 340px; padding: 20px 16px; }
  .time-trailer::before { font-size: 150px; }
  .trailer-top strong { font-size: 25px; }
  .time-grid { grid-template-columns: repeat(12,1fr); gap: 5px; padding: 26px 0; }
  .trailer-bottom { grid-template-columns: 1fr auto; gap: 14px; }
  .trailer-progress { grid-column: 1 / -1; grid-row: 2; }
  #replay-trailer { grid-column: 2; grid-row: 1; }
  .trailer-note { font-size: 9px; }
  .game-chapter { min-height: auto; padding: 64px 16px 78px; }
  .chapter-layout, .chapter-layout.reverse { min-height: auto; gap: 48px; padding-top: 58px; }
  h2 { font-size: clamp(66px,20vw,94px); }
  .chapter-hook { margin-top: 28px; font-size: 24px; }
  .feed-preview { padding: 14px; box-shadow: 8px 8px 0 var(--feed); }
  .feed-controls { font-size: 8px; }
  .feed-preview li { min-height: 70px; grid-template-columns: 24px 1fr auto; gap: 10px; padding: 0 10px; }
  .feed-preview li span { font-size: 13px; }
  .feed-preview li em { font-size: 17px; }
  .chips-preview { padding: 20px 16px; }
  .room-clock span { font-size: 44px; }
  footer { grid-template-columns: 1fr auto; gap: 18px; padding: 34px 16px; }
  footer span:nth-of-type(2), footer a { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
