/* Magnum Game Center — Jadwal Scrim */

:root {
  --red: #d20000;
  --red-dark: #8a0000;
  --red-glow: rgba(210, 0, 0, 0.45);
  --black: #000000;
  --surface: #0d0d0d;
  /* Semi-transparan supaya menyatu dengan gradient body */
  --surface-2: rgba(22, 22, 22, 0.62);
  --border: #2a2a2a;
  --silver: #c0c0c0;
  --text: #f0f0f0;
  --muted: #8a8a8a;
  --font-display: "Orbitron", "Segoe UI", sans-serif;
  --font-body: "Rajdhani", "Segoe UI", sans-serif;
  --radius: 10px;
  --transition: 0.22s ease;
  /* Sama arah dengan background halaman (atas → bawah gelap) */
  --panel-v: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.82) 0%,
    rgba(0, 0, 0, 0.48) 45%,
    rgba(5, 5, 5, 0.78) 100%
  );
  --panel-v-soft: linear-gradient(
    180deg,
    rgba(28, 28, 28, 0.58) 0%,
    rgba(0, 0, 0, 0.42) 100%
  );
  --panel-red-mist: radial-gradient(ellipse 130% 90% at 50% -35%, rgba(210, 0, 0, 0.11), transparent 55%);
  --panel-logo-fill: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.52) 0%,
    rgba(0, 0, 0, 0.32) 52%,
    rgba(5, 5, 5, 0.48) 100%
  );
  --panel-modal: linear-gradient(180deg, rgba(26, 18, 18, 0.88) 0%, rgba(0, 0, 0, 0.72) 100%);
  --panel-dock: linear-gradient(165deg, rgba(24, 24, 24, 0.72) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(10, 10, 10, 0.68) 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 5.5rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  background: var(--black);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, var(--red-glow), transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, var(--black) 40%, #050505 100%);
  line-height: 1.45;
}

.app {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

@media (max-width: 820px) {
  .app {
    padding-right: max(1rem, calc(7.75rem + env(safe-area-inset-right, 0px)));
  }
}

/* Pintasan PB — panel vertikal kanan */
.pb-dock {
  position: fixed;
  right: max(0.5rem, env(safe-area-inset-right, 0px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 7.25rem;
  padding: 0.55rem 0.45rem 0.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 90% 70% at 100% 25%, rgba(210, 0, 0, 0.07), transparent),
    var(--panel-dock);
  box-shadow:
    -6px 0 28px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(210, 0, 0, 0.12);
  animation: pb-dock-slide-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.pb-dock__title {
  margin: 0;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}

.pb-dock__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.4rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  color: var(--silver);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    color var(--transition),
    background var(--transition);
}

.pb-dock__link:hover {
  border-color: var(--red);
  color: var(--text);
  background: rgba(210, 0, 0, 0.12);
  box-shadow: 0 0 16px var(--red-glow);
}

.pb-dock__link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

@keyframes pb-dock-slide-in {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(110%);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

@media (max-width: 520px) {
  .pb-dock {
    width: 6.5rem;
    padding: 0.45rem 0.35rem 0.5rem;
    gap: 0.4rem;
  }

  .pb-dock__link {
    min-height: 2.55rem;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pb-dock {
    animation: none;
    opacity: 1;
    transform: translateY(-50%);
  }
}

/* Header + logo */
.brand {
  text-align: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.brand::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  box-shadow: 0 0 12px var(--red-glow);
}

.brand__logo-wrap {
  position: relative;
  display: inline-block;
  padding: 0.5rem;
  overflow: hidden;
  border: 2px solid var(--red);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 24px var(--red-glow);
  background:
    var(--panel-red-mist),
    var(--panel-logo-fill);
  animation: brand-logo-glow 2.75s ease-in-out infinite;
}

.brand__logo-wrap::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 80, 80, 0.12) 45%,
    rgba(255, 200, 200, 0.2) 50%,
    rgba(255, 80, 80, 0.12) 55%,
    transparent 65%,
    transparent 100%
  );
  background-size: 200% 200%;
  animation: brand-logo-shimmer 4.5s linear infinite;
  pointer-events: none;
}

.brand__logo-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  z-index: 0;
  background: linear-gradient(to top, rgba(210, 0, 0, 0.35), rgba(210, 0, 0, 0.06) 45%, transparent);
  transform-origin: bottom center;
  animation: brand-logo-fill-pulse 2.75s ease-in-out infinite;
  pointer-events: none;
}

.brand__logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(280px, 85vw);
  height: auto;
  max-height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(210, 0, 0, 0.25));
  animation: brand-logo-soft-pulse 2.75s ease-in-out infinite;
}

.brand__logo-fallback {
  display: none;
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 12vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  background: linear-gradient(180deg, #fff, var(--silver));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px var(--red-glow);
  padding: 1.5rem 2rem;
  animation: brand-logo-soft-pulse 2.75s ease-in-out infinite;
}

@keyframes brand-logo-glow {
  0%,
  100% {
    border-color: #9a0000;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.06),
      0 0 16px rgba(210, 0, 0, 0.35),
      0 0 32px rgba(210, 0, 0, 0.18);
  }
  50% {
    border-color: #ff2a2a;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.12),
      0 0 28px rgba(255, 70, 70, 0.55),
      0 0 52px rgba(210, 0, 0, 0.42);
  }
}

@keyframes brand-logo-shimmer {
  0% {
    background-position: 120% 120%;
  }
  100% {
    background-position: -20% -20%;
  }
}

@keyframes brand-logo-fill-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.82);
  }
  50% {
    opacity: 0.85;
    transform: scaleY(1);
  }
}

@keyframes brand-logo-soft-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(210, 0, 0, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(255, 60, 60, 0.45));
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand__logo-wrap {
    animation: none;
    border-color: var(--red);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08),
      0 0 24px var(--red-glow);
  }

  .brand__logo-wrap::before {
    animation: none;
    opacity: 0;
  }

  .brand__logo-wrap::after {
    animation: none;
    opacity: 0.38;
    transform: scaleY(0.92);
  }

  .brand__logo,
  .brand__logo-fallback {
    animation: none;
    filter: drop-shadow(0 0 12px rgba(210, 0, 0, 0.28));
  }
}

.brand__logo-wrap.is-fallback .brand__logo-fallback {
  display: block;
}

.brand__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--silver);
  margin: 1rem 0 0;
  text-shadow: 0 0 20px var(--red-glow);
}

.brand__subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sync-status {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--silver);
  background: rgba(210, 0, 0, 0.12);
  border: 1px solid rgba(210, 0, 0, 0.35);
  border-radius: 6px;
  line-height: 1.35;
}

.sync-status--warn {
  color: #ffb0b0;
  border-color: rgba(255, 100, 100, 0.45);
  background: rgba(80, 20, 20, 0.5);
}

/* Steps */
.step {
  display: none;
  animation: fadeIn 0.35s ease;
}

.step.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step__heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--silver);
  margin: 0 0 1rem;
  padding-left: 0.25rem;
  border-left: 3px solid var(--red);
}

.context-pill {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.context-pill span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}

.context-pill span strong {
  color: var(--text);
  font-weight: 700;
}

/* Cards / lists */
.choice-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.choice-btn {
  appearance: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  width: 100%;
  padding: 1rem 1.15rem;
  color: var(--text);
  background: var(--panel-v-soft);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition),
    background var(--transition);
  position: relative;
  overflow: hidden;
}

.choice-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(210, 0, 0, 0.12), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.choice-btn:hover {
  border-color: var(--red);
  box-shadow: 0 0 20px var(--red-glow);
  transform: translateY(-1px);
}

.choice-btn:hover::before {
  opacity: 1;
}

.choice-btn:active {
  transform: translateY(0);
}

.choice-btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.choice-btn small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.choice-btn--soon,
.choice-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  border-color: #222;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.5), rgba(0, 0, 0, 0.38));
  color: var(--muted);
}

.choice-btn--soon::before,
.choice-btn:disabled::before {
  display: none;
}

.choice-btn--soon:hover,
.choice-btn:disabled:hover {
  border-color: #222;
  box-shadow: none;
  transform: none;
}

.choice-btn small.choice-btn__badge {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.9;
}

/* Player A / B emphasis */
.choice-btn--primary {
  border-color: rgba(210, 0, 0, 0.55);
  background: linear-gradient(180deg, rgba(34, 16, 16, 0.78), rgba(20, 8, 8, 0.65));
}

.choice-btn--secondary {
  border-color: rgba(192, 192, 192, 0.35);
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.62), rgba(15, 15, 15, 0.52));
}

/* Back */
.toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn-back {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.5rem 0.85rem;
  color: var(--silver);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition:
    border-color var(--transition),
    color var(--transition),
    background var(--transition);
}

.btn-back:hover {
  border-color: var(--red);
  color: var(--text);
  background: rgba(210, 0, 0, 0.12);
}

.btn-back:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Beranda jadwal */
.schedule-period {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  text-shadow: 0 0 16px var(--red-glow);
}

.schedule-lede {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.schedule-board {
  margin-bottom: 1.25rem;
}

.schedule-game-block {
  margin-bottom: 1.35rem;
}

.schedule-game-block__title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  margin: 0 0 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.schedule-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10.5rem, 34%);
  gap: 0.85rem 1.15rem;
  align-items: start;
  padding: 1rem 1.1rem;
  margin-bottom: 0.55rem;
  background:
    radial-gradient(ellipse 100% 120% at 0% 50%, rgba(210, 0, 0, 0.06), transparent 52%),
    var(--panel-v-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
}

.schedule-card__info {
  min-width: 0;
}

.schedule-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  padding: 0.35rem 0 0.35rem 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  align-self: stretch;
}

.schedule-card__actions .btn-take,
.schedule-card__actions .btn-edit,
.schedule-card__actions .btn-cancel-slot {
  width: 100%;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  min-height: 2.65rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  border-radius: 8px;
  box-sizing: border-box;
}

.schedule-card__actions .btn-take {
  min-height: 2.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-width: 2px;
}

.schedule-card__actions .btn-edit {
  font-weight: 600;
  color: var(--silver);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.schedule-card__actions .btn-edit:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.schedule-card__actions .btn-cancel-slot {
  font-size: 0.76rem;
  min-height: 2.55rem;
}

@media (max-width: 560px) {
  .schedule-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
  }

  .schedule-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem;
    padding: 0.85rem 0 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .schedule-card__actions .btn-take {
    grid-column: 1 / -1;
  }

  .schedule-card__actions .btn-edit,
  .schedule-card__actions .btn-cancel-slot {
    min-width: 0;
  }
}

.schedule-card__rule {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.schedule-card__when {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.schedule-card__seek {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--silver);
  line-height: 1.4;
}

.schedule-card__seek-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.35rem;
}

.schedule-card__seek-desc {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.btn-take {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.55rem 1rem;
  color: var(--text);
  background: linear-gradient(180deg, rgba(42, 16, 16, 0.85), rgba(24, 8, 8, 0.75));
  border: 2px solid var(--red);
  border-radius: 6px;
  cursor: pointer;
  transition:
    box-shadow var(--transition),
    background var(--transition);
}

.btn-take:hover {
  box-shadow: 0 0 16px var(--red-glow);
}

.btn-take:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.btn-edit {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.75rem;
  color: var(--silver);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition:
    border-color var(--transition),
    color var(--transition);
}

.btn-edit:hover {
  border-color: var(--silver);
  color: var(--text);
}

.btn-edit:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 2px;
}

.btn-cancel-slot {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.65rem;
  color: #c9a8a8;
  background: rgba(80, 40, 40, 0.25);
  border: 1px solid rgba(180, 90, 90, 0.45);
  border-radius: 6px;
  cursor: pointer;
  transition:
    border-color var(--transition),
    color var(--transition),
    background var(--transition);
}

.btn-cancel-slot:hover {
  border-color: rgba(210, 100, 100, 0.75);
  color: #f0d0d0;
  background: rgba(100, 45, 45, 0.35);
}

.btn-cancel-slot:focus-visible {
  outline: 2px solid rgba(210, 120, 120, 0.9);
  outline-offset: 2px;
}

.schedule-card__pin-note {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn-restore {
  margin-top: 0.65rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.5rem 0.85rem;
  color: var(--text);
  background: rgba(210, 0, 0, 0.12);
  border: 1px solid rgba(210, 0, 0, 0.45);
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition:
    background var(--transition),
    border-color var(--transition);
}

.btn-restore:hover {
  background: rgba(210, 0, 0, 0.22);
  border-color: var(--red);
}

.take-history__actions {
  margin-top: 0.5rem;
}

.modal-pin-row[hidden] {
  display: none !important;
}

.btn-create {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 1.15rem;
  color: var(--text);
  background: var(--panel-v);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.btn-create:hover {
  border-color: var(--red);
  box-shadow: 0 0 18px var(--red-glow);
}

.btn-create:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.empty-state {
  text-align: center;
  padding: 1.75rem 1rem;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

.empty-state p {
  margin: 0;
}

.empty-state__sub {
  margin-top: 0.5rem !important;
  font-size: 0.9rem;
}

/* Form waktu */
.form-period {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.slot-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--silver);
}

.field input {
  font-family: var(--font-body);
  font-size: 1.1rem;
  padding: 0.65rem 0.85rem;
  color: var(--text);
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: 8px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red-glow);
}

.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  resize: vertical;
  min-height: 4.5rem;
  padding: 0.65rem 0.85rem;
  color: var(--text);
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: 8px;
}

.field--checks .field__label {
  margin-bottom: 0.35rem;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.35rem 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.check-row input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--red);
  cursor: pointer;
}

.field-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Riwayat perjanjian */
.take-history {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.take-history__title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  margin: 0 0 0.35rem;
}

.take-history__sub {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.take-history__card {
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.take-history__meta {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.take-history__seek {
  margin-top: 0.4rem;
  font-weight: 600;
  font-size: 0.88rem;
}

.take-history__seek-desc {
  margin-top: 0.35rem;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.take-history__party {
  margin: 0.35rem 0;
  color: var(--text);
  word-break: break-word;
}

.take-history__label {
  display: inline-block;
  min-width: 7.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: top;
}

.take-history__time {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Modal ambil jadwal */
.modal-dialog {
  max-width: calc(100vw - 2rem);
  width: 420px;
  padding: 0;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 100% 70% at 50% -10%, rgba(210, 0, 0, 0.14), transparent 55%),
    var(--panel-modal);
  color: var(--text);
  box-shadow: 0 0 40px var(--red-glow);
}

.modal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-form {
  padding: 1.25rem 1.25rem 1rem;
}

.modal-form__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  margin: 0 0 0.75rem;
}

.modal-form__summary {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

.modal-form__summary strong {
  color: var(--silver);
}

.modal-form__hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.modal-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.schedule-card__creator {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.86rem;
  line-height: 1.4;
}

.schedule-card__creator-line {
  margin: 0.2rem 0;
  word-break: break-word;
}

.schedule-card__creator-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.35rem;
}

/* Running text / sponsor (hanya nama sponsor yang bergerak) */
.ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-top: 2px solid var(--red);
  background: linear-gradient(180deg, rgba(18, 8, 8, 0.9) 0%, rgba(0, 0, 0, 0.78) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.45);
}

.ticker__inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  max-width: 100%;
}

.ticker__static {
  margin: 0;
  flex-shrink: 0;
  max-width: 42%;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--muted);
}

/* Track dirapatkan ke kanan: teks sponsor “masuk” dari kanan, geser ke kiri */
.ticker__marquee {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
}

.ticker__track {
  display: flex;
  width: max-content;
  flex-shrink: 0;
  animation: ticker-marquee 28s linear infinite;
  will-change: transform;
}

.ticker__segment {
  flex-shrink: 0;
  padding: 0 2.5rem 0 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  white-space: nowrap;
  text-shadow: 0 0 12px var(--red-glow);
}

@media (max-width: 720px) {
  .ticker__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.5rem 0.65rem;
  }

  .ticker__static {
    max-width: none;
    text-align: center;
    font-size: 0.72rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .ticker__marquee {
    justify-content: center;
  }

  .ticker__track {
    animation: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .ticker__segment {
    white-space: normal;
    padding: 0.25rem 0.5rem;
    text-align: center;
    text-shadow: none;
  }

  .ticker__segment:last-child {
    display: none;
  }

  .ticker__logo-mask {
    justify-content: center;
  }

  .ticker__logo-track {
    animation: none !important;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Logo sponsor (jalur kedua di bar bawah) */
.ticker__logo-wrap {
  padding: 0.35rem 0.85rem 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ticker__logo-label {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.ticker__logo-mask {
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 2.5rem;
}

.ticker__logo-track {
  display: flex;
  width: max-content;
  flex-shrink: 0;
  align-items: center;
  gap: 2.25rem;
  padding: 0 1rem;
  animation: ticker-marquee 45s linear infinite;
  will-change: transform;
}

.ticker__logo-track--static {
  animation: none;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.ticker__logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.ticker__logo-item img {
  display: block;
  max-height: 40px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(210, 0, 0, 0.2));
}

@media (max-width: 720px) {
  .ticker__logo-item {
    height: 34px;
  }

  .ticker__logo-item img {
    max-height: 34px;
    max-width: 120px;
  }
}

@keyframes ticker-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
