:root {
  --navy: #0c1f52; --royal: #1d3fd0; --yellow: #f5c800; --bg: #f6f7f9; --card: #fff;
  --text: #111; --muted: #6b7280; --line: #eceef1; --red: #dc2626; --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif; }
main { max-width: 640px; margin: 0 auto; padding: 12px 12px calc(96px + env(safe-area-inset-bottom)); }
a { color: var(--royal); }

.top { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 12px;
  padding: calc(16px + env(safe-area-inset-top)) 16px 14px; position: sticky; top: 0; z-index: 2; }
.logo-tile { width: 52px; height: 52px; border-radius: 14px; background: #fff; flex: none;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.logo-tile img { width: 46px; height: 46px; display: block; }
.top-text { flex: 1; min-width: 0; }
.top-text small { display: block; font-size: 12px; opacity: .75; }
.top-text b { font-size: 24px; letter-spacing: -.5px; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; font-size: 24px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 48px; background: var(--card); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2); padding: 6px; min-width: 210px; }
.menu-panel button { width: 100%; justify-content: flex-start; background: none; color: var(--text);
  font-weight: 500; border-radius: 10px; }
.menu-panel button:hover { background: var(--bg); }

.banner { padding: 10px 16px; font-size: 14px; font-weight: 600; }
.banner-yellow { background: var(--yellow); color: #1a1a1a; }
.banner-red { background: var(--red); color: #fff; }
.notice { background: #e8f5e9; color: #14532d; border-radius: var(--radius); padding: 10px 14px;
  margin: 0 0 10px; font-weight: 600; }
.error { background: #fde8e8; color: #991b1b; border-radius: 10px; padding: 10px 12px; margin: 0; }
.card { background: var(--card); border-radius: var(--radius); padding: 14px; margin: 0 0 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.hint, .meta { color: var(--muted); font-size: 13px; }

.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; }
.chip { flex: none; border: 1px solid #d1d5db; background: var(--card); color: var(--text); border-radius: 999px;
  padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-size: 14px; }
.chip.on { background: var(--royal); border-color: var(--royal); color: #fff; }

.month { display: flex; justify-content: space-between; align-items: center; margin: 14px 4px 6px;
  font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.today { background: var(--yellow); color: #1a1a1a; border-radius: 8px; padding: 1px 7px; font-size: 11px;
  text-transform: none; letter-spacing: 0; }
.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: var(--radius);
  padding: 10px 12px; min-height: 56px; text-decoration: none; color: inherit; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.item.event { border-left: 4px solid var(--royal); }
.item.game { border: 1px solid var(--line); box-shadow: none; opacity: .85; }
.item.broken { border-left: 4px solid var(--red); }
.day { text-align: center; min-width: 40px; }
.day i { display: block; font-style: normal; font-size: 10px; color: var(--muted); }
.event .day i { color: var(--royal); }
.day b { font-size: 18px; }
.day b.span { font-size: 15px; }
.what { min-width: 0; }
.what .t { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.what .s { font-size: 12px; color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 24px 0; }
.more { display: block; text-align: center; margin: 16px 0; min-height: 44px; line-height: 44px; }
.fab { position: fixed; right: 18px; bottom: calc(20px + env(safe-area-inset-bottom)); width: 58px; height: 58px;
  border-radius: 18px; background: var(--yellow); color: var(--navy); font-size: 34px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }

.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.form input, .form textarea { font: inherit; font-size: 16px; padding: 10px 12px; min-height: 44px; width: 100%;
  border: 1px solid #d1d5db; border-radius: 10px; background: #fff; color: var(--text); }
.form textarea { min-height: 96px; resize: vertical; }
.form .row { display: flex; gap: 10px; }
.form .row > label { flex: 1; min-width: 0; }
.form .toggle { flex-direction: row; align-items: center; justify-content: space-between; min-height: 44px; font-weight: 500; }
.form .toggle input { width: 24px; height: 24px; min-height: 0; accent-color: var(--royal); }
.field-error { color: #991b1b; font-size: 13px; font-weight: 500; }

button, .button { font: inherit; font-weight: 700; border-radius: 12px; min-height: 48px; padding: 0 18px;
  border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.primary { background: var(--royal); color: #fff; }
.primary:disabled { background: #9ca3af; }
.secondary { background: var(--card); color: var(--royal); border: 1px solid #d1d5db; }
.danger { background: var(--card); color: var(--red); border: 1px solid #f3c4c4; width: 100%; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions > * { flex: 1; }
dl.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.compare { display: grid; gap: 10px; }
@media (min-width: 560px) { .compare { grid-template-columns: 1fr 1fr; } }

[hidden] { display: none !important; }
.places { display: flex; flex-wrap: wrap; gap: 8px; }
.places .button { flex: 1 1 auto; font-size: 14px; }
