@font-face {
  font-family: "RollRadar Display";
  src: url("../fonts/kabel-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RollRadar Sans";
  src: url("../fonts/quicksand-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RollRadar Sans";
  src: url("../fonts/quicksand-semibold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #eef5ff;
  --bg-deep: #0a3163;
  --paper: #ffffff;
  --paper-soft: #f6f9ff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: rgba(10, 49, 99, 0.88);
  --line: rgba(15, 51, 89, 0.12);
  --line-strong: rgba(15, 51, 89, 0.2);
  --ink: #12304a;
  --ink-soft: #526779;
  --ink-faint: #6f8191;
  --gold: #ffd759;
  --gold-deep: #d29b22;
  --teal: #2fe1c4;
  --blue: #4a7bff;
  --red: #ef6a58;
  --green: #38c987;
  --shadow-lg: 0 32px 70px rgba(15, 47, 91, 0.16);
  --shadow-md: 0 18px 40px rgba(15, 47, 91, 0.12);
  --shadow-sm: 0 10px 24px rgba(15, 47, 91, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(92, 163, 255, 0.18), transparent 26%),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 42%, #f2f7ff 100%);
  color: var(--ink);
  font-family: "RollRadar Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

p,
span,
small,
strong,
h1,
h2,
h3,
a,
button,
label {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 25;
  border-radius: 12px;
  background: var(--bg-deep);
  color: #fff;
  padding: 10px 14px;
}

.skip-link:focus {
  top: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 31, 63, 0.86);
  backdrop-filter: blur(16px);
}

.nav-shell,
.section-shell,
.site-footer {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: #fff;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffd85f 0%, #ffb734 100%);
  color: #112741;
  font-family: "RollRadar Display", sans-serif;
  font-size: 1.15rem;
  box-shadow: 0 10px 24px rgba(255, 183, 52, 0.28);
}

.brand strong {
  display: block;
  font-family: "RollRadar Display", sans-serif;
  font-size: 1.12rem;
}

.brand small {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  padding: 10px 14px;
  transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.mobile-tabbar a.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(74, 123, 255, 0.24);
  outline-offset: 2px;
}

.hero-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 212, 91, 0.3), transparent 22%),
    radial-gradient(circle at 15% 20%, rgba(47, 225, 196, 0.22), transparent 18%),
    linear-gradient(135deg, #0b2b57 0%, #155393 45%, #0d74b6 100%);
  color: #fff;
}

.hero-band::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(240, 246, 255, 0.9));
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.76fr);
  align-items: start;
  gap: 26px;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  min-height: 560px;
  padding: 34px 0 44px;
}

.hero-copy h1,
.page-hero h1,
.tool-card h2 {
  font-family: "RollRadar Display", sans-serif;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 13ch;
  margin: 10px 0 16px;
  font-size: clamp(2.5rem, 4.7vw, 4.6rem);
  line-height: 0.98;
}

.hero-copy p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.06rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.command-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.command-pill {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(7, 27, 55, 0.58);
  box-shadow: 0 14px 28px rgba(4, 20, 43, 0.12);
}

.command-pill::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--gold);
}

.command-pill small,
.command-pill strong,
.command-pill span {
  display: block;
  min-width: 0;
}

.command-pill small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.command-pill strong {
  margin-top: 4px;
  color: #fff;
  font-family: "RollRadar Display", sans-serif;
  font-size: 1rem;
  line-height: 1.08;
}

.command-pill span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
  line-height: 1.35;
}

.command-pill.tone-good::before {
  background: var(--teal);
}

.command-pill.tone-warn::before {
  background: var(--gold);
}

.command-pill.tone-hot::before {
  background: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  padding: 10px 16px;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(180deg, #ffe279 0%, #ffcc46 100%);
  box-shadow: 0 10px 24px rgba(255, 207, 72, 0.24);
  color: #1b2940;
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.guide-card,
.tool-card,
.hero-panel,
.seo-tile,
.page-hero,
.ad-slot {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.guide-card {
  display: grid;
  min-height: 156px;
  align-content: start;
  gap: 8px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.guide-step {
  margin: 0;
  color: var(--gold);
  font-family: "RollRadar Display", sans-serif;
  font-size: 1.1rem;
}

.guide-card strong {
  display: block;
  margin-bottom: 0;
}

.guide-card span,
.hero-mini-note span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.guide-card .mini-btn {
  align-self: end;
  justify-self: start;
  margin-top: 2px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.guide-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 215, 89, 0.18);
  color: #ffe998;
  font-size: 0.72rem;
  font-weight: 700;
}

.guide-card.is-ready .guide-status {
  background: rgba(47, 225, 196, 0.18);
  color: #a8fff0;
}

.guide-card.is-urgent {
  border-color: rgba(255, 215, 89, 0.3);
  background: rgba(255, 255, 255, 0.16);
}

.hero-visual {
  display: grid;
  gap: 14px;
  min-width: 0;
  align-self: start;
}

.hero-image-card {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 245px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 38px rgba(4, 20, 43, 0.16);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image-overlay {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 5px;
  width: min(44%, 360px);
  min-height: 96px;
  border: 1px solid rgba(138, 193, 255, 0.24);
  border-radius: 14px;
  padding: 16px;
  background: rgba(5, 31, 60, 0.84);
  color: #fff;
  box-shadow: 0 16px 32px rgba(4, 18, 38, 0.24);
}

.hero-image-overlay strong {
  font-size: 1rem;
}

.hero-image-overlay span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  line-height: 1.42;
}

.hero-panel {
  padding: 17px 18px;
  background: rgba(7, 23, 47, 0.78);
  color: #fff;
  backdrop-filter: blur(14px);
}

.status-row,
.hero-metric,
.card-head,
.linked-item,
.action-item,
.dice-item,
.event-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.status-row {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 14px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 8px rgba(47, 225, 196, 0.18);
}

.hero-metric {
  align-items: center;
  padding: 12px 0;
}

.hero-metric + .hero-metric {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-metric span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.hero-metric strong {
  font-size: 1.3rem;
}

.hero-mini-note {
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
}

.hero-mini-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.section-shell {
  margin: 30px auto;
}

.daily-session-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(15, 51, 89, 0.1);
  border-radius: 18px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.96)),
    linear-gradient(90deg, rgba(47, 225, 196, 0.1), rgba(255, 215, 89, 0.12));
  box-shadow: var(--shadow-md);
}

.session-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.session-head h2 {
  margin: 4px 0 6px;
  font-family: "RollRadar Display", sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.04;
}

.session-head p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.session-score {
  display: grid;
  justify-items: end;
  min-width: 124px;
  border: 1px solid rgba(18, 48, 74, 0.1);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.session-score strong {
  color: var(--ink);
  font-family: "RollRadar Display", sans-serif;
  font-size: 1.65rem;
  line-height: 1;
}

.session-score span {
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
}

.session-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 48, 74, 0.1);
}

.session-progress span {
  display: block;
  width: 4%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--gold));
  transition: width 160ms ease;
}

.session-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.session-step {
  display: grid;
  grid-template-rows: auto minmax(118px, 1fr) auto;
  gap: 9px;
  min-width: 0;
  border: 1px solid rgba(18, 48, 74, 0.1);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}

.session-step.is-done {
  border-color: rgba(56, 201, 135, 0.28);
  background: #f2fff8;
}

.session-index {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: #eef3ff;
  color: var(--blue);
  font-family: "RollRadar Display", sans-serif;
  font-size: 0.82rem;
}

.session-step.is-done .session-index {
  background: #dff8ed;
  color: #16734f;
}

.session-step strong,
.session-step span,
.session-step small {
  display: block;
}

.session-step strong {
  margin-bottom: 5px;
  line-height: 1.18;
}

.session-step span {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.42;
}

.session-step small {
  margin-top: 7px;
  color: var(--ink-faint);
  font-size: 0.74rem;
  font-weight: 700;
}

.session-step .btn {
  width: 100%;
  min-height: 40px;
  white-space: normal;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.91fr) minmax(260px, 0.91fr);
  gap: 18px;
}

.tool-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 51, 89, 0.08);
}

.priority-card {
  grid-row: span 2;
}

.tool-card h1,
.tool-card h2,
.tool-card h3 {
  margin: 8px 0 10px;
}

.tool-card h2 {
  font-size: clamp(1.28rem, 2.35vw, 1.95rem);
  line-height: 1.08;
}

.tool-card p,
.tool-card li,
.linked-item span,
.action-item span,
.mini-item span,
.dice-item span,
.event-item span,
.page-hero p,
.legal-copy p,
.legal-copy li {
  color: var(--ink-soft);
  line-height: 1.58;
}

.eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-band .eyebrow {
  color: var(--gold);
}

.card-head {
  align-items: flex-start;
  margin-bottom: 12px;
}

.card-head a {
  color: var(--blue);
  font-weight: 700;
}

.source-pill,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  min-height: 28px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.source-official {
  background: #dff7ea;
  color: #166947;
}

.source-public {
  background: #e6efff;
  color: #2354b0;
}

.source-community {
  background: #fff5d6;
  color: #8a620d;
}

.source-inference {
  background: #ffe7e2;
  color: #b1392a;
}

.quick-form,
.sticker-mini,
.planner-form,
.trade-builder,
.workflow-panel,
.stack-list,
.action-feed,
.dice-list,
.event-list,
.sticker-list,
.result-list,
.checklist {
  display: grid;
  gap: 12px;
}

.quick-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.quick-form .btn {
  grid-column: 1 / -1;
}

.planner-form label,
.quick-form label,
.trade-grid label,
.sticker-mini label {
  display: grid;
  gap: 6px;
}

label span {
  display: block;
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 700;
}

.trade-builder,
.workflow-panel,
.mini-item,
.action-item,
.dice-item,
.event-item,
.linked-item,
.notice,
.page-hero,
.ad-slot {
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.trade-builder,
.workflow-panel,
.mini-item,
.action-item,
.dice-item,
.event-item,
.linked-item,
.notice {
  border-radius: 16px;
  padding: 14px;
}

.trade-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.workflow-panel {
  background: linear-gradient(180deg, #f9fbff 0%, #f3f8ff 100%);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.chip-label {
  align-self: center;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.target-chip {
  display: inline-grid;
  gap: 2px;
  min-height: 52px;
  border: 1px solid rgba(18, 48, 74, 0.12);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.target-chip strong {
  font-size: 0.88rem;
}

.target-chip span {
  color: var(--ink-faint);
  font-size: 0.78rem;
  font-weight: 700;
}

.target-chip.is-active,
.target-chip:hover,
.target-chip:focus-visible {
  border-color: rgba(74, 123, 255, 0.36);
  background: #eef3ff;
}

.mini-item strong,
.event-item strong,
.action-item strong,
.dice-item strong,
.linked-item strong,
.checklist strong {
  display: block;
  margin-bottom: 4px;
}

.linked-item,
.action-item,
.dice-item {
  align-items: center;
}

.linked-item > div:first-child,
.action-item > div:first-child,
.dice-item > div:first-child {
  min-width: 0;
}

.linked-item,
.action-item {
  align-items: stretch;
}

.action-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(124px, max-content);
  align-items: center;
}

.compact .action-item,
.today-route-card .action-item {
  grid-template-columns: 1fr;
}

.compact .action-item .btn,
.today-route-card .action-item .btn {
  width: 100%;
}

.linked-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.linked-meta small,
.action-item small,
.checklist small {
  display: block;
  color: var(--ink-faint);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.dice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.dice-actions .btn {
  flex: 1 1 112px;
}

.mini-btn {
  min-height: 38px;
  border-radius: 12px;
  padding: 7px 11px;
  white-space: nowrap;
}

.priority-high {
  border-color: rgba(239, 106, 88, 0.35);
  background: #fff2ee;
}

.priority-medium {
  border-color: rgba(255, 191, 67, 0.38);
  background: #fff9eb;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.daily-reset-panel,
.check-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-soft);
  padding: 14px;
}

.daily-reset-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.daily-reset-panel strong,
.daily-reset-panel span,
.daily-reset-panel small {
  display: block;
}

.daily-reset-panel span,
.daily-reset-panel small {
  color: var(--ink-soft);
  line-height: 1.45;
}

.daily-reset-panel small {
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 0.78rem;
  font-weight: 700;
}

.check-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: center;
}

.check-card.is-done {
  background: #f0fff7;
  border-color: rgba(56, 201, 135, 0.28);
}

.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-actions {
  display: flex;
  justify-content: flex-end;
}

.checklist input,
.check-row input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 2px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row span {
  margin: 0;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.seo-tile {
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96)),
    linear-gradient(135deg, rgba(47, 225, 196, 0.1), rgba(255, 215, 89, 0.12));
  border-color: rgba(15, 51, 89, 0.08);
}

.seo-tile strong {
  font-family: "RollRadar Display", sans-serif;
  font-size: 1.08rem;
}

.seo-tile span {
  color: var(--ink-soft);
}

.ad-slot {
  display: grid;
  place-items: center;
  width: min(1040px, calc(100% - 36px));
  min-height: 94px;
  margin: 24px auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 249, 255, 0.92));
  color: var(--ink-faint);
  font-size: 0.8rem;
  font-weight: 700;
  border-style: dashed;
  gap: 10px;
  padding: 14px 16px;
}

.ad-slot-frame {
  width: 100%;
  min-height: 50px;
}

.ad-slot[data-ad-provider="ezoic"] .ad-slot-frame > div[id^="ezoic-pub-ad-placeholder-"] {
  width: 100%;
}

.ad-slot[data-ad-provider="adsense"] .ad-slot-frame .adsbygoogle {
  width: 100%;
  min-height: 50px;
}

.ad-slot-note {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(16, 40, 32, 0.05);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 34px;
  border-top: 1px solid rgba(15, 51, 89, 0.08);
  color: var(--ink-soft);
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 700;
}

.mobile-tabbar {
  display: none;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  background:
    radial-gradient(circle at 82% 24%, rgba(255, 213, 89, 0.18), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.96));
}

.page-hero .section-shell {
  margin-top: 0;
  padding: 32px 0;
}

.page-hero h1 {
  max-width: 860px;
  margin: 10px 0;
  font-size: clamp(2.1rem, 6vw, 4.3rem);
  line-height: 0.96;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.event-item,
.dice-item {
  background: #fff;
}

.event-item {
  display: grid;
  gap: 10px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-actions {
  margin: 0;
  padding-left: 18px;
}

.dice-item.is-claimed,
.linked-item.is-claimed {
  opacity: 0.64;
}

.calculator-result {
  border-left: 5px solid var(--green);
  background: #f0fff7;
}

.calculator-result.warn {
  border-left-color: var(--gold-deep);
  background: #fff8e1;
}

.calculator-result.stop {
  border-left-color: var(--red);
  background: #fff1ee;
}

.decision-meter {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(18, 48, 74, 0.1);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meter-head span {
  color: var(--ink-faint);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.meter-head strong {
  color: var(--ink);
  font-family: "RollRadar Display", sans-serif;
  font-size: 1.08rem;
  text-align: right;
}

.meter-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 48, 74, 0.1);
}

.meter-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
}

.decision-meter p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.context-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.context-reasons span {
  border: 1px solid rgba(18, 48, 74, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink-soft);
  padding: 6px 9px;
  font-size: 0.76rem;
  font-weight: 700;
}

.decision-meter.is-strong {
  border-color: rgba(56, 201, 135, 0.25);
  background: linear-gradient(180deg, #f2fff8 0%, #e8fbf2 100%);
}

.decision-meter.is-playable {
  border-color: rgba(255, 191, 67, 0.3);
  background: linear-gradient(180deg, #fffdf4 0%, #fff7df 100%);
}

.decision-meter.is-weak {
  border-color: rgba(239, 106, 88, 0.24);
  background: linear-gradient(180deg, #fff7f5 0%, #ffece8 100%);
}

.notice {
  color: var(--ink-soft);
}

.legal-copy {
  max-width: 820px;
}

.legal-copy h1 {
  font-family: "RollRadar Display", sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 10px 0 12px;
}

.legal-copy h2 {
  font-family: "RollRadar Display", sans-serif;
  margin-top: 28px;
  font-size: 1.55rem;
}

.compact .action-feed {
  gap: 10px;
}

.compact .action-item strong {
  font-size: 0.96rem;
}

.compact .action-item span {
  font-size: 0.84rem;
}

@media (max-width: 1024px) {
  .hero-shell,
  .dashboard-grid,
  .session-grid,
  .two-column,
  .seo-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: auto;
  }

  .hero-guide {
    grid-template-columns: 1fr;
  }

  .command-strip {
    grid-template-columns: 1fr;
  }

  .priority-card {
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .nav-shell {
    align-items: center;
  }

  .nav-links {
    display: none;
  }

  .quick-form,
  .trade-grid {
    grid-template-columns: 1fr;
  }

  .today-route-card,
  .next-actions-card {
    order: -1;
  }

  .site-footer {
    display: block;
  }

  .site-footer nav {
    margin-top: 14px;
  }

  .mobile-tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    border-top: 1px solid rgba(15, 51, 89, 0.08);
    background: rgba(252, 254, 255, 0.96);
    backdrop-filter: blur(18px);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 28px rgba(15, 47, 91, 0.08);
  }

  .mobile-tabbar a {
    min-width: 0;
    display: grid;
    gap: 3px;
    justify-items: center;
    border-radius: 14px;
    padding: 8px 3px;
    color: var(--ink-faint);
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.15;
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .section-shell,
  .site-footer,
  .hero-shell {
    width: min(100% - 22px, 1240px);
  }

  .hero-shell {
    gap: 18px;
    padding: 20px 0 28px;
  }

  .hero-copy {
    display: grid;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(1.54rem, 7.2vw, 2.2rem);
    line-height: 1.06;
    overflow-wrap: anywhere;
    word-break: normal;
    margin: 8px 0 8px;
  }

  .hero-copy p {
    max-width: 100%;
  }

  .eyebrow {
    font-size: 0.68rem;
  }

  .hero-guide {
    gap: 10px;
    margin-top: 16px;
  }

  .command-strip {
    gap: 8px;
    margin-top: 14px;
  }

  .command-pill {
    border-radius: 14px;
    padding: 11px 12px 11px 14px;
  }

  .command-pill strong {
    font-size: 0.96rem;
  }

  .command-pill span {
    font-size: 0.78rem;
  }

  .guide-card {
    min-height: 0;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px 12px;
    padding: 12px;
  }

  .guide-card strong,
  .guide-card span,
  .guide-card .guide-status {
    grid-column: 1;
  }

  .guide-step {
    grid-row: auto;
  }

  .guide-card .mini-btn {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
  }

  .hero-image-card {
    aspect-ratio: 16 / 7.2;
    max-height: none;
    border-radius: 22px;
  }

  .hero-panel {
    padding: 12px 14px;
  }

  .hero-metric {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 8px 0;
  }

  .hero-metric strong {
    min-width: 0;
    font-size: 1.08rem;
    overflow-wrap: anywhere;
  }

  .hero-copy p,
  .guide-card span,
  .hero-mini-note span {
    max-width: 100%;
    font-size: 0.84rem;
    line-height: 1.38;
  }

  .section-shell {
    margin: 20px auto;
  }

  .daily-session-card {
    border-radius: 16px;
    padding: 14px;
  }

  .session-head {
    display: grid;
    gap: 12px;
  }

  .session-score {
    width: 100%;
    justify-items: start;
  }

  .session-score span {
    text-align: left;
  }

  .session-step {
    grid-template-rows: auto;
  }

  .dashboard-grid,
  .two-column,
  .tool-grid,
  .seo-grid {
    gap: 14px;
  }
}

@media (max-width: 430px) {
  .hero-shell {
    padding-top: 16px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(1.42rem, 6.8vw, 1.96rem);
  }

  .is-cjk .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(1.34rem, 6.35vw, 1.82rem);
  }

  .hero-copy p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .is-cjk .hero-copy p {
    max-width: 100%;
  }

  .is-cjk .guide-card span,
  .is-cjk .hero-mini-note span {
    max-width: 100%;
  }

  html[data-lang="zh-CN"] .hero-copy p::after,
  html[data-lang="zh-TW"] .hero-copy p::after {
    content: "";
    display: block;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 16px;
  }

  .hero-actions .btn,
  .guide-card .mini-btn {
    min-height: 44px;
  }

  .hero-image-card {
    aspect-ratio: 16 / 6.5;
  }
}

@media (max-width: 640px) {

  body {
    overflow-x: hidden;
  }

  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(1.82rem, 8.4vw, 2.65rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .is-cjk .page-hero h1 {
    max-width: 11ch;
    font-size: clamp(1.72rem, 7.7vw, 2.38rem);
    word-break: break-all;
  }

  .page-hero .chip-row,
  .chip-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-hero .source-pill,
  .page-hero .tag,
  .source-pill,
  .tag {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  .hero-actions,
  .dice-actions,
  .linked-meta {
    display: grid;
    width: 100%;
  }

  .linked-item,
  .action-item,
  .dice-item,
  .event-item,
  .status-row,
  .card-head {
    flex-direction: column;
  }

  .event-meta,
  .dice-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .event-actions {
    padding-left: 18px;
    overflow-wrap: anywhere;
  }

  .event-actions li {
    margin-bottom: 8px;
  }

  .event-item,
  .dice-item,
  .linked-item,
  .action-item,
  .mini-item,
  .calculator-result {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .calculator-result strong,
  .calculator-result span,
  .calculator-result small,
  .page-hero p,
  .event-item p,
  .event-item li,
  .linked-item span,
  .linked-item small,
  .action-item span,
  .action-item small,
  .mini-item span {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .action-item {
    grid-template-columns: 1fr;
  }

  .linked-meta {
    justify-items: stretch;
  }

  .linked-meta .btn,
  .action-item .btn,
  .dice-actions .btn,
  .hero-actions .btn {
    width: 100%;
    white-space: normal;
  }

  .calculator-result {
    display: grid;
    gap: 8px;
    border-left-width: 0;
    border-top: 5px solid var(--green);
  }

  .calculator-result.warn {
    border-top-color: var(--gold-deep);
  }

  .calculator-result.stop {
    border-top-color: var(--red);
  }

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

  .meter-head strong {
    text-align: left;
  }

  .context-reasons {
    display: grid;
  }

  .context-reasons span {
    width: 100%;
    border-radius: 12px;
    white-space: normal;
  }

  .tool-card,
  .hero-panel,
  .seo-tile,
  .page-hero,
  .guide-card,
  .trade-builder,
  .workflow-panel,
  .mini-item,
  .action-item,
  .dice-item,
  .event-item,
  .linked-item,
  .check-card,
  .daily-reset-panel,
  .notice {
    border-radius: 16px;
  }

  .daily-reset-panel,
  .check-card {
    grid-template-columns: 1fr;
  }

  .check-actions,
  .check-actions .btn,
  .daily-reset-panel .btn {
    width: 100%;
  }

  .tool-card,
  .hero-panel,
  .seo-tile {
    padding: 16px;
  }

  .page-hero .section-shell {
    padding: 24px 0;
  }

  .language-switch span {
    display: none;
  }

  .language-switch {
    margin-left: auto;
  }

  .ad-slot {
    width: min(100% - 22px, 1040px);
    min-height: 74px;
  }
}
