:root {
  color-scheme: dark;
  font-family: Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background: #0b0c0d;
  color: #f3f3f1;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 50% -15%, #292b2e 0, #111315 38%, #0b0c0d 72%); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #303235; padding: 0 max(24px, calc((100vw - 1120px) / 2)); background: rgba(13,14,15,.82); backdrop-filter: blur(14px); }
.brand { color: #f0f0ed; display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #e7e6e1; color: #111214; font-family: Georgia, serif; font-size: 21px; }
.ttl-badge { padding: 7px 11px; border: 1px solid #494b4e; border-radius: 999px; color: #b8b8b5; font-size: 12px; }
main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 96px 0 44px; }
.hero { max-width: 850px; margin: 0 auto; text-align: center; }
.eyebrow { margin: 0 0 18px; color: #a2a4a7; font-size: 12px; font-weight: 700; letter-spacing: .23em; }
h1 { margin: 0; font-size: clamp(42px, 7vw, 78px); line-height: 1.08; letter-spacing: -.055em; }
.lead { margin: 26px auto 42px; color: #aaaead; font-size: clamp(15px, 2vw, 18px); line-height: 1.8; }
.download-form { text-align: left; padding: 24px; border: 1px solid #3e4043; border-radius: 20px; background: rgba(24,26,28,.84); box-shadow: 0 22px 80px rgba(0,0,0,.25); }
.download-form label { display: block; margin: 0 0 10px; color: #d6d6d3; font-size: 13px; font-weight: 700; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input { width: 100%; min-width: 0; border: 1px solid #4a4c4f; outline: 0; border-radius: 11px; padding: 15px 16px; color: #f4f4f1; background: #0f1112; transition: border-color .2s, box-shadow .2s; }
input:focus { border-color: #d0d0cd; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
input::placeholder { color: #65686a; }
button, .open-link { border: 0; border-radius: 11px; padding: 0 21px; background: #eeeeea; color: #111214; font-weight: 750; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, opacity .15s; }
button:hover, .open-link:hover { background: #fff; }
button:active, .open-link:active { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: .45; }
.form-note { margin: 12px 2px 0; color: #777a7c; font-size: 12px; }
.status-card { max-width: 850px; margin: 28px auto 0; padding: 26px; border: 1px solid #3e4043; border-radius: 20px; background: #17191b; }
.status-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.status-label, .meta-label { margin: 0 0 7px; color: #818487; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.status-heading h2 { margin: 0; font-size: 20px; }
.status-percent { color: #d8d8d5; font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 750; }
.progress-wrap { height: 7px; margin: 22px 0 12px; overflow: hidden; border-radius: 999px; background: #292b2d; }
.progress-wrap span { display: block; width: 0; height: 100%; border-radius: inherit; background: #e5e5e1; transition: width .35s ease; }
.status-message { margin: 0; color: #979a9c; font-size: 13px; }
.result { margin-top: 24px; padding-top: 24px; border-top: 1px solid #36383a; }
video { display: block; width: 100%; max-height: 480px; border-radius: 12px; background: #050505; }
.result-meta { display: flex; justify-content: space-between; gap: 20px; margin: 20px 0 14px; }
.result-title { margin: 0; overflow-wrap: anywhere; font-size: 16px; font-weight: 700; }
.expiry, .file-size { margin: 7px 0 0; color: #999c9e; font-size: 12px; font-variant-numeric: tabular-nums; }
.url-box { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.url-box input { color: #bfc1c2; }
.url-box button { min-width: 92px; }
.open-link { display: flex; justify-content: center; align-items: center; min-height: 49px; margin-top: 10px; background: #2a2c2e; color: #e8e8e5; }
.open-link:hover { background: #343638; }
.reset-button { width: 100%; min-height: 46px; margin-top: 14px; border: 1px solid #484a4c; background: transparent; color: #c4c5c3; }
.reset-button:hover { background: #232527; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 72px 0 40px; }
.rules article { min-height: 174px; padding: 24px; border: 1px solid #2f3133; border-radius: 16px; background: rgba(18,20,21,.6); }
.rules span { color: #74777a; font: 700 12px/1 monospace; }
.rules h2 { margin: 26px 0 10px; font-size: 16px; }
.rules p { margin: 0; color: #86898b; font-size: 13px; line-height: 1.7; }
.legal { margin: 0; color: #65686a; text-align: center; font-size: 11px; line-height: 1.7; }
@media (max-width: 680px) {
  .topbar { height: 62px; padding: 0 18px; }
  main { width: min(100% - 28px, 560px); padding-top: 58px; }
  .input-row, .url-box { grid-template-columns: 1fr; }
  .input-row button, .url-box button { min-height: 50px; }
  .download-form, .status-card { padding: 18px; border-radius: 16px; }
  .rules { grid-template-columns: 1fr; margin-top: 46px; }
  .rules article { min-height: 0; }
  .result-meta { display: block; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
