/* でお雀 公式データサイト ― 外部フォント・外部CDNなし
   配色は「部門別ランキング」「Act成績表」に合わせた緑系 */
:root {
  --green: #4a7c59;           /* 背景・表ヘッダー（部門別ランキングと同じ） */
  --green-dark: #2a5c3a;      /* 濃い緑（見出し・数値・選択状態） */
  --green-deep: #1f4a2e;
  --green-soft: #e8f1ea;
  --ink: #333;
  --black: #1a1a1a;
  --sub: #4d5a50;
  --faint: #6b776e;
  --line: #cfd9d1;
  --minus: #cc2200;
  --rank1: #fffbe6;
  --rank2: #f7f7f7;
  --rank3: #fff5ec;
  --font: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif;   /* 日本語ゴシック基準。英数字もその書体の字形を使い、太さを揃える（Arial先頭だと英数字だけ太く見える） */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fade: .32s;
  --t-slide: .38s;
  --gutter: 24px;
  --maxw: 1180px;
  --shadow: 0 6px 15px rgba(0, 0, 0, .3);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-y: scroll; scrollbar-gutter: stable; }   /* 縦スクロールバーの領域を常に確保（画像読み込みで高さが伸びてバーが出た時に、上部UIが横にずれるのを防ぐ） */
body {
  margin: 0;
  background: var(--green);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: clip;   /* hidden だと body がスクロール容器になり、上部UIの固定（sticky）が効かなくなる */
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.topfix { position: sticky; top: 0; z-index: 20; }   /* ヘッダー・Actバー・試合日バーをまとめて上部に固定 */
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #ffd54a; outline-offset: 2px; }
.label {
  font-size: 13px;
  letter-spacing: .12em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 6px;
}
.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- header */
.site-header {
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-slot { height: 40px; min-width: 40px; display: flex; align-items: center; }
.logo-slot img { height: 40px; width: auto; }
.logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 2px 10px;
  border: 2px solid #fff;
  border-radius: 6px;
  line-height: 32px;
}
.brand-sub { font-size: 11px; line-height: 1.3; letter-spacing: .2em; color: #cfe5d5; font-weight: 700; }
.gnav { display: flex; gap: 4px; }
.gnav a {
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 8px 16px;
  color: #d6e8db;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s, transform .12s var(--ease);
}
.gnav a:hover { color: #fff; }
.gnav a:active { transform: scale(.96); }
.gnav a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }

/* ---------------------------------------------------------------- Act tabs */
.actbar { background: #fff; border-bottom: 3px solid var(--green-dark); }
.actbar[hidden] { display: none; }
.actbar .inner { display: flex; align-items: center; gap: 16px; }
.bar-label { font-size: 13px; letter-spacing: .16em; color: var(--faint); font-weight: 700; flex: none; }
.tabs {
  position: relative;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  padding: 6px 0;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  text-decoration: none;
  padding: 8px 16px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--green-dark);
  white-space: nowrap;
  position: relative;
  z-index: 1;
  border-radius: 8px;
  transition: color .2s, transform .12s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.tab small { font-size: 13px; font-weight: 700; margin-right: 1px; letter-spacing: .08em; }
.tab.hot { color: #fff; }
.tab:active { transform: scale(.96) translateY(1px); }
/* 緑のハイライト：ホバーしたタブに追従し、離れると選択中のタブに戻る */
.tab-ink {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 0;
  border-radius: 8px;
  background: transparent;
  transition: transform var(--t-slide) var(--ease), width var(--t-slide) var(--ease), opacity .2s;
  opacity: 0;
  z-index: 0;
}
.tab-ink::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: var(--green-dark);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
  transition: transform .12s var(--ease), box-shadow .12s;
}
/* へこみはインク本体ではなく ::before に掛ける（本体は translateX で動くため、scale を直接掛けると中心がずれる） */
.tab-ink.pressed::before { transform: scale(.96); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }

/* ---------------------------------------------------------------- day chips */
.daybar {
  display: grid;
  grid-template-rows: 1fr;
  background: var(--green-soft);
  border-bottom: 1px solid var(--line);
  transition: grid-template-rows var(--t-slide) var(--ease), border-color var(--t-slide);
}
.daybar.is-empty { grid-template-rows: 0fr; border-bottom-color: transparent; }
.daybar-clip { overflow: hidden; min-height: 0; }
.strip-wrap { position: relative; overflow: hidden; }
.strip {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 14px 0 16px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.strip.enter-from-right { animation: slide-in-right var(--t-slide) var(--ease) both; }
.strip.enter-from-left  { animation: slide-in-left var(--t-slide) var(--ease) both; }
.strip.leave-to-left, .strip.leave-to-right {
  position: absolute;
  top: 0; left: 0; right: 0;
  pointer-events: none;
}
.strip.leave-to-left  { animation: slide-out-left var(--t-slide) var(--ease) both; }
.strip.leave-to-right { animation: slide-out-right var(--t-slide) var(--ease) both; }
@keyframes slide-in-right  { from { transform: translateX(48px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slide-in-left   { from { transform: translateX(-48px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slide-out-left  { from { transform: none; opacity: 1; } to { transform: translateX(-48px); opacity: 0; } }
@keyframes slide-out-right { from { transform: none; opacity: 1; } to { transform: translateX(48px); opacity: 0; } }
.chip {
  flex: none;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 96px;
  padding: 7px 16px 8px;
  text-decoration: none;
  border: 2px solid var(--green);
  border-radius: 10px;
  background: #fff;
  color: var(--green-dark);
  transition: border-color .2s, color .2s, background-color .2s, transform .12s var(--ease), box-shadow .12s;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { background: #f3f9f4; border-color: var(--green-dark); }
.chip:active { transform: scale(.96) translateY(1px); box-shadow: none; }
.chip .c-n { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--faint); transition: color .2s; }
.chip .c-d { font-size: 19px; font-weight: 800; line-height: 1.25; font-variant-numeric: tabular-nums; }
.chip .c-d small { font-size: 13px; font-weight: 700; margin-left: 2px; color: var(--sub); }
.chip[aria-current="page"] { color: #fff; border-color: transparent; background: transparent; }
.chip[aria-current="page"] .c-n, .chip[aria-current="page"] .c-d small { color: rgba(255,255,255,.85); }
.chip.final { border-color: var(--green-dark); justify-content: center; }
.chip-sep {   /* 仕切り線。ボタンとは別要素にして、ボタンの押し込み(scale)に巻き込まれないようにする */
  flex: none;
  width: 2px;
  align-self: stretch;
  margin: 8px -4px 8px 0;
  background: #b9cbbd;
  border-radius: 1px;
  pointer-events: none;
}
.chip.final .c-n { color: var(--green); }
.chip.final[aria-current="page"], .chip.final[aria-current="page"] .c-n { color: #fff; }
.chip-ink {
  position: absolute;
  top: 14px;
  left: 0;
  height: 0;
  width: 0;
  border-radius: 10px;
  background: var(--green);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
  transition: transform var(--t-slide) var(--ease), width var(--t-slide) var(--ease), height var(--t-slide) var(--ease), background-color var(--t-slide), opacity .2s;
  opacity: 0;
  z-index: 0;
}
.chip-ink.on-final { background: var(--green-dark); }

/* ---------------------------------------------------------------- view (fade) */
.view {
  display: block;
  min-height: 60vh;
  padding: 36px 0 64px;
  outline: none;
  transition: opacity var(--t-fade) var(--ease), transform var(--t-fade) var(--ease);
}
.view.leaving { opacity: 0; transform: translateY(8px); transition-duration: .2s; }
.view.entering { opacity: 0; transform: translateY(8px); transition: none; }

.page-head { margin-bottom: 26px; text-align: center; color: #fff; }
.page-head .label { color: #d6e8db; }
.page-head h1 { font-size: 36px; line-height: 1.3; margin: 0 0 8px; font-weight: 800; letter-spacing: 2px; }
.page-head .meta { color: #fff; opacity: .92; font-size: 17px; margin: 0; }
.page-head .meta span + span::before { content: "／"; margin: 0 8px; opacity: .6; }

/* 白いカード（部門別ランキングのカードと同じ） */
.panel {
  background: #fff;
  border-radius: 12px;
  padding: 24px 26px;
  box-shadow: var(--shadow);
  margin-top: 22px;
}
.panel:first-child { margin-top: 0; }
.sec-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--green);
}
.sec-title .label { margin: 0; }
.muted { color: var(--sub); font-size: 15px; }
.note { color: var(--sub); font-size: 14px; margin: 12px 0 0; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 2px solid var(--green-dark);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  color: var(--green-dark);
  transition: background-color .2s, color .2s, transform .12s var(--ease);
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--green-dark); color: #fff; }
.btn.primary:hover { background: var(--green-deep); }

/* ---------------------------------------------------------------- tables（部門別ランキングの表と同じ作り） */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; border: 3px solid var(--black); font-size: 16px; font-variant-numeric: tabular-nums; }
table.data th {
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 10px;
  border: 2px solid var(--black);
  white-space: nowrap;
  text-align: center;
}
table.data td { padding: 9px 10px; border: 2px solid var(--black); text-align: center; white-space: nowrap; font-weight: 700; }
table.data tbody tr { transition: background-color .15s; }
table.data tbody tr:hover td { background: #f1f7f2; }
table.data td.name { text-align: left; padding-left: 14px; }
table.data td.pt { background: var(--rank1); font-weight: 800; color: var(--green-dark); }
table.data td.pt.minus, .minus { color: var(--minus); }
table.data td.rank { font-weight: 800; width: 60px; }
.pt-note { display: block; font-size: 14px; font-weight: 400; color: var(--faint); }
.raw { display: block; font-size: 14px; font-weight: 400; color: var(--faint); }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; flex: none; }
table.simple { max-width: 640px; margin: 0 auto; }
.simple-wrap { max-width: 640px; margin: 0 auto; }
.simple-panel { max-width: 692px; margin-left: auto; margin-right: auto; }   /* 白枠を表の幅に詰める（640px＋左右の余白） */
.simple-center { max-width: 640px; margin: 0 auto; }   /* Act0〜5の簡易表は中央に置く */

/* ---------------------------------------------------------------- day page / thumbnails */
.day-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.day-nav .btn.next { margin-left: auto; }   /* 第1戦は右下に「次」だけ置く */
.figs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.figs > * { min-width: 0; }
.fig-title { font-weight: 800; font-size: 20px; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; }
.fig-title .label { margin: 0; }
.thumb {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 2px solid var(--green);
  border-radius: 10px;
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
  font: inherit;
  text-align: left;
  transition: transform .15s var(--ease), box-shadow .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.thumb img { width: 100%; height: auto; }
.thumb:hover { border-color: var(--green-dark); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.thumb:active { transform: scale(.98); }
.thumb-hint {
  position: absolute;
  right: 8px; bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(42, 92, 58, .92);
  padding: 2px 10px;
  border-radius: 999px;
}
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; align-items: start; }
.thumb-card { margin: 0; }
.thumb-card figcaption { margin-top: 8px; font-weight: 800; font-size: 17px; line-height: 1.4; }
.thumb-card figcaption small { display: block; color: var(--faint); font-weight: 400; font-size: 14px; }

/* 拡大表示（同じページ内） */
.zoom-back {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 25, 15, .82);
  opacity: 0;
  transition: opacity .3s var(--ease);
  cursor: zoom-out;
}
.zoom-back.on { opacity: 1; }
.zoom-box {
  position: fixed;
  z-index: 101;
  transform-origin: 0 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  cursor: zoom-out;
  outline: none;
  will-change: transform;
}
.zoom-box > img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.zoom-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; opacity: 0; transition: opacity .25s; }
.zoom-box iframe.on { opacity: 1; }
.zoom-box.html { cursor: default; }
.zoom-close {
  position: fixed;
  z-index: 102;
  top: 12px; right: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  color: var(--green-dark);
  background: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .4);
  cursor: pointer;
  opacity: 0;
  transition: opacity .25s, transform .12s var(--ease);
}
.zoom-close.on { opacity: 1; }
.zoom-close:active { transform: scale(.96); }
body.zoom-open { overflow: hidden; }

/* ---------------------------------------------------------------- ranking cards（部門別ランキング） */
.rank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rk { background: #fff; border-radius: 12px; padding: 22px 24px; box-shadow: var(--shadow); }
.rk h3 { margin: 0 0 14px; padding-bottom: 8px; font-size: 20px; font-weight: 800; border-bottom: 3px solid var(--green); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rk h3 span { font-size: 14px; color: var(--faint); font-weight: 700; }
.rk-table { width: 100%; border-collapse: collapse; border: 3px solid var(--black); font-size: 16px; }
.rk-table td { padding: 8px 8px; border: 2px solid var(--black); text-align: center; font-weight: 700; }
.rk-table .rank-1 td { background: var(--rank1); }
.rk-table .rank-2 td { background: var(--rank2); }
.rk-table .rank-3 td { background: var(--rank3); }
.rk-table .medal { font-size: 23px; line-height: 1; }
.rk-table td.player-name { text-align: left; padding-left: 14px; }
.rk-table td.score-val { color: var(--green-dark); font-variant-numeric: tabular-nums; }
.rk-table td.score-val.minus { color: var(--minus); }
.rk-table td:first-child { width: 18%; }
.yk { list-style: none; padding: 0; margin: 12px 0 0; font-size: 16px; }
.yk li { padding: 2px 0; }
.yk li::before { content: "★"; color: #b8892b; margin-right: 6px; }
.comment { border-left: 4px solid var(--green); padding: 4px 0 4px 14px; margin: 16px 0 0; font-size: 16px; color: var(--sub); max-width: 640px; }

/* ---------------------------------------------------------------- about */
.about p { margin: 0 0 12px; }
.about ul { margin: 0 0 8px; padding-left: 1.3em; }
.about li { margin: 4px 0; }
.about .panel { margin-top: 22px; }
.rule-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rule-list li { background: var(--green-soft); border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.rule-list li small { display: block; color: var(--green-dark); font-size: inherit; font-weight: 800; }
.rule-list li small::before { content: "【"; }
.rule-list li small::after { content: "】"; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--green-dark); color: #d6e8db; padding: 36px 0 28px; font-size: 15px; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; font-weight: 700; }
.foot-credit { font-size: 15px; color: #d6e8db; text-align: center; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .figs { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .rank-grid { grid-template-columns: 1fr; }
  .rule-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --gutter: 14px; }
  body { font-size: 17px; }
  .site-header .inner { height: 52px; gap: 8px; }
  .brand { flex: none; }
  .logo-slot { height: 30px; min-width: 0; }
  .logo-slot img { height: 30px; }
  .logo-text { font-size: 17px; line-height: 22px; padding: 1px 7px; border-width: 2px; border-radius: 5px; white-space: nowrap; }
  .brand-sub { display: none; }
  .gnav { flex: 1 1 auto; min-width: 0; gap: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .gnav::-webkit-scrollbar { display: none; }
  .gnav a { flex: none; padding: 6px 9px; font-size: 15px; letter-spacing: .02em; white-space: nowrap; }
  .day-nav { flex-wrap: nowrap; }
  .day-nav .btn { flex: 1 1 0; min-width: 0; justify-content: center; text-align: center; padding: 10px 8px; font-size: 14px; line-height: 1.35; }
  .day-nav .btn.next:only-child { margin-left: auto; flex: 0 1 calc(50% - 4px); }
  .bar-label { display: none; }
  .tab { padding: 8px 12px; font-size: 17px; }
  .page-head h1 { font-size: 34px; }
  .page-head .meta { font-size: 16px; }
  .panel { padding: 18px 14px; }
  .rk { padding: 18px 14px; }
  .chip { min-width: 84px; padding: 6px 12px 7px; }
  .zoom-close { top: 8px; right: 8px; }
}

/* 初代iPhone SE（320px）向け */
@media (max-width: 360px) {
  :root { --gutter: 10px; }
  .site-header .inner { gap: 6px; }
  .logo-text { font-size: 14px; line-height: 20px; padding: 1px 5px; }
  .gnav a { padding: 6px 5px; font-size: 13px; letter-spacing: 0; }
  .tab { padding: 8px 9px; font-size: 16px; }
  .page-head h1 { font-size: 28px; }
  .panel { padding: 16px 10px; }
  .day-nav { gap: 6px; }
  .day-nav .btn { padding: 9px 4px; font-size: 13px; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .view.leaving, .view.entering { transform: none; }
}

/* ---------------------------------------------------------------- day page: X embed */
.day-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 22px; align-items: start; }
.day-top.has-tweet { grid-template-columns: minmax(0, 550px) minmax(0, 1fr); }   /* 左：X（左詰め）／右：グラフ */
.day-top .panel { margin-top: 0; }
.tweet-box { min-height: 120px; }
.tweet-box .twitter-tweet { margin: 0 !important; }
@media (max-width: 900px) { .day-top.has-tweet { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- ranking page */
.ranking-panel { max-width: 760px; margin-left: auto; margin-right: auto; }
table.medal td, table.medal th { text-align: center; }
table.medal td.name { text-align: left; }

/* ---------------------------------------------------------------- players page */
.players-panel { max-width: 860px; margin-left: auto; margin-right: auto; }
.player-list { list-style: none; margin: 0; padding: 0; }
.player-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.player-list li:first-child { padding-top: 0; }
.player-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.player-name-h { font-size: 21px; font-weight: 800; margin: 0; color: var(--black); }
.player-awards { font-size: 16px; line-height: 1.8; color: var(--ink); }

/* ---------------------------------------------------------------- rules page */
.swap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; margin-top: 20px; }
.swap h4 { font-size: 15px; font-weight: 800; margin: 0 0 8px; text-align: center; }
.swap-t { width: 100%; border-collapse: collapse; border: 2px solid var(--black); margin-bottom: 8px; font-size: 14px; }
.swap-t td { border: 1px solid var(--black); padding: 4px 8px; white-space: nowrap; font-weight: 800; }
.swap-t td:first-child { width: 44%; }
.swap-next { font-size: 14px; margin: 4px 0 2px; }
@media (max-width: 900px) { .swap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .swap-grid { grid-template-columns: 1fr; } }
.bonus-text { margin: 0; font-weight: 700; line-height: 1.8; }
