  :root{
    --bg:#0b1220;
    --card:#111b2d;
    --card2:#0f1828;
    --text:#e9eefc;
    --muted:rgba(233,238,252,.75);
    --line:rgba(233,238,252,.12);
    --accent:#ff8a2a;
    --danger:#ff5b5b;
    --badge:#1f2b44;
    --shadow:0 18px 50px rgba(0,0,0,.35);
    --radius:18px;
  }
  *{box-sizing:border-box}
  html,body{height:100%}
  body{
    margin:0;
    font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif;
    background: radial-gradient(1000px 600px at 20% -10%, rgba(255,138,42,.18), transparent 60%),
                radial-gradient(900px 500px at 95% 0%, rgba(86,162,255,.18), transparent 55%),
                var(--bg);
    color:var(--text);
  }
  a{color:#9dc2ff; text-decoration:none}
  a:hover{text-decoration:underline}

  /* ===== Header ===== */
  .header{
    position:sticky; top:0; z-index:50;
    display:flex; align-items:center; gap:12px;
    padding:14px 16px;
    background: rgba(10,16,30,.75);
    backdrop-filter: blur(10px);
    border-bottom:1px solid var(--line);
  }
  .header h1{
    margin:0;
    font-size:18px;
    letter-spacing:.02em;
    font-weight:800;
  }

  .header h1 a.home-link{ color:inherit; text-decoration:none; }

  /* ===== Hamburger Menu ===== */
  .menu-toggle{
    position:absolute;
    opacity:0;
    pointer-events:none;
  }
  .menu-btn{
    margin-left:auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:42px; height:42px;
    border-radius:12px;
    border:1px solid var(--line);
    background: rgba(255,255,255,.04);
    color:var(--text);
    cursor:pointer;
    user-select:none;
    font-size:20px;
  }
  .menu{
    position:absolute;
    top:62px;
    right:16px;
    width:min(86vw, 320px);
    background: rgba(17,27,45,.96);
    border:1px solid var(--line);
    border-radius:14px;
    box-shadow: var(--shadow);
    padding:10px;
    display:none;
  }
  .menu ul{list-style:none; margin:0; padding:0}
  .menu li a{
    display:block;
    padding:12px 12px;
    border-radius:12px;
    color:var(--text);
  }
  .menu li a:hover{
    background: rgba(255,255,255,.06);
    text-decoration:none;
  }
  #menuToggle:checked ~ .menu{ display:block; }

  /* ===== Main layout ===== */
  main{
    max-width: 980px;
    margin: 18px auto 40px;
    padding: 0 14px;
    display:grid;
    gap:14px;
  }

  .card{
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border:1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding:16px;
    overflow:hidden;
  }
  .card h2{
    margin:0 0 10px;
    font-size:18px;
    font-weight:900;
    letter-spacing:.02em;
  }

  .label{
    font-size:14px;
    color:var(--muted);
    margin-top:6px;
  }
  .info{
    margin-top:6px;
    font-size:16px;
    font-weight:700;
  }
  .info.weight{
    font-size:20px;
    font-weight:900;
    margin-top:10px;
  }

  .status-line{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:10px;
  }
  .badge{
    display:inline-flex;
    align-items:center;
    padding:6px 10px;
    border-radius:999px;
    background: rgba(31,43,68,.7);
    border:1px solid var(--line);
    color:var(--text);
    font-size:12px;
    font-weight:800;
  }

  /* Timer block */
  .timer-block{
    margin-top:14px;
    padding:14px;
    border-radius:16px;
    border:1px solid var(--line);
    background: rgba(0,0,0,.18);
    text-align:center;
  }
  .timer{
    font-size:44px;
    font-weight:1000;
    letter-spacing:.04em;
  }
  .status{
    margin-top:8px;
    font-size:13px;
    color:var(--muted);
  }

  /* Buttons */
  button{
    font: inherit;
  }
  .primary-btn, .danger-btn{
    width:100%;
    margin-top:12px;
    padding:14px 14px;
    border-radius:14px;
    border:1px solid var(--line);
    cursor:pointer;
    font-weight:900;
  }
  .primary-btn{
    background: linear-gradient(180deg, rgba(255,138,42,.95), rgba(255,120,20,.92));
    color:#1a0f07;
    border-color: rgba(255,138,42,.35);
  }
  .primary-btn:hover{ filter: brightness(1.04); }
  .danger-btn{
    background: rgba(255,91,91,.12);
    color: var(--text);
    border-color: rgba(255,91,91,.35);
  }
  .danger-btn:hover{ background: rgba(255,91,91,.18); }

  hr{
    border:0;
    border-top:1px solid var(--line);
    margin:14px 0;
  }

  /* Form */
  .form-row{
    display:grid;
    gap:8px;
    margin-top:12px;
  }
  .form-row label{
    font-size:13px;
    color: var(--muted);
    font-weight:800;
  }
  input[type="number"]{
    width:100%;
    padding:12px 12px;
    border-radius:14px;
    border:1px solid var(--line);
    background: rgba(255,255,255,.04);
    color: var(--text);
    outline:none;
    font-weight:900;
  }
  input[type="number"]::placeholder{ color: rgba(233,238,252,.45); }
  input[type="checkbox"]{ transform: scale(1.15); }

  /* Help tooltip */
  .help-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:28px; height:28px;
    border-radius:999px;
    border:1px solid var(--line);
    background: rgba(255,255,255,.04);
    color: var(--text);
    font-weight:900;
    margin-left:8px;
    cursor: help;
    position: relative;
    user-select:none;
  }
  .help-icon::after{
    content: attr(data-tip);
    position:absolute;
    right:0;
    top:36px;
    width:min(86vw, 360px);
    background: rgba(17,27,45,.98);
    border:1px solid var(--line);
    border-radius:12px;
    padding:10px 12px;
    color: var(--text);
    font-size:12px;
    line-height:1.45;
    box-shadow: var(--shadow);
    opacity:0;
    pointer-events:none;
    transform: translateY(-4px);
    transition: .15s ease;
    white-space: normal;
    z-index: 60;
  }
  .help-icon:hover::after,
  .help-icon:active::after,
  .help-icon:focus::after{
    opacity:1;
    transform: translateY(0);
  }

  /* Schedule table */
  .schedule{
    width:100%;
    border-collapse: separate;
    border-spacing:0;
    overflow:hidden;
    border-radius:14px;
    border:1px solid var(--line);
    background: rgba(0,0,0,.14);
  }
  .schedule thead th{
    text-align:left;
    font-size:12px;
    padding:10px 10px;
    background: rgba(255,255,255,.04);
    color: var(--muted);
    border-bottom:1px solid var(--line);
    font-weight:900;
    white-space:nowrap;
  }
  .schedule td{
    padding:10px 10px;
    border-bottom:1px solid rgba(233,238,252,.08);
    font-size:13px;
    vertical-align:top;
  }
  .schedule tbody tr:last-child td{ border-bottom:0; }
  .schedule tbody tr:hover td{ background: rgba(255,255,255,.03); }
  .note{
    margin-top:12px;
    font-size:12px;
    color: rgba(233,238,252,.72);
    line-height:1.55;
  }

  /* Ad slot */
  .ad-slot{ display:grid; justify-items:center; gap:4px; }
  .ad-label{ font-size:11px; color: rgba(233,238,252,.55); }

  /* Footer */
  .footer{
    padding:18px 14px 28px;
    text-align:center;
    color: rgba(233,238,252,.55);
  }

  /* Responsive */
  @media (min-width: 880px){
    main{ gap:16px; }
    .timer{ font-size:54px; }
  }
