@font-face {
  font-family: Oswald;
  src: url('/assets/fonts/oswald-bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
:root { font-family: Freesentation, 'Malgun Gothic', sans-serif; color: #1c2023; background: #f4f5f6; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #ff8c45; outline-offset: 4px; }
[hidden] { display: none !important; }
.ranking-header {
  height: 76px; background: #191c1e; color: #fff; display: flex;
  justify-content: space-between; align-items: center;
  padding: 0 max(28px, calc((100vw - 1120px) / 2)); gap: 24px;
}
.ranking-header img { width: 177px; height: 52px; object-fit: contain; display: block; }
.ranking-header > a:last-child { font-size: 13px; color: #e4e6e8; white-space: nowrap; }
.ranking-header span { color: #ff7927; margin-left: 8px; }
main { width: min(920px, calc(100% - 48px)); margin: 64px auto; }
.access-intro { margin-bottom: 32px; }
.access-intro h1 { font-size: 34px; margin: 12px 0; letter-spacing: -.03em; }
.access-intro h1.brand-title { font: 700 clamp(32px, 4.1vw, 48px)/1.2 Oswald, sans-serif; letter-spacing: -.02em; }
.access-intro p { color: #66717a; font-size: 16px; line-height: 1.65; margin-top: 10px; }
#device-access { max-width: 480px; margin: 0 auto; }
#device-access > a { display: inline-block; font-size: 14px; color: #66717a; margin-bottom: 22px; }
.access-card { padding: 32px; border: 1px solid #dfe3e5; border-radius: 12px; background: #fff; }
.access-card label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.code-field { display: flex; align-items: center; border: 1px solid #c5ccd3; border-radius: 6px; overflow: hidden; }
.code-field:focus-within { border-color: #b94308; box-shadow: 0 0 0 3px #ff6a171a; }
.code-field input { min-width: 0; width: 100%; height: 54px; padding: 0 16px; background: #fff; border: 0; font-size: 20px; letter-spacing: 2px; outline: 0; }
.code-field button { align-self: stretch; background: #f7f8f9; border: 0; border-left: 1px solid #dfe3e7; padding: 0 15px; font-size: 14px; color: #59616b; cursor: pointer; }
.code-hint { font-size: 13px; color: #687078; line-height: 1.5; margin: 12px 0; }
.access-error { min-height: 24px; color: #a72d0b; font-size: 14px; margin: 14px 0; }
.access-submit { width: 100%; border: 0; border-radius: 6px; height: 52px; background: #f56b22; font-weight: 700; font-size: 16px; cursor: pointer; color: #161a1c; }
.access-submit:hover { background: #ef5e10; }
.access-submit:disabled { opacity: .55; cursor: wait; }
.device-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.device-card {
  display: flex; flex-direction: column; align-items: start; min-height: 290px;
  padding: 34px; background: #fff; border: 1px solid #dfe3e5; border-radius: 12px;
  transition: border-color .15s;
}
.device-card:hover { border-color: #f56b22; }
.device-card svg { width: 40px; height: 40px; color: #a83c08; stroke: currentColor; fill: none; stroke-width: 1.6; }
.device-card h2 { font-size: 25px; margin: 26px 0 10px; letter-spacing: -.025em; }
.device-card p { font-size: 16px; color: #66717a; margin: 0; line-height: 1.65; }
.device-open { width: 100%; margin-top: auto; padding-top: 26px; color: #a63b08; font-size: 14px; font-weight: 700; }
@media (max-width: 600px) {
  .ranking-header { height: 68px; padding: 0 20px; }
  .ranking-header img { width: 145px; }
  .ranking-header > a:last-child { font-size: 12px; }
  main { width: calc(100% - 40px); margin: 36px auto; }
  .access-intro h1 { font-size: 29px; }
  .access-card { padding: 24px; }
  .device-grid { grid-template-columns: 1fr; gap: 16px; }
  .device-card { padding: 26px; min-height: 245px; }
  .device-card h2 { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { .device-card { transition: none; } }

.picker-navigation { display:flex; align-items:center; gap:20px; font-size:13px; }
.picker-preview { margin:0 0 24px; color:#687078; font-size:12px; }
@media(max-width:600px) { .ranking-header { height:auto; min-height:68px; padding-block:14px; flex-wrap:wrap; gap:14px; } .picker-navigation { gap:16px; font-size:12px; } }
