html { background: #171b1d; }
.timer-page {
  min-height: 100svh;
  color: #eee8d9;
  background:
    linear-gradient(90deg, rgba(117,23,15,.2), transparent 35%),
    #171b1d;
}
.timer-page::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("/assets/original/116884_2f071758f0a445d09d2ecc1b89f48340~mv2.png.webp") center / 720px auto;
  opacity: .035;
  pointer-events: none;
  content: "";
}
.timer-main { position: relative; z-index: 1; }
.timer-page .site-progress { background: #8ed6ce; }
.timer-page .site-header {
  position: absolute;
  color: #eee8d9;
  border-color: rgba(255,255,255,.13);
}
.timer-page .site-header.is-scrolled { position: fixed; background: rgba(23,27,29,.91); box-shadow: 0 8px 28px rgba(0,0,0,.24); backdrop-filter: blur(14px) saturate(1.08); }
.timer-page .brand-home small { color: #d9675b; }
.timer-page .top-nav > a { color: #eee8d9; }
.timer-page .top-nav .notice-nav-button { color: #ef8c80; background: transparent; }
.timer-page .top-nav .notice-nav-button:hover,
.timer-page .top-nav .notice-nav-button:focus-visible { color: #ffafa5; background: transparent; }
.timer-page .top-nav .notice-nav-button::before { background: rgba(238,232,217,.24); }
.timer-page .top-nav .timer-nav-button { color: #8ed6ce; background: transparent; }
.timer-page .top-nav .timer-nav-button:hover,
.timer-page .top-nav .timer-nav-button:focus-visible { color: #b8f2eb; background: transparent; }
.timer-page .top-nav a.timer-nav-button[aria-current="page"] { color: #8ed6ce; }
.timer-page .top-nav a.timer-nav-button[aria-current="page"]::after { display: block; background: #8ed6ce; transform: scaleX(1); }
.timer-page .top-nav a[aria-current="page"] { color: #ef8c80; }
.timer-page .top-nav a[aria-current="page"]::after { transform: scaleX(1); }
.timer-page .top-nav a.inquiry-nav-link:hover,
.timer-page .top-nav a.inquiry-nav-link:focus-visible,
.timer-page .top-nav a.inquiry-nav-link[aria-current="page"] { color: #ffafa5; }
.timer-main {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 122px max(5vw, calc((100vw - var(--content)) / 2)) 54px;
}
.battle-timer { width: 100%; }
.timer-heading {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 46px;
}
.timer-heading > span {
  color: #d87a6d;
  font: 700 11px/1.4 Arial, sans-serif;
  letter-spacing: 3px;
}
.timer-heading h1 {
  margin: 0;
  color: #f1eadb;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
}
.battle-timer-layout {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(420px, 1.2fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: start;
}
.battle-timer-console { min-width: 0; padding-left: 20px; border-left: 1px solid rgba(217,103,91,.28); }
.battle-timer-readout {
  color: #ff625d;
  font: 700 clamp(68px, 9vw, 118px)/.95 Consolas, "Courier New", monospace;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  text-align: center;
  text-shadow: 0 0 28px rgba(255,76,76,.12);
}
.timer-running .battle-timer-readout { animation: timer-breathe 1.8s ease-in-out infinite; }
.battle-timer-seconds {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 28px 0 8px;
  color: #a9ada9;
  font-size: 12px;
}
.battle-timer-seconds span { margin-right: auto; }
.battle-timer-seconds input {
  width: 92px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 0;
  color: #f1eadb;
  background: #111516;
  text-align: right;
  font: 14px/1 Consolas, monospace;
}
.battle-timer-range { width: 100%; accent-color: #c7493e; cursor: pointer; }
.battle-timer-actions,
.battle-timer-adjustments,
.battle-timer-tests { display: grid; gap: 8px; }
.battle-timer-actions { grid-template-columns: repeat(3, 1fr); margin-top: 25px; }
.battle-timer-adjustments { grid-template-columns: repeat(4, 1fr); margin-top: 8px; }
.battle-timer-tests { grid-template-columns: repeat(3, 1fr); margin-top: 8px; }
.battle-timer-actions button,
.battle-timer-adjustments button,
.battle-timer-tests button,
.battle-timer-sound {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.3);
  color: #eee8d9;
  background: transparent;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}
.battle-timer-actions button:first-child { border-color: #d9675b; color: #f0877b; }
.battle-timer-actions button:hover,
.battle-timer-actions button:focus-visible,
.battle-timer-adjustments button:hover,
.battle-timer-adjustments button:focus-visible,
.battle-timer-tests button:hover,
.battle-timer-tests button:focus-visible,
.battle-timer-sound:hover,
.battle-timer-sound:focus-visible { border-color: #d9675b; background: rgba(255,255,255,.045); }
.battle-timer-actions button:not(:disabled):hover,
.battle-timer-adjustments button:hover,
.battle-timer-tests button:not(:disabled):hover,
.battle-timer-sound:hover { transform: translateY(-1px); }
.battle-timer-actions button:disabled,
.battle-timer-tests button:disabled { opacity: .35; cursor: default; }
.battle-timer-volume {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}
.battle-timer-volume label { color: #a9ada9; font-size: 12px; }
.battle-timer-volume output { float: right; color: #eee8d9; font-family: Consolas, monospace; }
.battle-timer-volume input { width: 100%; accent-color: #c7493e; cursor: pointer; }
.battle-timer-tests button {
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.2);
  color: #c8c5bc;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}
.battle-timer-sound {
  width: 100%;
  margin-top: 8px;
  border-color: rgba(255,255,255,.15);
  color: #a9ada9;
  font-size: 12px;
}
.battle-timer-sound[aria-pressed="false"] { color: #737877; }
.battle-timer-status { min-height: 24px; margin: 12px 0 0; color: #8f9794; font-size: 12px; }
.battle-timer-schedule { border-top: 2px solid #d9675b; }
.battle-timer-next {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.battle-timer-next span { color: #d9675b; font-size: 12px; }
.battle-timer-next strong { font-size: 16px; }
.battle-timer-schedule ol { padding: 0; margin: 0; list-style: none; }
.battle-timer-event {
  display: grid;
  grid-template-columns: 64px 58px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: #d9d4c9;
}
.battle-timer-event time { color: #fff; font: 13px/1 Consolas, monospace; font-variant-numeric: tabular-nums; }
.battle-timer-event i { color: #d77b70; font: normal 11px/1 Arial, sans-serif; }
.battle-timer-event span { font-size: 13px; }
.battle-timer-event small { color: #858b89; }
.battle-timer-event.is-passed { opacity: .35; }
.battle-timer-event.is-next { background: linear-gradient(90deg, rgba(201,73,62,.12), transparent 75%); }
.battle-timer-event.is-next time { color: #ff746b; }
.battle-timer-event { transition: opacity .2s ease, padding-left .2s ease, background .2s ease; }
.battle-timer-event.is-next { padding-left: 12px; }

@keyframes timer-breathe {
  0%, 100% { text-shadow: 0 0 28px rgba(255,76,76,.12); }
  50% { text-shadow: 0 0 38px rgba(255,98,93,.26); }
}

@media (max-width: 850px) {
  .timer-page .site-header.nav-open { background: rgba(23,27,29,.97); }
  .timer-page .nav-toggle { color: #eee8d9; border-color: rgba(238,232,217,.38); background: rgba(23,27,29,.7); }
  .timer-page .top-nav { border-color: rgba(238,232,217,.18); background: rgba(23,27,29,.98); box-shadow: 0 18px 44px rgba(0,0,0,.34); }
  .timer-page .top-nav > a,
  .timer-page .top-nav .notice-nav-button,
  .timer-page .top-nav .timer-nav-button { border-bottom-color: rgba(238,232,217,.14); background: transparent; }
  .timer-main { display: block; padding: 104px 22px 58px; }
  .timer-heading { display: block; margin-bottom: 40px; }
  .timer-heading h1 { margin-top: 10px; }
  .battle-timer-layout { grid-template-columns: 1fr; gap: 52px; }
  .battle-timer-console { max-width: 560px; }
}

@media (max-width: 540px) {
  .timer-main { padding-top: 94px; }
  .timer-heading h1 { font-size: 38px; }
  .battle-timer-readout { font-size: clamp(64px, 22vw, 96px); }
  .battle-timer-adjustments { grid-template-columns: repeat(2, 1fr); }
  .battle-timer-tests { grid-template-columns: 1fr; }
  .battle-timer-event { grid-template-columns: 58px 52px 1fr; gap: 8px; }
  .battle-timer-event span { font-size: 12px; }
  .battle-timer-next { grid-template-columns: 72px 1fr; gap: 10px; }
  .battle-timer-console { padding-left: 12px; }
}
