:root { --surface2:#1d1d22; --gold:#f2c14e; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
  html, body { background: var(--bg); overflow-x: clip; }
  body { color: var(--ink); font-family: var(--jp-font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
  .wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px 90px; }
  header { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 8px; }
  header .brand { font-family: var(--disp); font-weight: 700; font-size: 44px; letter-spacing: .16em; line-height: 1; text-transform: uppercase; color: var(--accent); }
  header .brand small { font-size: inherit; letter-spacing: inherit; color: inherit; margin-left: .4em; font-weight: inherit; text-transform: uppercase; vertical-align: baseline; }
  header .brand .eia { color: var(--accent); }

  .hero { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; padding: 10px 0 22px; }
  .eyebrow { font-family: var(--disp); font-size: 12px; font-weight: 700; letter-spacing: .26em; color: var(--accent); }
  .hero .h1 { font-family: var(--disp); font-size: clamp(40px, 6vw, 56px); font-weight: 700; line-height: 1; letter-spacing: .06em; }
  .hero p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 560px; }
  .hero .big { font-family: var(--disp); font-weight: 700; font-size: clamp(54px, 9vw, 96px); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
  .hero .big small { font-size: .38em; color: var(--muted); margin-left: 4px; font-weight: 700; }

  .shelf { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 6px 0 0; }
  @media (max-width: 720px) { .shelf { grid-template-columns: repeat(5, 1fr); gap: 8px; } }
  .slot { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px dashed var(--line); display: grid; place-items: center; font-family: var(--disp); font-weight: 700; color: var(--line); font-size: 22px; }
  .slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.34); }
  .slot.done { border: 0; box-shadow: 0 0 0 2px var(--gold), 0 8px 26px rgba(242,193,78,.18); }
  .slot.done::after { content: "✓"; position: absolute; right: 8px; bottom: 6px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #1a1408; display: grid; place-items: center; font-size: 15px; font-weight: 700; }
  .slot.done .dim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55)); }
  .slot.cur { border: 0; box-shadow: 0 0 0 2px var(--accent), 0 10px 30px rgba(255,140,0,.28); }
  .slot.cur .ring { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 1; height: 4px; background: rgba(0,0,0,.5); border-radius: 3px; overflow: hidden; }
  .slot.cur .ring i { display: block; height: 100%; width: var(--p, 0%); background: var(--accent); }
  .slot.cur .dim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.6)); }
  .slot.empty { cursor: pointer; transition: border-color .2s, color .2s; }
  .slot.empty:hover { border-color: var(--muted); color: var(--muted); }
  .slot.empty .plus { font-size: 30px; line-height: 1; }
  .slot.empty small { display: block; font-size: 11px; letter-spacing: .16em; margin-top: 4px; }
  .slot.has { cursor: pointer; border: 0; box-shadow: 0 0 0 1px var(--line); }
  .slot.has .dim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.6)); }
  .slot.has .ring { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 1; height: 4px; background: rgba(0,0,0,.5); border-radius: 3px; overflow: hidden; }
  .slot.has .ring i { display: block; height: 100%; width: var(--p, 0%); background: var(--accent); }
  .slot .rm { position: absolute; right: 8px; top: 8px; z-index: 2; width: 26px; height: 26px; }
  .slot .rm::before { content: ''; position: absolute; inset: -9px; }
  .slot .rm {  border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; font-size: 17px; line-height: 1; opacity: 0; transition: opacity .2s, background .2s; backdrop-filter: blur(4px); }
  .slot:hover .rm { opacity: 1; }
  .slot .rm:hover { background: #ff5050; }
  @media (hover: none) { .slot.sel .rm { opacity: 1; } }
  .slot.sel { box-shadow: 0 0 0 2px var(--accent), 0 10px 30px rgba(255,140,0,.28); }
  .slot.pick { box-shadow: 0 0 0 2px var(--accent); border-style: solid; }

  .slot.drag { opacity: .35; }
  .slot.over { box-shadow: 0 0 0 2px var(--accent); border-style: solid; transform: scale(.96); }
  .slot { transition: transform .15s, opacity .15s; }
  .slotghost { position: fixed; z-index: 60; pointer-events: none; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 44px rgba(0,0,0,.55), 0 0 0 2px var(--accent); transform: translate(-50%, -50%) scale(1.06); }
  .slotghost img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.34); display: block; }

  .u .songsw { position: relative; min-width: 0; display: flex; align-items: center; }
  .u .songs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 2px 0; }
  .u .songs::-webkit-scrollbar { display: none; }
  .u .songs img { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; background: #000; box-shadow: 0 0 0 1px var(--line); }
  .u .songs span { display: block; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 7px; overflow: hidden; }
  .u .songs span img { transform: scale(1.34); }
  .u .songsw .arr { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 22px; height: 30px; display: none; place-items: center;
    font-family: var(--disp); font-size: 15px; line-height: 1; color: var(--ink); background: linear-gradient(90deg, rgba(20,20,22,0), var(--surface2) 42%); border: 0; cursor: pointer; }
  .u .songsw .arr.l { left: -2px; transform: translateY(-50%) scaleX(-1); }
  .u .songsw .arr.r { right: -2px; }
  .u .songsw.of .arr.r, .u .songsw.of.at .arr.l { display: grid; }
  .u .songsw.of.end .arr.r { display: none; }
  .slot.cur .no { position: absolute; left: 10px; top: 8px; z-index: 1; font-size: 11px; letter-spacing: .2em; color: #fff; }


  .now { display: grid; grid-template-columns: 300px 1fr; gap: 26px; margin-top: 22px; background: var(--surface); border-radius: 22px; padding: 22px; box-shadow: inset 0 0 0 1px var(--line); }
  @media (max-width: 760px) { .now { grid-template-columns: 1fr; } }
  .now .cover { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #000; }
  .now .cover img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.34); }
  .now .cover .lv { position: absolute; left: 12px; top: 12px; padding: 4px 9px; border-radius: 999px; font-family: var(--disp); font-size: 11px; letter-spacing: .12em; font-weight: 700; background: rgba(0,0,0,.5); color: #fff; backdrop-filter: blur(6px); }
  .now .head .k { font-family: var(--disp); font-size: 12px; letter-spacing: .26em; color: var(--accent); font-weight: 700; }
  .now .head h2 { font-family: var(--disp); font-weight: 700; font-size: 34px; line-height: 1.1; margin-top: 6px; }
  .now .head .who { color: var(--muted); font-size: 14px; margin-top: 4px; }
  .meters { display: grid; gap: 14px; margin-top: 22px; }
  .m { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center; }
  .m .k { font-family: var(--disp); font-size: 13px; font-weight: 700; letter-spacing: .18em; color: var(--muted); }
  .m .k.done { color: var(--ok); }
  .m .bar { position: relative; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
  .m .bar i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--accent); border-radius: 4px; transition: width .35s; }
  .m .bar.done i { background: var(--ok); }
  .m .num { font-family: var(--disp); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 82px; text-align: right; }
  .m .num small { color: var(--muted); font-size: 12px; margin-left: 4px; }
  .m button, .m a.go { grid-column: 3; justify-self: end; }
  .now .acts { margin-top: 22px; padding-top: 8px; border-top: 1px solid var(--line); }
  .cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 44px; padding: 10px 20px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; }
  .cta.ghost { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; }
  .cta.ghost:hover { color: var(--ink); }
  .acts { display: flex; gap: 10px; flex-wrap: wrap; }


  .panel { margin-top: 22px; background: var(--surface); border-radius: 22px; padding: 22px; box-shadow: inset 0 0 0 1px var(--line); }
  .panel .ph { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
  .panel .ph h3 { font-family: var(--disp); font-size: 20px; font-weight: 700; letter-spacing: .04em; }
  .panel .ph .s { color: var(--muted); font-size: 13px; }
  .words { display: flex; flex-wrap: wrap; gap: 8px; }
  .words button { position: relative; padding: 8px 13px; border-radius: 999px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--disp); font-size: 15px; font-weight: 500; letter-spacing: .01em; color: var(--muted); }
  .words button::before { content: ''; position: absolute; inset: -4px 0; }
  .words button[aria-pressed="true"] { background: rgba(61,220,132,.14); box-shadow: inset 0 0 0 1px var(--ok); color: var(--ink); }
  .words .all { margin-top: 12px; }
  .panel .sub { margin: 18px 0 10px; font-family: var(--disp); font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--muted); }
  .panel .sub small { color: var(--accent); margin-left: 4px; }
  .words.idioms button { display: grid; text-align: left; padding: 8px 14px; border-radius: 14px; }
  .words.idioms button b { font-weight: 700; font-size: 15px; }
  .words.idioms button span { font-family: var(--jp-font); font-size: 11.5px; color: var(--muted); }
  .words.idioms button[aria-pressed="true"] span { color: var(--ink); opacity: .8; }

  .units { display: grid; gap: 8px; }
  .u { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(0, auto) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); }
  .u .row { display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: center; min-width: 0; }
  .u .id { font-family: var(--disp); font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
  .u .t { font-size: 14px; font-weight: 700; }
  .u .st { font-family: var(--disp); font-size: 12px; letter-spacing: .1em; font-weight: 700; color: var(--muted); white-space: nowrap; }
  .u.ok .st { color: var(--ok); } .u.ok .id { color: var(--ok); }

  @media (max-width: 720px) {
    .u { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
    .u .songsw { grid-column: 1 / -1; order: 2; }
    .u .st { order: 1; }
    .u .songs img, .u .songs span { width: 34px; height: 34px; }
  }
  .u.next { box-shadow: inset 0 0 0 2px var(--accent); }
  .u.next .st { color: var(--accent); }


  .pick .ph { margin-bottom: 8px; }
  .eras { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
  .eras .lab { align-self: center; font-family: var(--disp); font-size: 15px; font-weight: 700; letter-spacing: .18em; margin-right: 6px; }
  .eras button { padding: 9px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-family: var(--disp); font-size: 13px; font-weight: 700; letter-spacing: .04em; position: relative; }
  .eras button::before { content: ''; position: absolute; inset: -4px 0; }
  .eras button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); color: var(--accent); }
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px 14px; }
  @media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px 16px; } }
  .sc { position: relative; text-align: left; border-radius: 16px; overflow: hidden; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
  .sc:hover { transform: translateY(-3px); }
  .sc .th { display: block; position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
  .sc .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .sc .b { display: block; }
  .sc .th .yr, .sc .th .fav { position: absolute; z-index: 1; top: 10px; padding: 3px 8px; border-radius: 999px; font-family: var(--disp); font-size: 11px; letter-spacing: .12em; font-weight: 700; background: rgba(0,0,0,.5); color: #fff; backdrop-filter: blur(6px); }
  .sc .th .yr { left: 10px; } .sc .th .fav { right: 10px; color: var(--accent); }
  .sc .th .done { position: absolute; z-index: 1; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; color: var(--gold); font-family: var(--disp); font-weight: 700; letter-spacing: .2em; }
  .sc .b { padding: 10px 12px 12px; }
  .sc .b b { display: block; font-family: var(--disp); font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sc .b span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sc .b .st { margin-top: 6px; font-family: var(--disp); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
  .sc .b .lv { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin-right: 6px; border-radius: 6px; font-family: var(--disp); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .sc .b .lv-1 { color: var(--lv-1, #3ddc84); background: rgba(61,220,132,.18); box-shadow: inset 0 0 0 1px rgba(61,220,132,.5); }
  .sc .b .lv-2 { color: var(--lv-2, #4cc9f0); background: rgba(76,201,240,.18); box-shadow: inset 0 0 0 1px rgba(76,201,240,.5); }
  .sc .b .lv-3 { color: var(--lv-3, #ffd60a); background: rgba(255,214,10,.18); box-shadow: inset 0 0 0 1px rgba(255,214,10,.5); }
  .sc .b .lv-4 { color: var(--lv-4, #ff8c00); background: rgba(255,140,0,.18); box-shadow: inset 0 0 0 1px rgba(255,140,0,.5); }
  .sc .b .lv-5 { color: var(--lv-5, #ff4d6d); background: rgba(255,77,109,.18); box-shadow: inset 0 0 0 1px rgba(255,77,109,.5); }
  .panel.pick.still { animation: none; }
  .sc.chosen { cursor: default; }
  .sc.chosen:hover { transform: none; }
  .note { color: var(--muted); font-size: 13px; margin-top: 14px; }

  .fin { text-align: center; padding: 40px 20px; background: linear-gradient(180deg, rgba(242,193,78,.12), rgba(242,193,78,0)); border-radius: 22px; box-shadow: inset 0 0 0 1px rgba(242,193,78,.35); }
  .fin .k { color: var(--gold); }
  .fin h2 { font-size: 30px; font-weight: 700; margin: 10px 0 4px; }
  .fin p { color: var(--muted); }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .now, .panel, .pick { animation: rise .4s cubic-bezier(.2,.7,.2,1) both; }

  @media (max-width: 600px) {
    .hero { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px 16px; }
    .hero > div:first-child { display: contents; }
    .hero .h1 { grid-column: 1; grid-row: 1; }
    .hero .big { grid-column: 2; grid-row: 1; font-size: 44px; }
    .hero p { grid-column: 1 / -1; grid-row: 2; margin-top: 10px; }
    .shelf { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .panel { padding: 16px 14px; border-radius: 16px; }
    .panel .ph { flex-direction: column; align-items: flex-start; gap: 4px; }
    .pick .ph .s button { display: inline-block; margin-top: 8px; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--accent); }
    .u { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
    .u .st { order: 1; justify-self: start; white-space: normal; }
    .u.one .songsw { display: none; }
    .eras { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 12px -14px 16px; padding: 0 14px; }
    .eras::-webkit-scrollbar { display: none; }
    .eras button, .eras .lab { flex: none; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
    .sc .b { padding: 8px 10px 10px; }
    .more { display: flex; justify-content: center; margin-top: 16px; }
  }
  .more { display: flex; justify-content: center; margin-top: 18px; }
  @media (max-width: 600px) { header .brand { font-size: 46px; letter-spacing: .2em; -webkit-text-stroke: 1px currentColor; } header .brand small { display: none; } }
