:root {
  --bg-0: #e6edf7;
  --bg-1: #f4f7fc;
  --bg-2: #eef6ff;
  --ink: #111827;
  --muted: #5c6b80;
  --stroke: rgba(255, 255, 255, 0.72);
  --glass: rgba(255, 255, 255, 0.4);
  --glass-strong: rgba(255, 255, 255, 0.56);
  --glass-soft: rgba(255, 255, 255, 0.28);
  --accent: #0a84ff;
  --accent-soft: #5ac8fa;
  --accent-success: #30d158;
  --glow: rgba(10, 132, 255, 0.28);
  --shadow-soft: 22px 22px 44px rgba(126, 141, 164, 0.22);
  --shadow-tight: 8px 8px 16px rgba(132, 147, 173, 0.2);
  --shadow-inset:
    inset 2px 2px 5px rgba(255, 255, 255, 0.55),
    inset -7px -9px 15px rgba(142, 156, 182, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Hiragino Sans", "Yu Gothic", "M PLUS 1p", sans-serif;
  background:
    radial-gradient(1100px 700px at -12% -12%, #bfdcff 0%, transparent 60%),
    radial-gradient(900px 580px at 108% 0%, #d2e6ff 0%, transparent 58%),
    radial-gradient(1200px 720px at 48% 120%, #e0f5ff 0%, transparent 65%),
    linear-gradient(165deg, var(--bg-0), var(--bg-1) 45%, var(--bg-2));
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -2;
  border-radius: 999px;
  filter: blur(30px);
  pointer-events: none;
  animation: float-orb 12s ease-in-out infinite;
}

body::before {
  width: 300px;
  height: 300px;
  top: 10vh;
  left: -100px;
  background: radial-gradient(
    circle at 40% 40%,
    #a9d3ff,
    #9acbff 62%,
    transparent 72%
  );
}

body::after {
  width: 320px;
  height: 320px;
  top: 50vh;
  right: -120px;
  background: radial-gradient(
    circle at 55% 45%,
    #cbe9ff,
    #bbdefc 60%,
    transparent 73%
  );
  animation-delay: -5s;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(
    rgba(17, 32, 58, 0.05) 0.6px,
    transparent 0.6px
  );
  background-size: 4px 4px;
  opacity: 0.08;
}

.hero {
  position: relative;
  max-width: 1120px;
  margin: 14px auto 0;
  padding: 24px 22px 14px;
  border-radius: 30px;
  border: 1px solid var(--stroke);
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.24)
  );
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px) saturate(125%);
  animation: rise-in 480ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Hiragino Sans",
    "Yu Gothic", sans-serif;
  letter-spacing: 0;
}

h1 {
  margin-top: 5px;
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  font-weight: 700;
  text-shadow: 0 8px 24px rgba(78, 101, 140, 0.14);
}

h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
}

h3 {
  font-size: 1.06rem;
}

.lead {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 500;
}

.meta {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-tight);
  font-size: 0.8rem;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.6),
    rgba(241, 249, 255, 0.35)
  );
  backdrop-filter: blur(14px);
}

.container {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px 42px;
  display: grid;
  gap: 16px;
}

.view-tabs {
  width: fit-content;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.46),
    rgba(227, 238, 253, 0.34)
  );
  box-shadow: var(--shadow-tight), var(--shadow-inset);
  backdrop-filter: blur(16px);
}

.tab-btn {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.82),
    rgba(240, 247, 255, 0.62)
  );
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.tab-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 18px rgba(75, 106, 163, 0.22);
}

.tab-btn.is-active {
  color: #0a4ea2;
  border-color: rgba(167, 214, 255, 0.9);
  background:
    linear-gradient(
      120deg,
      rgba(204, 232, 255, 0.95),
      rgba(244, 251, 255, 0.84)
    ),
    linear-gradient(
      140deg,
      rgba(255, 255, 255, 0.62),
      rgba(255, 255, 255, 0.28)
    );
  box-shadow:
    0 0 0 1px rgba(161, 214, 255, 0.5),
    0 10px 18px rgba(95, 137, 196, 0.26);
}

.view-hidden {
  display: none;
}

.panel {
  border-radius: 26px;
  border: 1px solid var(--stroke);
  background: linear-gradient(152deg, var(--glass-strong), var(--glass));
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(24px) saturate(124%);
  padding: 20px;
  animation: rise-in 380ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.panel-head p {
  margin: 8px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.ranking-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 8px 12px;
  align-items: center;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--muted);
}

.control-row label {
  white-space: nowrap;
  font-weight: 600;
}

.control-inline {
  flex-wrap: wrap;
}

select,
input[type="number"],
input[type="text"] {
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 12px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.82),
    rgba(236, 245, 255, 0.56)
  );
  color: var(--ink);
  box-shadow: var(--shadow-inset);
  padding: 8px 10px;
  font: inherit;
}

select {
  min-width: 190px;
}

input[type="number"] {
  width: 92px;
}

input[type="text"] {
  width: 100%;
}

select:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(36, 136, 255, 0.72);
  outline-offset: 2px;
}

.hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.bank-info,
.ranking-note {
  margin-bottom: 10px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.62;
}

.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.46);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  border-bottom: 1px solid rgba(150, 179, 216, 0.35);
  text-align: left;
  padding: 10px 11px;
  font-size: 0.84rem;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(233, 244, 255, 0.9);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

tbody tr:nth-child(even) {
  background: rgba(237, 247, 255, 0.34);
}

tbody tr:hover {
  background: rgba(212, 236, 255, 0.4);
}

.predict-summary-block {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.predict-summary-head {
  display: grid;
  gap: 4px;
}

.predict-summary-head h3 {
  margin: 0;
}

.predict-lineup-block {
  display: grid;
  gap: 8px;
}

.lineup-list {
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.36);
  box-shadow: var(--shadow-inset);
  border-radius: 16px;
  min-height: 120px;
  padding: 10px;
}

.search-box {
  margin-bottom: 9px;
  display: grid;
  gap: 6px;
}

.search-box label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.rider-card {
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.76),
    rgba(232, 245, 255, 0.48)
  );
  border-radius: 14px;
  box-shadow: var(--shadow-tight);
  padding: 10px;
  margin-bottom: 8px;
  cursor: grab;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
  transition:
    transform 130ms ease,
    box-shadow 130ms ease,
    border-color 130ms ease;
}

.rider-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 20px rgba(85, 113, 165, 0.24);
  border-color: rgba(166, 213, 255, 0.82);
}

.rider-card .name {
  font-weight: 800;
  font-size: 0.9rem;
}

.rider-card .meta-line {
  font-size: 0.74rem;
  color: var(--muted);
}

.card-side {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.lineup-slot {
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow-inset);
}

.slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.slot-label-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slot-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slot-order-tools {
  display: flex;
  gap: 6px;
}

.slot-order-btn {
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.88),
    rgba(236, 245, 255, 0.64)
  );
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
  box-shadow: var(--shadow-tight);
}

.slot-order-btn:disabled {
  opacity: 0.38;
  cursor: default;
}

.line-select {
  min-width: 92px;
  border-radius: 9px;
  padding: 5px 7px;
  font-size: 0.75rem;
}

.slot-picker {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}

.slot-picker-input {
  width: 100%;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.78);
  padding: 7px 9px;
  font-size: 0.8rem;
  color: var(--ink);
}

.slot-picker-input::placeholder {
  color: rgba(82, 97, 122, 0.72);
}

.slot-picker-meta {
  min-height: 1.1em;
  font-size: 0.68rem;
  color: var(--muted);
}

.slot-picker-actions {
  display: flex;
  gap: 6px;
}

.slot-picker-btn {
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.88),
    rgba(236, 245, 255, 0.64)
  );
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
  box-shadow: var(--shadow-tight);
}

.slot-picker-btn.primary {
  background: linear-gradient(
    125deg,
    var(--accent),
    #47a8ff 60%,
    var(--accent-soft)
  );
  color: #fff;
  border-color: transparent;
}

.line-tools {
  margin-bottom: 8px;
}

.line-tools .control-row {
  gap: 10px;
  flex-wrap: wrap;
}

.predict-controls {
  grid-template-columns: minmax(220px, 1fr);
  margin-top: 6px;
}

.lineup-help {
  margin-bottom: 8px;
}

.lineup-help strong {
  color: var(--accent);
}

.predict-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.lineup-summary {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.6),
    rgba(232, 245, 255, 0.42)
  );
  box-shadow: var(--shadow-inset);
}

.lineup-summary-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.line-summary-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.line-summary-block {
  flex: 1 1 220px;
  min-width: 220px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-tight);
  transition:
    transform 130ms ease,
    box-shadow 130ms ease,
    border-color 130ms ease;
}

.line-summary-block.drag-over {
  border-color: rgba(83, 166, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(89, 171, 255, 0.32);
  background: linear-gradient(
    145deg,
    rgba(219, 240, 255, 0.78),
    rgba(230, 255, 251, 0.72)
  );
}

.line-empty-block {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.32);
  color: var(--muted);
}

.line-empty-block .line-summary-count {
  font-style: italic;
}

.line-summary-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.line-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(120deg, #6b7a90, #8a9ab2);
}

.line-summary-count {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
}

.line-summary-members {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.line-member {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
  cursor: grab;
  user-select: none;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease,
    border-color 120ms ease;
}

.line-member:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(85, 113, 165, 0.18);
}

.line-member.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.line-member.drop-on-member {
  border-color: rgba(83, 166, 255, 0.95);
  background: linear-gradient(
    150deg,
    rgba(219, 240, 255, 0.95),
    rgba(255, 245, 230, 0.92)
  );
  box-shadow: 0 0 0 2px rgba(89, 171, 255, 0.32);
}

.line-member-name {
  font-weight: 700;
}

.line-member-pos {
  color: var(--muted);
  font-size: 0.7rem;
}

.line-arrow {
  color: var(--muted);
  font-weight: 700;
}

.line-color-solo .line-tag {
  background: linear-gradient(120deg, #6b7a90, #8a9ab2);
}
.line-color-l1 .line-tag {
  background: linear-gradient(120deg, #f97316, #fb923c);
}
.line-color-l2 .line-tag {
  background: linear-gradient(120deg, #2563eb, #60a5fa);
}
.line-color-l3 .line-tag {
  background: linear-gradient(120deg, #16a34a, #4ade80);
}
.line-color-l4 .line-tag {
  background: linear-gradient(120deg, #9333ea, #c084fc);
}

.lineup-slot.line-color-l1 {
  border-left: 4px solid #f97316;
}
.lineup-slot.line-color-l2 {
  border-left: 4px solid #2563eb;
}
.lineup-slot.line-color-l3 {
  border-left: 4px solid #16a34a;
}
.lineup-slot.line-color-l4 {
  border-left: 4px solid #9333ea;
}
.lineup-slot.line-color-solo {
  border-left: 4px solid rgba(120, 137, 165, 0.5);
}

.line-summary-block.line-color-l1 {
  border-top: 3px solid #f97316;
}
.line-summary-block.line-color-l2 {
  border-top: 3px solid #2563eb;
}
.line-summary-block.line-color-l3 {
  border-top: 3px solid #16a34a;
}
.line-summary-block.line-color-l4 {
  border-top: 3px solid #9333ea;
}

.slot-label-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slot-line-pos {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 700;
}

.lineup-slot.drag-over {
  border-color: rgba(83, 166, 255, 0.85);
  background: linear-gradient(
    145deg,
    rgba(219, 240, 255, 0.78),
    rgba(230, 255, 251, 0.72)
  );
  box-shadow: 0 0 0 2px rgba(89, 171, 255, 0.28);
}

.slot-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.number-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 4px 10px rgba(79, 100, 137, 0.22);
}

.number-chip.n1 {
  background: #ffffff;
  color: #121212;
}

.number-chip.n2 {
  background: #121212;
  color: #ffffff;
}

.number-chip.n3 {
  background: #f43f5e;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.number-chip.n4 {
  background: #2563eb;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.number-chip.n5 {
  background: #facc15;
  color: #111827;
}

.number-chip.n6 {
  background: #16a34a;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.number-chip.n7 {
  background: #fb923c;
  color: #111827;
}

.number-chip.n8 {
  background: #f9a8d4;
  color: #111827;
}

.number-chip.n9 {
  background: #9333ea;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

button {
  font: inherit;
}

.cta,
.ghost {
  margin-top: 8px;
  margin-right: 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 14px;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
}

.cta {
  color: #fff;
  font-weight: 800;
  background: linear-gradient(
    125deg,
    var(--accent),
    #47a8ff 52%,
    var(--accent-soft)
  );
  box-shadow:
    0 12px 22px rgba(74, 131, 207, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.ghost {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.78),
    rgba(232, 242, 255, 0.52)
  );
  box-shadow: var(--shadow-tight);
}

.ghost.small {
  margin-top: 0;
  margin-right: 0;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.cta:hover,
.ghost:hover {
  transform: translateY(-1px);
  filter: saturate(1.06);
}

.prediction-result {
  margin-top: 14px;
  border-radius: 16px;
  background: linear-gradient(
    150deg,
    rgba(222, 241, 255, 0.66),
    rgba(223, 255, 248, 0.5)
  );
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-inset);
  padding: 14px;
  min-height: 54px;
  display: grid;
  gap: 10px;
}

.prediction-header {
  font-size: 1rem;
}

.prediction-reasons {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.prediction-result .top3 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prediction-tickets {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.55);
  display: grid;
  gap: 6px;
}

.prediction-tickets-head {
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.ticket-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.ticket-label {
  min-width: 130px;
  color: var(--muted);
  font-weight: 700;
}

.ticket-value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-family:
    "SF Mono", Menlo, Consolas, monospace;
}

.ticket-value .number-chip {
  width: 22px;
  min-width: 22px;
  height: 22px;
  font-size: 0.72rem;
  box-shadow: none;
  margin: 0 1px;
}

.prediction-details {
  margin-top: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 8px 10px;
}

.prediction-details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
}

.prediction-table {
  min-width: 540px;
}

.prediction-table .number-chip {
  margin-right: 4px;
}

.prediction-badge .prob {
  margin-left: 4px;
  font-weight: 800;
}

.prediction-badge {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  color: #fff;
  box-shadow: 0 8px 16px rgba(62, 83, 127, 0.3);
}

.prediction-badge .number-chip {
  margin-right: 6px;
  width: 20px;
  min-width: 20px;
  height: 20px;
  font-size: 0.68rem;
  box-shadow: none;
  vertical-align: -2px;
}

.prediction-badge.rank1 {
  background: linear-gradient(120deg, #ff9f0a, #ffb340);
}

.prediction-badge.rank2 {
  background: linear-gradient(120deg, #0a84ff, #44a6ff);
}

.prediction-badge.rank3 {
  background: linear-gradient(120deg, #30d158, #5fd476);
}

footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px 34px;
  color: #556782;
  font-size: 0.76rem;
}

footer p {
  margin: 0;
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.68);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float-orb {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-8px) translateX(5px);
  }
}

@keyframes pulse-glass {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(157, 213, 255, 0.5),
      0 12px 20px rgba(64, 121, 202, 0.3);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(157, 213, 255, 0.5),
      0 10px 24px var(--glow);
  }
}

@media (max-width: 980px) {
  .hero {
    margin: 10px 12px 0;
    padding: 20px 16px 14px;
  }

  .container {
    padding: 14px 12px 28px;
  }

  .view-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .tab-btn {
    flex: 1;
    text-align: center;
  }

  .ranking-controls {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 650px;
  }
}

@media (max-width: 600px) {
  .panel {
    border-radius: 20px;
    padding: 14px;
  }

  .control-row {
    flex-wrap: wrap;
  }

  .slot-controls {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .slot-order-tools {
    width: 100%;
  }

  .slot-order-btn {
    flex: 1;
  }

  .line-summary-block {
    flex: 1 1 100%;
  }

  .ticket-label {
    min-width: 100%;
  }

  select {
    min-width: 100%;
  }

  .cta,
  .ghost {
    width: 100%;
    margin-right: 0;
  }
}
