@charset "UTF-8";
@font-face { font-family: 'Google Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/vendor/google-sans/google-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  --ink: #19283d;
  --muted: #627087;
  --subtle: #8290a3;
  --line: #dfe5ee;
  --paper: #fff;
  --surface: #f4f6f9;
  --navy: #14243c;
  --accent: #294e79;
  --accent-hover: #365e8b;
  --selection: #eaf0f8;
  --focus: #4c86d2;
  --up: #bf3545;
  --up-soft: #fff3f4;
  --up-line: #e8b9c0;
  --down: #255eae;
  --down-soft: #f0f5ff;
  --down-line: #bbcee9;
  --favorite: #926800;
  --favorite-soft: #fff4d8;
  --success: #146c53;
  --success-soft: #eaf5f0;
  --warning: #876012;
  --warning-soft: #fff6df;
  --error: #a52d3b;
  font-family: "Inter", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
button:focus:not(:focus-visible), [tabindex]:focus:not(:focus-visible) { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong { font-weight: 600; }
svg { vertical-align: middle; flex-shrink: 0; }
::selection { background: var(--selection); }
/* Direction colors stay consistent across both markets; labels and signs carry the meaning too. */
.positive { color: var(--up); }
.negative { color: var(--down); }
.neutral { color: var(--muted); }
.muted, .small-note { color: var(--muted); }
.numeric { font-variant-numeric: tabular-nums; }
.full { width: 100%; }
.skip-link { position: fixed; top: -100px; left: 20px; background: white; padding: 12px; z-index: 100; }
.skip-link:focus { top: 10px; }

/* One header, one content column. */
.site-header { border-bottom: 1px solid var(--navy); background: var(--navy); color: white; }
.header-inner { max-width: 1020px; margin: auto; padding: 0 30px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 35px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 17px; font-weight: 700; letter-spacing: -.4px; }
.brand img { width: 27px; height: 27px; }
.main-nav { justify-self: center; display: flex; align-items: stretch; gap: 26px; height: 72px; }
.main-nav a { display: flex; align-items: center; position: relative; font-size: 12px; color: #b8c5d8; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: white; }
.main-nav a.active:after { content: ""; position: absolute; bottom: -1px; height: 2px; background: #92b9f0; width: 100%; }
.login-link { padding: 7px 12px; border: 1px solid #536780; border-radius: 6px; font-size: 12px; white-space: nowrap; }
.login-link:hover { background: #263c59; }
.account-link { display: inline-flex; align-items: center; gap: 7px; max-width: 140px; font-size: 12px; }
.account-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { max-width: 1020px; padding: 18px 30px 0; margin: auto; }
.demo-notice { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); }
.demo-notice .text-button { color: var(--muted); font-size: 10px; text-decoration: underline; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 27px 0 25px; }
.page-heading h1 { font-size: 25px; letter-spacing: .3px; line-height: 1.55; }
.page-description { font-size: 12px; color: var(--muted); margin-top: 7px; }
.page-footer { display: flex; align-items: center; gap: 20px; margin-top: 36px; border-top: 1px solid var(--line); padding: 21px 0 27px; font-size: 10px; color: var(--muted); }
.page-footer > span { margin-right: auto; }
.page-footer .text-button { font-size: 10px; color: var(--muted); }
.text-button, .text-link, .icon-text { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 2px 0; font-size: 12px; color: var(--accent); }
.text-button:hover, .text-link:hover { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 9px 16px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.button.primary { background: var(--navy); color: white; }
.button.primary:hover:not(:disabled) { background: var(--accent-hover); }
.button.secondary { border: 1px solid var(--line); color: var(--accent); }
.button.secondary:hover { background: var(--surface); }

/* Compact prediction list. */
.mode-tabs { display: flex; gap: 25px; border-bottom: 1px solid var(--line); }
.mode-tabs > button { position: relative; padding: 10px 0; color: var(--muted); font-size: 13px; }
.mode-tabs > button.active { color: var(--ink); font-weight: 600; }
.mode-tabs > button.active:after { position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; content: ""; background: var(--navy); }
.market-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 20px 0 18px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.filter-tabs button { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 5px 10px; color: var(--muted); border-radius: 5px; white-space: nowrap; }
.filter-tabs button.active { background: var(--selection); color: var(--accent); }
.filter-tabs button:hover { color: var(--accent); }
.search-field { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; width: 205px; color: var(--muted); }
.search-field input { border: 0; outline: none; background: transparent; min-width: 0; width: 100%; font-size: 11px; color: var(--ink); }
.search-field input::placeholder { color: var(--muted); }
.search-field:focus-within { border-color: var(--focus); }
.search-field input:focus-visible { outline: none; }
.stock-list-heading, .stock-row { display: grid; grid-template-columns: minmax(0,1fr) 170px 230px; column-gap: 32px; }
.stock-list-heading { padding: 0 16px 11px 41px; color: var(--muted); font-size: 10px; border-bottom: 1px solid var(--line); }
.stock-list-heading > span:nth-child(2) { text-align: right; }
.stock-list-heading > span:last-child { text-align: center; }
.stock-row { padding: 18px 16px 12px 0; border-bottom: 1px solid var(--line); align-items: center; row-gap: 9px; }
.row-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.favorite-button { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 32px; padding: 5px; color: var(--subtle); flex-shrink: 0; }
.favorite-button:hover { color: var(--favorite); }
.favorite-button.selected { color: var(--favorite); }
.favorite-button.selected svg { fill: var(--favorite-soft); }
.stock-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.stock-identity > div { min-width: 0; }
.stock-identity h3 { font-size: 18px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.stock-identity p, .stock-identity small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.stock-identity:hover h3, a.stock-identity:hover strong { color: var(--accent); }
.row-price { text-align: right; font-variant-numeric: tabular-nums; }
.row-price > strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: .1px; }
.change { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.row-vote { min-width: 0; }
.vote-date { display: block; text-align: center; color: var(--muted); font-size: 10px; margin-bottom: 5px; }
.vote-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vote-button { display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid; border-radius: 5px; font-size: 12px; min-height: 37px; padding: 7px 10px; font-weight: 500; }
.vote-button.up { color: var(--up); border-color: var(--up-line); background: var(--up-soft); }
.vote-button.down { color: var(--down); border-color: var(--down-line); background: var(--down-soft); }
.vote-button.up:hover:not(:disabled), .vote-button.up.selected { background: var(--up); border-color: var(--up); color: white; }
.vote-button.down:hover:not(:disabled), .vote-button.down.selected { background: var(--down); border-color: var(--down); color: white; }
.row-note { grid-column: 1/-1; padding-left: 41px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 9px; gap: 12px; }
.timezone { font-size: 8px; margin-left: 3px; }
.compact-sentiment { display: inline-flex; gap: 8px; white-space: nowrap; }
.load-more { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 16px; min-height: 40px; border-radius: 5px; font-size: 11px; color: var(--accent); }
.load-more:hover { background: var(--surface); }
.load-more span, .list-end { font-size: 10px; color: var(--muted); }
.list-end { text-align: center; padding-top: 18px; }

/* Secondary views share the same plain table treatment. */
.panel { border: 1px solid var(--line); border-radius: 7px; background: white; }
.panel-heading, .table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { font-size: 13px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; white-space: nowrap; font-size: 12px; }
th { padding: 12px 19px; font-size: 10px; font-weight: 400; color: var(--muted); background: var(--surface); }
td { padding: 16px 19px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
table small { font-size: 10px; color: var(--muted); }
td .stock-identity strong { font-size: 12px; font-weight: 500; }
.table-user { display: flex; align-items: center; gap: 10px; }
.table-user strong { font-weight: 500; }
.points-cell { color: var(--accent); }
.my-row { background: var(--selection); }
.tiny-label, .muted-pill { color: var(--muted); font-size: 10px; }
.segmented { display: inline-flex; gap: 3px; background: var(--surface); border-radius: 5px; padding: 3px; }
.segmented button { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 6px 11px; font-size: 11px; color: var(--muted); border-radius: 3px; white-space: nowrap; }
.segmented button.active { background: white; color: var(--accent); }
.flag { width: 14px; height: 10px; border: 1px solid var(--line); border-radius: 2px; background: white; position: relative; }
.flag.japan:after { position: absolute; content: ""; width: 4px; height: 4px; top: 2px; left: 4px; border-radius: 50%; background: #b64050; }
.flag.usa { background: repeating-linear-gradient(to bottom,#b64050 0,#b64050 1px,white 1px,white 2px); }
.flag.usa:after { position: absolute; content: ""; top: 0; left: 0; width: 5px; height: 4px; background: #315689; }
.standalone-select { background: white; border: 1px solid var(--line); color: var(--muted); border-radius: 5px; padding: 6px 9px; font-size: 11px; }
.ranking-summary { display: flex; align-items: center; gap: 27px; padding: 0 0 22px; font-size: 11px; color: var(--muted); }
.ranking-summary strong { margin-left: 9px; color: var(--ink); font-size: 15px; font-weight: 500; }
.ranking-summary .text-link { margin-left: auto; font-size: 11px; }
.ranking-footnote { color: var(--muted); font-size: 11px; line-height: 1.9; margin-top: 16px; }
.results-overview { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 0 23px; }
.results-overview .eyebrow { font-size: 11px; color: var(--muted); }
.results-overview h2 { font-size: 16px; margin: 4px 0; }
.results-overview p { font-size: 10px; color: var(--muted); }
.result-totals { display: flex; gap: 25px; }
.result-totals > div { display: flex; align-items: center; gap: 7px; }
.result-totals strong { font-size: 23px; font-weight: 500; }
.result-totals span { font-size: 10px; color: var(--muted); }
.result-filter { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.result-filter .text-link { font-size: 10px; }
.direction-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; }
.status-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; padding: 3px 7px; border-radius: 4px; }
.status-tag.correct { background: var(--success-soft); color: var(--success); }
.status-tag.incorrect { background: var(--surface); color: var(--muted); }
.status-tag.pending { background: var(--warning-soft); color: var(--warning); }
.status-tag.draw { background: var(--surface); color: var(--muted); }
.register-note { display: flex; gap: 15px; font-size: 12px; color: var(--muted); padding: 0 0 22px; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.stat-card { padding: 0 23px; border-right: 1px solid var(--line); }
.stat-card:first-child { padding-left: 0; }
.stat-card:last-child { border-right: 0; }
.stat-card > span { font-size: 11px; color: var(--muted); }
.stat-card > strong { display: block; font-size: 29px; line-height: 1.6; font-weight: 500; margin: 4px 0; }
.stat-card strong small { font-size: 12px; color: var(--muted); margin-left: 5px; }
.stat-card p { font-size: 10px; color: var(--muted); }
.history-panel > .small-note { padding: 15px; }

/* The five-question challenge is a list, too. */
.challenge-intro { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 20px 0 16px; }
.small-note { font-size: 10px; }
.challenge-explainer { margin: 17px 0 9px; display: flex; gap: 10px; align-items: flex-start; }
.challenge-explainer > svg { display: none; }
.challenge-explainer strong { font-size: 12px; font-weight: 500; }
.challenge-explainer p { color: var(--muted); font-size: 11px; margin-top: 4px; }
.challenge-row { display: flex; align-items: center; gap: 15px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.question-number { font-size: 10px; color: var(--muted); width: 18px; }
.challenge-row > .stock-identity { flex: 1; }
.challenge-row .company-mark { display: none; }
.challenge-row .vote-buttons { width: 230px; flex-shrink: 0; }
.challenge-row .stock-identity h3 { font-size: 13px; }
.challenge-submit { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 23px; }
.challenge-submit strong { font-size: 22px; font-weight: 500; }
.challenge-submit strong span { font-size: 12px; color: var(--muted); }
.challenge-submit p { font-size: 10px; color: var(--muted); margin-top: 4px; }

/* Detail view. */
.company-mark { display: inline-flex; align-items: center; justify-content: center; width: 33px; height: 33px; flex-shrink: 0; font-family: Arial,sans-serif; font-weight: 600; color: var(--brand); background: color-mix(in srgb,var(--brand) 5%,white); border-radius: 5px; font-size: 13px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--accent); margin-top: 28px; }
.detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0 27px; }
.detail-heading .company-mark { display: none; }
.detail-heading h1 { font-size: 28px; }
.detail-heading .eyebrow { font-size: 10px; letter-spacing: .3px; }
.detail-heading .button { font-size: 11px; }
.detail-columns { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 24px; }
.chart-panel { padding: 25px; }
.chart-heading { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.small-label { font-size: 10px; color: var(--muted); }
.chart-heading strong { display: block; font-size: 29px; line-height: 1.8; font-weight: 500; }
.chart-heading .change > span { color: var(--muted); font-size: 10px; margin-left: 5px; }
.chart-grid { position: relative; margin-top: 25px; padding: 15px 50px 0 0; height: 220px; background: repeating-linear-gradient(to bottom,transparent,transparent 54px,var(--line) 54px,var(--line) 55px); }
.sparkline.large { width: 100%; height: 200px; }
.chart-high, .chart-low { position: absolute; right: 0; color: var(--muted); font-size: 9px; }
.chart-high { top: 15px; }
.chart-low { bottom: 15px; }
.chart-axis { display: flex; justify-content: space-between; padding: 11px 50px 0 0; font-size: 9px; color: var(--muted); }
.chart-panel > .small-note { margin-top: 20px; }
.detail-prediction { padding: 24px; }
.live-tag { font-size: 10px; color: var(--success); }
.live-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--success); margin-right: 5px; }
.detail-prediction h2 { font-size: 19px; margin: 14px 0 12px; line-height: 1.8; }
.detail-prediction > p { font-size: 11px; line-height: 1.9; color: var(--muted); }
.detail-votes { margin-top: 20px; }
.detail-deadline { display: flex; gap: 6px; font-size: 9px; color: var(--muted); margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.detail-prediction > .small-note { display: block; margin-top: 9px; }
.sentiment-hidden { font-size: 9px; margin-top: 13px; color: var(--muted); text-align: center; }
.sentiment { margin-top: 16px; }
.sentiment > div:first-child { display: flex; justify-content: space-between; font-size: 10px; color: var(--up); }
.sentiment > div:first-child > span:last-child { color: var(--down); }
.sentiment-bar { height: 4px; margin: 6px 0; background: var(--down); border-radius: 4px; }
.sentiment-bar span { display: block; height: 100%; background: var(--up); border-radius: 4px 0 0 4px; }
.sentiment small { display: block; text-align: center; font-size: 9px; color: var(--muted); }
.detail-rules { margin-top: 24px; padding: 23px; }
.detail-rules h2 { font-size: 13px; margin-bottom: 15px; }
.detail-rules h2 > svg { margin-right: 5px; color: var(--accent); }
.detail-rules p { display: flex; gap: 15px; color: var(--muted); font-size: 11px; line-height: 1.9; margin-top: 8px; }
.detail-rules strong { width: 75px; color: var(--accent); flex-shrink: 0; font-weight: 500; }

/* Forms, dialogs and feedback. */
.empty-state { text-align: center; padding: 52px 20px; }
.empty-icon { color: var(--muted); display: inline-flex; margin-bottom: 15px; }
.empty-state h3 { font-size: 16px; font-weight: 500; }
.empty-state p { margin-top: 8px; font-size: 12px; color: var(--muted); }
.empty-state .button { margin-top: 20px; }
.modal-open { overflow: hidden; }
.modal-overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: #14243c66; z-index: 50; }
.modal { position: relative; width: 100%; max-width: 420px; max-height: calc(100dvh - 48px); overflow-y: auto; padding: 32px; background: white; border-radius: 10px; box-shadow: 0 15px 50px #14243c1f; }
.modal-close { position: absolute; right: 14px; top: 14px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.modal h2 { font-size: 22px; line-height: 1.6; }
.modal-description { color: var(--muted); font-size: 12px; margin-top: 7px; line-height: 1.9; }
.modal form { margin-top: 24px; }
.modal form > label { display: block; margin-top: 16px; font-size: 12px; color: var(--accent); }
.modal input { display: block; width: 100%; border: 1px solid var(--line); border-radius: 5px; padding: 10px 12px; margin-top: 6px; font-size: 13px; background: white; color: var(--ink); }
.modal input::placeholder { color: var(--muted); }
.modal label small { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; }
.form-error { color: var(--error); font-size: 11px; line-height: 1.8; margin: 15px 0; }
.form-error:empty { margin: 20px 0; }
.auth-switch { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 11px; color: var(--muted); margin-top: 20px; }
.auth-switch .text-link { font-size: 11px; }
.auth-note { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px; font-size: 10px; line-height: 1.9; color: var(--muted); }
.participation-notice { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.participation-notice strong { font-size: 12px; }
.participation-notice p { color: var(--muted); font-size: 11px; line-height: 1.9; margin-top: 4px; }
.participation-notice .button { flex-shrink: 0; background: white; }
.button.google-auth-button { min-height: 44px; padding: 11px 12px; gap: 10px; color: #1f1f1f; font-family: 'Google Sans', 'Noto Sans JP', 'Yu Gothic UI', sans-serif; font-size: 14px; font-weight: 500; line-height: 20px; background: white; border-color: #747775; border-radius: 4px; }
.google-auth-button img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.auth-unavailable { padding: 14px 16px; margin-top: 20px; background: var(--surface); border-radius: 6px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.legacy-login { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.legacy-login summary { cursor: pointer; color: var(--accent); font-size: 12px; }
.legacy-login summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.legacy-login > p { color: var(--muted); font-size: 11px; line-height: 1.9; margin-top: 10px; }
.legacy-login form { margin-top: 12px; }
.rules-modal { max-width: 520px; }
.rules-list { margin: 25px 0; }
.rules-list > div { display: flex; gap: 15px; margin-top: 20px; }
.rules-list > div > span { font-size: 11px; color: var(--muted); min-width: 18px; }
.rules-list h3 { font-size: 12px; color: var(--accent); margin-bottom: 5px; }
.rules-list p, .about-copy p { font-size: 12px; color: var(--muted); line-height: 2; }
.about-copy { margin: 24px 0; }
.about-copy p { margin-bottom: 17px; }
.about-copy strong { color: var(--accent); font-weight: 500; }
#toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%,10px); display: flex; align-items: center; gap: 9px; background: var(--navy); color: var(--paper); padding: 12px 18px; border-radius: 7px; font-size: 12px; max-width: calc(100vw - 30px); width: max-content; opacity: 0; pointer-events: none; z-index: 100; transition: opacity .15s, transform .15s; }
#toast.visible { opacity: 1; transform: translate(-50%,0); }
#toast.error { background: var(--error); }
.initial-loader, .startup-error, .page-loading { display: flex; justify-content: center; align-items: center; min-height: 65vh; gap: 12px; color: var(--muted); font-size: 13px; }
.startup-error { flex-direction: column; padding: 25px; text-align: center; }
.startup-error img { width: 45px; height: 45px; }
.startup-error h1 { font-size: 23px; margin: 10px 0; }
.loading-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

@media (max-width: 800px) {
  .participation-notice { flex-wrap: wrap; gap: 12px; }
  .header-inner { padding: 0 22px; gap: 22px; }
  .main-nav { gap: 19px; }
  main { padding: 17px 22px 0; }
  .stock-list-heading, .stock-row { grid-template-columns: minmax(0,1fr) 105px 205px; column-gap: 20px; }
  .stock-identity h3 { font-size: 17px; }
  .row-price > strong { font-size: 16px; }
  .row-note { font-size: 9px; }
  .detail-columns { grid-template-columns: minmax(0,1fr) 255px; gap: 18px; }
  .detail-prediction { padding: 20px; }
  .challenge-row .vote-buttons { width: 205px; }
}
@media (max-width: 640px) {
  .header-inner { grid-template-columns: 1fr auto; padding: 15px 20px 0; gap: 11px; min-height: 0; }
  .brand { font-size: 16px; }
  .brand img { width: 25px; height: 25px; }
  .login-link, .account-link { grid-column: 2; grid-row: 1; font-size: 11px; }
  .main-nav { grid-column: 1/-1; grid-row: 2; width: 100%; height: 41px; justify-content: space-between; gap: 12px; }
  .main-nav a { font-size: 12px; padding: 0 2px; }
  main { padding: 16px 20px 0; }
  .demo-notice { font-size: 9px; flex-wrap: wrap; gap: 6px; }
  .demo-notice .text-button { font-size: 9px; }
  .page-heading { padding: 24px 0 21px; align-items: flex-start; }
  .page-heading h1 { font-size: 23px; }
  .page-description { font-size: 11px; line-height: 1.9; }
  .mode-tabs { gap: 25px; }
  .mode-tabs > button { font-size: 12px; }
  .market-toolbar { flex-wrap: wrap; gap: 13px; margin: 16px 0 9px; }
  .filter-tabs { gap: 2px; }
  .filter-tabs button { padding: 5px 8px; font-size: 10px; }
  .search-field { width: 100%; padding: 9px 11px; }
  .search-field input { font-size: 13px; }
  .stock-list-heading { display: none; }
  .stock-row { grid-template-columns: minmax(0,1fr) auto; gap: 13px 10px; padding: 22px 0 16px; }
  .row-identity { gap: 6px; }
  .favorite-button { width: 23px; padding: 3px; }
  .stock-identity h3 { font-size: 17px; }
  .stock-identity p { font-size: 11px; }
  .row-price { min-width: 77px; }
  .row-price > strong { font-size: 16px; }
  .row-price .change { font-size: 10px; }
  .row-vote { grid-column: 1/-1; padding-left: 29px; }
  .vote-date { margin-bottom: 8px; text-align: left; font-size: 10px; }
  .vote-buttons { gap: 10px; }
  .vote-button { min-height: 41px; font-size: 12px; }
  .row-note { padding-left: 29px; font-size: 9px; gap: 5px; flex-wrap: wrap; }
  .compact-sentiment { font-size: 9px; }
  .timezone { font-size: 8px; }
  .page-footer { gap: 16px; padding-top: 20px; font-size: 9px; }
  .page-footer .text-button { font-size: 9px; }
  .table-toolbar { gap: 10px; padding: 13px; }
  .segmented button { font-size: 10px; padding: 6px 8px; }
  .standalone-select { font-size: 10px; padding: 7px 6px; }
  th { font-size: 9px; padding: 12px 14px; }
  td { font-size: 11px; padding: 14px; }
  td .stock-identity strong { font-size: 11px; }
  .table-user strong { font-size: 11px; }
  .ranking-summary { gap: 14px; padding-bottom: 20px; flex-wrap: wrap; font-size: 10px; }
  .ranking-summary strong { font-size: 14px; margin-left: 6px; }
  .ranking-summary .text-link { font-size: 10px; }
  .ranking-footnote { font-size: 10px; }
  .results-overview { gap: 16px; padding-bottom: 20px; }
  .results-overview h2 { font-size: 14px; }
  .results-overview .eyebrow, .results-overview p { font-size: 9px; }
  .result-totals { gap: 15px; }
  .result-totals > div { flex-wrap: wrap; gap: 3px; max-width: 48px; }
  .result-totals svg { width: 16px; }
  .result-totals strong { font-size: 21px; }
  .result-totals span { width: 100%; font-size: 9px; }
  .result-filter { flex-wrap: wrap; gap: 9px; padding: 12px; }
  .result-filter .text-link { font-size: 9px; }
  .register-note { flex-wrap: wrap; gap: 8px; font-size: 11px; }
  .register-note .text-link { font-size: 11px; }
  .stats-grid { margin-bottom: 24px; padding: 16px 0; }
  .stat-card { padding: 0 15px; }
  .stat-card > span { font-size: 10px; }
  .stat-card > strong { font-size: 25px; }
  .stat-card strong small { font-size: 10px; }
  .stat-card p { font-size: 9px; }
  .panel-heading { flex-wrap: wrap; gap: 12px; padding: 15px 13px; }
  .panel-heading h2 { font-size: 12px; }
  .challenge-intro { flex-wrap: wrap; gap: 10px; margin: 17px 0; }
  .challenge-intro .small-note { font-size: 10px; }
  .challenge-explainer strong { font-size: 11px; }
  .challenge-explainer p { font-size: 10px; line-height: 1.9; }
  .challenge-row { flex-wrap: wrap; gap: 12px; padding: 19px 0; }
  .challenge-row > .stock-identity { flex-basis: calc(100% - 35px); }
  .challenge-row .stock-identity h3 { font-size: 13px; }
  .challenge-row .vote-buttons { width: 100%; padding-left: 30px; }
  .challenge-submit { flex-wrap: wrap; gap: 18px; }
  .challenge-submit > div { width: 100%; }
  .challenge-submit > .button { width: 100%; }
  .detail-heading { flex-wrap: wrap; gap: 14px; padding-bottom: 22px; }
  .detail-heading h1 { font-size: 24px; }
  .detail-heading .button { font-size: 10px; min-height: 35px; }
  .detail-columns { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .chart-panel { padding: 20px; }
  .chart-heading strong { font-size: 29px; }
  .chart-grid { height: 200px; }
  .sparkline.large { height: 180px; }
  .detail-prediction { padding: 22px; }
  .detail-prediction h2 br, .detail-prediction > p br { display: none; }
  .detail-rules { padding: 20px; }
  .detail-rules p { gap: 10px; font-size: 10px; }
  .detail-rules strong { width: 66px; }
  .modal-overlay { padding: 16px; }
  .modal { padding: 29px 24px; max-height: calc(100dvh - 32px); }
  .modal input { font-size: 16px; }
  .modal .button { min-height: 43px; }
  .auth-note { font-size: 10px; }
  .rules-list p, .about-copy p { font-size: 11px; }
  #toast { font-size: 11px; bottom: 20px; }
}
/* Real closing prices and voting share the simple market-table layout. */
.source-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.quote-source { display: flex; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap; color: var(--muted); font-size: 11px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.quote-list-heading, .quote-row { grid-template-columns: minmax(0,1fr) 130px 210px; column-gap: 24px; }
.quote-row { padding-top: 21px; padding-bottom: 21px; }
.quote-date { text-align: right; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.quote-status { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.quote-error { color: var(--warning); }
.quote-detail { padding: 30px; }
.live-detail-columns { align-items: start; }
.quote-price-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.quote-price-date { display: grid; gap: 5px; text-align: right; font-size: 10px; color: var(--muted); }
.stock-chart { margin-top: 20px; min-width: 0; }
.stock-chart-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.stock-chart-heading h2 { font-size: 12px; }
.stock-chart-heading > span { font-size: 10px; }
.stock-chart-stage { height: 380px; position: relative; }
.stock-chart-stage > .tradingview-widget-container { height: 100%; width: 100%; }
.stock-chart-stage .tradingview-widget-container__widget { height: calc(100% - 32px); width: 100%; }
.chart-status { position: absolute; inset: 0 0 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--surface); color: var(--muted); font-size: 12px; text-align: center; padding: 16px; border-radius: 4px; }
.chart-status[hidden] { display: none; }
.chart-note { margin-top: 12px; font-size: 10px; line-height: 1.9; color: var(--muted); }
.quote-data-details { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.quote-data-details summary { cursor: pointer; font-size: 11px; color: var(--accent); }
.quote-data-details summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.quote-data-details .quote-facts { margin: 12px 0; border-top: 0; }
.quote-data-details .small-note { line-height: 1.9; }
.closing-price { display: block; font-size: 40px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.8; }
.quote-facts { margin: 24px 0; border-top: 1px solid var(--line); }
.quote-facts > div { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.quote-facts dt { color: var(--muted); width: 100px; flex-shrink: 0; }
.quote-facts dd { margin: 0; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.quote-detail > .small-note, .quote-next-note { font-size: 11px; line-height: 1.9; color: var(--muted); }
.quote-next-note { margin-top: 20px; }
.voting-session { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; margin-bottom: 18px; }
.voting-session > span { color: var(--muted); font-size: 11px; }
.pending-reason { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.result-note { margin-top: 18px; line-height: 1.9; }
.results-panel { margin-top: 20px; }
.page-footer > .footer-source { margin-right: 0; }
@media (min-width: 641px) and (max-width: 800px) {
  .quote-list-heading, .quote-row { grid-template-columns: minmax(0,1fr) 120px 205px; column-gap: 20px; }
}
@media (max-width: 640px) {
  .quote-list-heading { display: none; }
  .quote-row { grid-template-columns: minmax(0,1fr) 105px; padding: 20px 0 15px; gap: 13px 10px; }
  .quote-date { font-size: 10px; }
  .quote-status { margin-top: 0; }
  .quote-source { font-size: 10px; }
  .quote-detail { padding: 22px; }
  .quote-price-heading { gap: 8px; }
  .quote-price-heading .closing-price { font-size: 32px; }
  .stock-chart-stage { height: 320px; }
  .quote-facts > div { font-size: 11px; gap: 12px; }
  .quote-facts dt { width: 75px; }
  .quote-facts dd { gap: 8px; }
  .quote-detail > .quote-status { margin-top: 4px; }
  .page-footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
