/* トップの画面（島の一覧）: 青基調の昔の個人サイトの見た目。ほかの画面の色は site.css のまま */
/* 地の色は site.css（全部の画面で同じ） */
.retro { --navy: #102a6b; --blue: #1f4fa8; --line: #6f8fd0; --pale: #f4f8ff;
  max-width: 980px; margin: 0 auto; padding: 8px 0 16px; color: var(--navy);
  font-family: "MS PGothic", "ＭＳ Ｐゴシック", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; }
.retro a { color: #0000ee; text-decoration: underline; }
.retro a:visited { color: #551a8b; }
.retro .muted { color: #6a7aa0; }

.retro-title { text-align: center; padding: 12px 8px; border: 3px double var(--blue);
  background: linear-gradient(#ffffff, #dce8ff); }
.retro-title h1 { margin: 0; font-size: 2em; color: var(--navy); letter-spacing: 0.2em;
  text-shadow: 2px 2px 0 #b7c9f0; font-family: "MS PMincho", "ＭＳ Ｐ明朝", "Hiragino Mincho ProN", serif; }
.retro-sub { margin: 4px 0; color: var(--blue); }
.retro-date { margin: 4px 0 0; font-size: 0.9em; }

.counter { text-align: center; margin: 12px 0; font-size: 0.95em; }
.counter .seven-seg { vertical-align: middle; margin: 0 2px; height: 1.5em; width: auto; }
.seven-seg .seg-bg { fill: #0b0b0b; }
.seven-seg .seg-on { fill: #ff3b2f; }
.seven-seg .seg-off { fill: #24100d; }
.counter-days { font-size: 0.85em; color: var(--blue); margin-top: 2px; }
.kiriban { display: inline-block; margin: 8px 0 0; padding: 4px 12px; border: 2px solid #d4a017;
  background: #fff8d0; color: #8a4b00; font-weight: bold; }

.retro-lead { text-align: center; margin: 8px 0; }

.ticker { overflow: hidden; white-space: nowrap; border: 1px solid var(--line); background: var(--pale);
  font-size: 0.9em; padding: 2px 0; margin: 8px 0; }
.ticker-line { display: inline-block; padding-left: 100%; animation: ticker 40s linear infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-line { animation: none; padding-left: 8px; }
}

.retro-h { background: var(--blue); color: #fff; font-size: 1em; margin: 16px 0 6px; padding: 3px 8px;
  border-left: 8px solid var(--navy); }
.retro-note { font-size: 0.85em; margin: 4px 0; }

.retro-table { border-collapse: collapse; width: 100%; background: #fff; border: 3px double var(--blue); }
.retro-table th, .retro-table td { border: 1px solid var(--line); padding: 3px 6px; vertical-align: middle; }
.island-table { font-size: 0.9em; }
.island-table .regime { white-space: nowrap; font-size: 0.9em; }
.retro-table thead th { background: #c9d9ff; color: var(--navy); white-space: nowrap; }
.retro-table th button { all: unset; cursor: pointer; text-decoration: underline dotted; }
.retro-table th button:focus-visible { outline: 2px solid var(--navy); }
.retro-table th[aria-sort="ascending"] button::after { content: " ▲"; }
.retro-table th[aria-sort="descending"] button::after { content: " ▼"; }
.retro-table .num { text-align: right; white-space: nowrap; }
.retro-table tbody tr:nth-child(even) { background: var(--pale); }
.retro-table tr.inactive { color: #8c96b0; }
.island-table .rank { text-align: center; font-weight: bold; }
.island-table .island-name { white-space: nowrap; }
.island-table small { color: #4f62a0; }
.island-name-line { display: flex; align-items: center; gap: 6px; }
.island-owner { display: block; margin: 4px 0 0 31px; }
.badge-summary { width: 200px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.8; }
.badge-summary .title-badge { margin-right: 4px; }
.badge-summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.retro-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.retro-box { min-width: 0; }
.recent-events { margin: 0; padding-left: 1.2em; font-size: 0.9em; }
.recent-events li { margin: 2px 0; }
.recent-events .when { color: #4f62a0; font-size: 0.9em; }
.records th { background: #c9d9ff; font-weight: normal; text-align: left; white-space: nowrap; }
.updates { margin: 0; font-size: 0.9em; }
.updates dt { color: var(--blue); font-weight: bold; }
.updates dd { margin: 0 0 4px 1em; }
.message { font-size: 0.9em; margin: 4px 0; }
.links { margin: 0; padding-left: 1.2em; font-size: 0.9em; }

.retro-hr { border: 0; border-top: 3px double var(--blue); margin: 20px 0 8px; }
.retro-footer { text-align: center; font-size: 0.8em; color: var(--blue); }
.retro-footer p { margin: 2px 0; }

/* 前回比（上がった・下がった）と NEW! の印（当時のように点滅。動きを減らす設定なら止める） */
.retro .up { color: #c00000; font-weight: bold; }
.retro .down { color: #0050c0; font-weight: bold; }
.island-table .move { text-align: center; white-space: nowrap; font-size: 0.9em; }
.new-mark { color: #ff0000; font-weight: bold; font-size: 0.8em; font-family: Verdana, sans-serif;
  animation: blink 1s steps(1, end) infinite; }
@keyframes blink { 50% { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .new-mark { animation: none; }
}
.fx-table { font-size: 0.9em; }
.getters { margin: 0; padding-left: 1.2em; font-size: 0.9em; }
.getter-number { font-family: "Courier New", monospace; font-weight: bold; color: #c00000; }
.banner { margin: 4px 0; }
.banner-html { width: 100%; box-sizing: border-box; font-family: monospace; font-size: 0.8em; }
#world-summary .records th { white-space: normal; }

@media (max-width: 540px) {
  .retro-title h1 { font-size: 1.5em; letter-spacing: 0.08em; overflow-wrap: anywhere; }
}
