/* 飲み放題で元を取れ！・LP styles (izakaya at night) */
:root {
  --ink: #1d120b;
  --night: #150d1f;
  --wood: #3b2314;
  --wood-2: #5a3a22;
  --outline: #2a1608;
  --paper: #fff8e8;
  --paper-2: #f3e6c8;
  --paper-ink: #3b2314;
  --paper-muted: #6a5a4a;
  --red: #d8412f;
  --red-d: #8e2418;
  --gold: #ffd23f;
  --gold-d: #c9a227;
  --cream: #fff3d0;
  --muted: #d8c8b0;
  --green: #6aa84f;
  --blue: #3d85c6;
  --purple: #5a4a8a;
  --maxw: 1140px;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --f-body: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-display: "Dela Gothic One", "M PLUS Rounded 1c", sans-serif;
  --f-brush: "Yuji Syuku", "Hiragino Mincho ProN", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-body);
  font-weight: 500;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: var(--gold); }
code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.wrap { width: min(var(--maxw), 100% - 32px); margin-inline: auto; }

/* ------------------------------------------------------------ outlined display text */
.outline {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: .02em;
  text-shadow:
    3px 0 0 var(--outline), -3px 0 0 var(--outline), 0 3px 0 var(--outline), 0 -3px 0 var(--outline),
    2px 2px 0 var(--outline), -2px 2px 0 var(--outline), 2px -2px 0 var(--outline), -2px -2px 0 var(--outline),
    0 7px 0 #5a120c;
}
.outline.white { color: #fff; }

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27, 15, 7, .94);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--gold-d);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.logo span { font-family: var(--f-display); color: var(--gold); font-size: 1.15rem; text-shadow: 0 2px 0 var(--outline); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--cream); text-decoration: none; font-weight: 800; padding: 8px 14px; border-radius: 999px;
  transition: background .2s;
}
.nav a:hover { background: rgba(255, 210, 63, .15); }
.nav a[aria-current="page"] { background: var(--red); color: #fff; box-shadow: 0 3px 0 var(--red-d); }
.nav-toggle { display: none; background: none; border: 2px solid var(--gold-d); color: var(--gold); border-radius: 10px; padding: 6px 10px; font: inherit; font-weight: 800; cursor: pointer; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: rgba(27, 15, 7, .98); padding: 12px 16px 18px; border-bottom: 3px solid var(--gold-d); }
  .nav.open { display: flex; }
  .nav a { text-align: center; }
  .logo span { font-size: 1rem; }
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-body); font-weight: 800; font-size: 1.1rem; color: #fff; text-decoration: none;
  background: var(--red); border: 3px solid var(--outline); border-radius: 16px;
  padding: 12px 26px; cursor: pointer;
  box-shadow: 0 6px 0 var(--red-d), 0 12px 24px rgba(0, 0, 0, .35);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--red-d), 0 16px 28px rgba(0, 0, 0, .4); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--red-d); }
.btn.blue { background: var(--blue); box-shadow: 0 6px 0 #22507a, 0 12px 24px rgba(0, 0, 0, .35); }
.btn.gold { background: var(--gold); color: var(--outline); box-shadow: 0 6px 0 var(--gold-d), 0 12px 24px rgba(0, 0, 0, .35); }
.btn.small { font-size: .95rem; padding: 8px 16px; border-radius: 12px; }

/* ------------------------------------------------------------ sections */
section { padding: 88px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 44px; }
.kicker { font-family: var(--f-brush); color: var(--red); font-size: 1.3rem; display: block; margin-bottom: 4px; }
.section-head h2 { margin: 0; font-size: clamp(1.8rem, 4.6vw, 2.9rem); line-height: 1.35; }
.section-head p { margin: 14px auto 0; max-width: 680px; color: var(--muted); }

.paper {
  background:
    repeating-linear-gradient(90deg, rgba(120, 80, 40, .05) 0 2px, transparent 2px 120px),
    var(--paper);
  color: var(--paper-ink);
}
.paper .section-head p { color: var(--paper-muted); }
.paper a { color: var(--red); }
.night { background: linear-gradient(180deg, var(--night), #0d0814); }
.wood { background: linear-gradient(180deg, #2a180c, var(--ink)); }

/* noren-ish divider */
.noren { height: 26px; background: repeating-linear-gradient(90deg, #1f2f5a 0 58px, #16244a 58px 62px); border-bottom: 4px solid #0e1733; }

/* ------------------------------------------------------------ hero */
.hero {
  min-height: min(calc(100vh - 64px), 860px);
  display: grid; align-items: center;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(216, 65, 47, .25), transparent 60%),
    linear-gradient(180deg, rgba(10, 5, 15, .55), rgba(10, 5, 15, .88)),
    url("img/bg_title.jpg") center / cover no-repeat;
  overflow: hidden;
  padding: 60px 0 80px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { margin: 0; line-height: 1.12; }
.hero h1 .l1 { display: block; font-size: clamp(2rem, 5.5vw, 3.6rem); color: var(--cream); }
.hero h1 .l2 { display: block; font-size: clamp(3.2rem, 10vw, 6.4rem); }
.hero h1 .ch { display: inline-block; animation: bob 2.6s ease-in-out infinite; }
.ribbon {
  display: inline-block; margin: 24px 0 18px; padding: 6px 30px;
  background: #b3261e; color: #fff; font-weight: 800; font-size: 1.1rem;
  clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
}
.hero .lead { font-size: 1.12rem; color: var(--cream); max-width: 34em; }
.hero .lead strong { color: var(--gold); }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-shot { position: relative; }
.hero-shot .frame {
  border: 6px solid var(--outline); border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 4px var(--gold-d), var(--shadow);
  transform: rotate(3deg);
  animation: tipsy 6s ease-in-out infinite;
}
.hero-shot .mug { position: absolute; width: 130px; left: -46px; bottom: -40px; transform: rotate(-14deg); filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .5)); animation: bob 3s ease-in-out infinite; }
.hero-shot .coin { position: absolute; width: 46px; right: -12px; top: -18px; animation: spin 2.4s linear infinite; }
.lantern { position: absolute; top: -10px; width: 90px; transform-origin: top center; animation: swing 3.4s ease-in-out infinite; pointer-events: none; filter: drop-shadow(0 0 30px rgba(255, 120, 40, .6)); }
.lantern.l { left: 2%; } .lantern.r { right: 2%; animation-delay: -1.3s; }
.age-note { margin-top: 22px; font-size: .85rem; font-weight: 800; color: #ff5a4a; text-shadow: 0 1px 2px rgba(0, 0, 0, .85); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .cta { justify-content: center; }
  .hero-shot { max-width: 560px; margin: 16px auto 0; }
  .lantern { width: 64px; }
}

/* ------------------------------------------------------------ cards / grids */
.grid { display: grid; gap: 22px; }
.grid > * { min-width: 0; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c5 { grid-template-columns: repeat(5, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.c3, .grid.c4, .grid.c5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.c2, .grid.c3, .grid.c4, .grid.c5 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); color: var(--paper-ink);
  border: 3px solid var(--outline); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 6px 0 rgba(0, 0, 0, .35);
}
.card h3 { margin: 0 0 6px; font-size: 1.3rem; font-weight: 800; }
.card p { margin: 0; color: var(--paper-muted); }
.night .card, .wood .card { box-shadow: 0 8px 0 rgba(0, 0, 0, .5); }

.step { position: relative; text-align: center; padding-top: 34px; }
.step .num {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; font-family: var(--f-display); font-size: 1.3rem;
  border: 3px solid var(--outline);
}
.step img { height: 120px; width: auto; margin: 0 auto 10px; object-fit: contain; }

/* course cards */
.course { text-align: center; padding: 0; overflow: hidden; transition: transform .2s; }
.course:hover { transform: translateY(-6px) rotate(-.5deg); }
.course .band { padding: 14px; color: #fff; font-family: var(--f-brush); font-size: 2rem; text-shadow: 0 2px 0 var(--outline); }
.course .price { font-family: var(--f-display); font-size: 2.4rem; color: var(--red); line-height: 1.2; margin-top: 12px; }
.course .meta { font-weight: 800; }
.course .stars { color: #c9811a; font-weight: 800; letter-spacing: .1em; }
.course .icons { display: flex; justify-content: center; gap: 8px; padding: 10px 16px 0; }
.course .icons img { height: 64px; width: auto; }
.course .body { padding: 0 20px 22px; }
.course .body p { margin-top: 8px; }

/* characters */
.chara { text-align: center; padding: 16px 16px 20px; }
.chara .pic { height: 190px; display: grid; place-items: end center; background: radial-gradient(circle at 50% 70%, #ffe7b0, transparent 70%); border-radius: 14px; margin-bottom: 10px; }
.chara .pic img { max-height: 190px; width: auto; }
.chara .role { display: inline-block; font-size: .8rem; font-weight: 800; color: #fff; padding: 2px 12px; border-radius: 999px; margin-bottom: 6px; }
.chara q { display: block; font-size: .92rem; color: var(--paper-muted); margin-top: 6px; }

/* ------------------------------------------------------------ drunk demo */
.drunk-demo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.drunk-demo > * { min-width: 0; }
.drunk-view { --d: 0; --lid: 0; position: relative; border: 6px solid var(--outline); border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 0 0 4px var(--gold-d), var(--shadow); aspect-ratio: 16 / 9; }
.drunk-stage { position: absolute; inset: 0; animation: drunk-sway 4.2s ease-in-out infinite; }
.drunk-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drunk-stage .base {
  filter: blur(calc(var(--d) * 2.2px)) saturate(calc(1 + var(--d) * .9)) hue-rotate(calc(var(--d) * 28deg)) sepia(calc(var(--d) * .35));
}
.drunk-stage .ghost {
  opacity: calc(var(--d) * .5);
  filter: blur(calc(var(--d) * 3px)) hue-rotate(calc(var(--d) * -30deg));
  animation: drunk-ghost 3.1s ease-in-out infinite;
}
.drunk-view .vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, calc(.15 + var(--d) * .8)) 100%); }
.drunk-view .tint { position: absolute; inset: 0; pointer-events: none; background: rgba(255, 60, 40, calc(var(--d) * .18)); mix-blend-mode: multiply; }
.drunk-view .lid { position: absolute; left: -10%; right: -10%; height: calc(var(--lid) * 52%); background: #000; pointer-events: none; transition: height .25s; }
.drunk-view .lid.t { top: 0; border-radius: 0 0 50% 50% / 0 0 30% 30%; }
.drunk-view .lid.b { bottom: 0; border-radius: 50% 50% 0 0 / 30% 30% 0 0; }
.drunk-view .hic { position: absolute; font-family: var(--f-display); color: #fff; font-size: 2rem; text-shadow: 0 3px 0 var(--outline), 3px 0 0 var(--outline), -3px 0 0 var(--outline); opacity: 0; pointer-events: none; }
.drunk-view.jolt .drunk-stage { animation: jolt .25s ease-out; }
.drunk-view.jolt .hic { animation: pop 1s ease-out; }
@keyframes drunk-sway {
  0%, 100% { transform: rotate(calc(var(--d) * -3.2deg)) translate(calc(var(--d) * -16px), calc(var(--d) * 6px)) scale(calc(1.02 + var(--d) * .08)); }
  50% { transform: rotate(calc(var(--d) * 3.2deg)) translate(calc(var(--d) * 16px), calc(var(--d) * -6px)) scale(calc(1.02 + var(--d) * .1)); }
}
@keyframes drunk-ghost {
  0%, 100% { transform: translate(calc(var(--d) * 26px), calc(var(--d) * -10px)); }
  50% { transform: translate(calc(var(--d) * -20px), calc(var(--d) * 12px)); }
}
.drunk-panel { background: rgba(27, 15, 7, .85); border: 3px solid var(--gold-d); border-radius: var(--radius); padding: 24px; }
.drunk-panel .stage-name { font-family: var(--f-display); font-size: 2rem; line-height: 1.2; }
.drunk-panel .val { font-family: var(--f-display); font-size: 1.1rem; color: var(--muted); }
.drunk-range { width: 100%; margin: 18px 0 8px; accent-color: var(--red); height: 28px; cursor: pointer; }
.fx-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.fx-list li { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); color: rgba(255, 243, 208, .45); transition: all .25s; }
.fx-list li b { color: inherit; min-width: 5.2em; flex: none; font-family: var(--f-body); font-weight: 800; }
.fx-list li.on { background: rgba(216, 65, 47, .25); color: var(--cream); }
.fx-list li.on b { color: var(--gold); }
@media (max-width: 900px) { .drunk-demo { grid-template-columns: 1fr; } }

.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.strip > * { min-width: 0; }
.strip figure { margin: 0; }
.strip img { border-radius: 12px; border: 3px solid var(--outline); }
.strip figcaption { text-align: center; font-weight: 800; margin-top: 6px; color: var(--muted); }
@media (max-width: 600px) { .strip { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery > * { min-width: 0; }
.gallery button { padding: 0; border: 3px solid var(--outline); border-radius: 12px; overflow: hidden; cursor: zoom-in; background: #000; position: relative; }
.gallery button img { transition: transform .3s; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.gallery button:hover img { transform: scale(1.06); }
.gallery button span { position: absolute; left: 8px; bottom: 8px; background: rgba(27, 15, 7, .85); color: var(--cream); font-size: .8rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.gallery .wide { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
dialog.lightbox img { border: 4px solid var(--gold-d); border-radius: 12px; }
dialog.lightbox p { text-align: center; color: var(--cream); font-weight: 800; margin: 10px 0 0; }
dialog.lightbox .close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--outline); background: var(--red); color: #fff; font-size: 1.2rem; font-weight: 800; cursor: pointer; }

/* ------------------------------------------------------------ play / code */
.play-box { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.play-box > * { min-width: 0; }
@media (max-width: 800px) { .play-box { grid-template-columns: 1fr; } }
pre.code { background: #120a05; color: #ffe9a8; border: 3px solid var(--gold-d); border-radius: 14px; padding: 18px 20px; overflow-x: auto; font-size: .95rem; line-height: 1.7; margin: 0; }
pre.code .c { color: #8a7a6a; }
.keys { width: 100%; border-collapse: collapse; }
.keys td { padding: 10px 8px; border-bottom: 1px dashed rgba(59, 35, 20, .25); vertical-align: middle; }
.keys td:first-child { white-space: nowrap; width: 40%; }
@media (max-width: 420px) {
  .keys td:first-child { white-space: normal; }
}
kbd { display: inline-block; min-width: 1.9em; text-align: center; padding: 2px 8px; border: 2px solid var(--outline); border-bottom-width: 4px; border-radius: 8px; background: #fff; color: var(--outline); font-weight: 800; font-size: .9rem; margin: 2px; }

/* ------------------------------------------------------------ tables (rule page) */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 3px solid var(--outline); background: var(--paper); }
table.data { width: 100%; border-collapse: collapse; color: var(--paper-ink); min-width: 560px; }
table.data th, table.data td { padding: 10px 14px; text-align: left; border-bottom: 1px solid rgba(59, 35, 20, .15); }
table.data thead th { background: var(--wood); color: var(--cream); font-weight: 800; position: sticky; top: 0; }
table.data tbody tr:nth-child(even) { background: rgba(243, 230, 200, .55); }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data img.ico { height: 40px; width: 40px; object-fit: contain; display: inline-block; vertical-align: middle; margin-right: 8px; }
.tier { display: inline-block; font-size: .78rem; font-weight: 800; padding: 1px 10px; border-radius: 999px; color: #fff; }
.tier.t0 { background: var(--green); } .tier.t1 { background: var(--blue); } .tier.t2 { background: var(--gold-d); }
.chip { display: inline-block; font-size: .8rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: #e3effa; color: #1f5f99; margin: 2px 4px 2px 0; white-space: nowrap; }
.chip.red { background: #fde3df; color: #a3291b; }
.chip.green { background: #e2f3dc; color: #2f6d22; }
.chip.gold { background: #fff0bf; color: #7a5a00; }

/* rule layout with side toc */
.doc { display: grid; grid-template-columns: 230px 1fr; gap: 40px; align-items: start; }
.doc > * { min-width: 0; }
.toc { position: sticky; top: 90px; background: rgba(27, 15, 7, .85); border: 3px solid var(--gold-d); border-radius: var(--radius); padding: 16px 12px; }
.toc b { display: block; font-family: var(--f-brush); color: var(--gold); font-size: 1.2rem; padding: 0 8px 6px; }
.toc a { display: block; color: var(--cream); text-decoration: none; padding: 6px 10px; border-radius: 10px; font-weight: 700; font-size: .95rem; }
.toc a:hover, .toc a.active { background: rgba(216, 65, 47, .35); }
.doc-body > section { padding: 0 0 64px; }
.doc-body h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin: 0 0 18px; line-height: 1.35; }
.doc-body h3 { font-size: 1.25rem; margin: 26px 0 10px; color: var(--gold); }
.doc-body p { margin: 0 0 14px; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px; } .toc b { width: 100%; } }

.page-hero { padding: 70px 0 60px; text-align: center; background: linear-gradient(180deg, rgba(10, 5, 15, .6), rgba(29, 18, 11, 1)), url("img/bg_izakaya.jpg") center / cover; }
.page-hero h1 { margin: 0; font-size: clamp(2.2rem, 6vw, 3.6rem); }
.page-hero p { margin: 14px auto 0; max-width: 640px; color: var(--cream); }

.formula { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; background: var(--paper); color: var(--paper-ink); border: 3px solid var(--outline); border-radius: var(--radius); padding: 22px; font-weight: 800; }
.formula .term { background: #fff; border: 2px solid var(--outline); border-radius: 12px; padding: 8px 14px; text-align: center; }
.formula .term small { display: block; font-size: .75rem; color: var(--paper-muted); font-weight: 700; }
.formula .op { font-family: var(--f-display); font-size: 1.6rem; color: var(--red); }
.formula .term.result { background: var(--gold); }

.timeline { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.timeline li { position: relative; padding: 0 0 22px 60px; }
.timeline li::before { counter-increment: t; content: counter(t); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--f-display); border: 3px solid var(--outline); }
.timeline li::after { content: ""; position: absolute; left: 20px; top: 44px; bottom: 2px; width: 3px; background: rgba(255, 210, 63, .35); }
.timeline li:last-child::after { display: none; }
.timeline li b { display: block; color: var(--gold); font-size: 1.1rem; }

.meter-card h3 { margin-top: 0; color: var(--paper-ink); display: flex; align-items: center; gap: 10px; }
.meter-bar { height: 16px; border-radius: 999px; background: #2a1608; overflow: hidden; margin: 8px 0 12px; }
.meter-bar i { display: block; height: 100%; border-radius: 999px; }
.meter-card ul { margin: 0; padding-left: 1.2em; color: var(--paper-muted); }
.meter-card ul li { margin: 4px 0; }

/* callout: a paper tag with a full outline and a round badge icon (never a coloured left bar) */
.callout {
  position: relative;
  background: var(--paper-2);
  color: var(--paper-ink);
  border: 3px solid var(--outline);
  border-radius: var(--radius);
  padding: 16px 20px 16px 60px;
  margin: 18px 0;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .25);
}
.callout::before {
  content: "🍢";
  position: absolute; left: 14px; top: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--outline);
  font-size: 1rem; border: 2px solid var(--outline);
}
.callout.red { background: #fdeaea; }
.callout.red::before { content: "⚠"; background: var(--red); color: #fff; }
.callout p, .callout > * { margin: 0; }
.callout p + p { margin-top: 8px; }

/* calculator */
.calc { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.calc > * { min-width: 0; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.seg { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.seg button { font: inherit; font-weight: 800; border: 3px solid var(--outline); border-radius: 12px; padding: 8px 16px; cursor: pointer; background: var(--paper-2); color: var(--paper-ink); }
.seg button[aria-pressed="true"] { background: var(--red); color: #fff; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pick button { font: inherit; display: flex; align-items: center; gap: 8px; text-align: left; padding: 6px 10px; border: 2px solid var(--outline); border-radius: 12px; background: #fff; color: var(--paper-ink); cursor: pointer; font-weight: 800; font-size: .88rem; line-height: 1.3; transition: transform .1s; }
.pick button:hover { background: #ffe9a8; }
.pick button:active { transform: scale(.96); }
.pick button img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.pick button small { display: block; color: var(--red); font-weight: 800; }
.pick button.food small { color: #2f7d32; }
.receipt { background: #fffdf6; color: var(--paper-ink); border-radius: 8px; padding: 22px 22px 30px; box-shadow: var(--shadow); position: sticky; top: 90px;
  -webkit-mask: linear-gradient(#000 0 0) top/100% calc(100% - 12px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/20px 12px repeat-x;
  mask: linear-gradient(#000 0 0) top/100% calc(100% - 12px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/20px 12px repeat-x; }
.receipt h3 { font-family: var(--f-brush); text-align: center; font-size: 2rem; margin: 0; color: var(--paper-ink); }
.receipt .items { list-style: none; padding: 0; margin: 10px 0; max-height: 220px; overflow-y: auto; border-top: 2px dashed #c8b8a0; border-bottom: 2px dashed #c8b8a0; }
.receipt .items li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-weight: 700; font-size: .92rem; }
.receipt .items li button { border: 0; background: none; color: var(--red); cursor: pointer; font-weight: 800; }
.receipt .items .empty { color: #9a8a7a; justify-content: center; padding: 16px 0; }
.receipt .row { display: flex; justify-content: space-between; font-weight: 800; padding: 2px 0; }
.receipt .row.minus { color: #c0301f; }
.receipt .row.plus { color: #2f7d32; }
.receipt .net { font-family: var(--f-display); font-size: 2.1rem; text-align: right; line-height: 1.3; margin-top: 6px; }
.receipt .rank { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px; border: 3px solid #d21e1e; border-radius: 14px; color: #b3261e; }
.receipt .rank .g { font-family: var(--f-display); font-size: 2.2rem; line-height: 1; min-width: 1.6em; text-align: center; }
.receipt .warn { margin-top: 10px; font-size: .88rem; font-weight: 700; color: #a3291b; background: #fde3df; border-radius: 10px; padding: 8px 10px; }
.receipt .warn.ok { color: #2f6d22; background: #e2f3dc; }
.receipt .penalties label { display: flex; gap: 8px; align-items: center; font-size: .9rem; font-weight: 700; margin: 4px 0; cursor: pointer; }

/* ------------------------------------------------------------ games page */
.game-index { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.game-index a { text-decoration: none; font-weight: 800; font-size: .92rem; color: var(--cream); background: rgba(27, 15, 7, .8); border: 2px solid var(--gold-d); padding: 6px 14px; border-radius: 999px; }
.game-index a:hover { background: var(--red); border-color: var(--red); }
.game { display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: center; padding: 48px 0; border-bottom: 2px dashed rgba(255, 210, 63, .2); }
.game > * { min-width: 0; }
.game.no-shot { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
.game:nth-of-type(even) .shots { order: 2; }
.game .shots { position: relative; }
.game .shots img { border: 5px solid var(--outline); border-radius: 14px; box-shadow: 0 0 0 3px var(--gold-d), var(--shadow); cursor: zoom-in; }
.game .shots img + img { position: absolute; width: 46%; right: -14px; bottom: -22px; transform: rotate(4deg); }
.game .no { font-family: var(--f-display); color: var(--red); font-size: 1rem; letter-spacing: .1em; }
.game h2 { margin: 2px 0 8px; font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.35; }
.game .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.game .tags span { font-size: .8rem; font-weight: 800; padding: 2px 12px; border-radius: 999px; background: rgba(255, 210, 63, .15); color: var(--gold); border: 1px solid rgba(255, 210, 63, .4); }
.game .tags span.diff { background: rgba(216, 65, 47, .2); color: #ffb3a8; border-color: rgba(216, 65, 47, .5); }
.game ol { margin: 0 0 14px; padding-left: 1.3em; }
.game ol li { margin: 4px 0; }
.outcome { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.outcome > * { min-width: 0; }
.outcome div { border-radius: 12px; padding: 10px 14px; font-size: .92rem; }
.outcome .win { background: rgba(106, 168, 79, .18); border: 2px solid rgba(106, 168, 79, .6); }
.outcome .lose { background: rgba(216, 65, 47, .16); border: 2px solid rgba(216, 65, 47, .55); }
.outcome > div > b:first-child { display: block; font-size: .85rem; }
.outcome .win > b:first-child { color: #9be07a; } .outcome .lose > b:first-child { color: #ff9a8a; }
.outcome b { color: #fff; }
.tip { margin-top: 12px; font-size: .92rem; color: var(--muted); }
.tip::before { content: "💡 コツ："; font-weight: 800; color: var(--gold); }
@media (max-width: 860px) {
  .game { grid-template-columns: 1fr; }
  .game:nth-of-type(even) .shots { order: 0; }
  .game .shots img + img { display: none; }
  .outcome { grid-template-columns: 1fr; }
}
.mini { display: flex; gap: 14px; align-items: flex-start; }
.mini .ico { font-size: 1.8rem; line-height: 1; }

/* ------------------------------------------------------------ footer */
.site-footer { background: #0d0805; border-top: 3px solid var(--gold-d); padding: 40px 0 34px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: grid; gap: 18px; }
.site-footer .warn { background: rgba(216, 65, 47, .15); border: 2px solid rgba(216, 65, 47, .5); color: #ff5a4a; padding: 12px 16px; border-radius: 12px; font-weight: 800; text-shadow: 0 1px 2px rgba(0, 0, 0, .85); }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer nav a { color: var(--cream); font-weight: 800; }

/* ------------------------------------------------------------ animations */
@keyframes swing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotateY(360deg); } }
@keyframes tipsy { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-8px); } }
@keyframes jolt { 0% { transform: translate(0, 0) rotate(0); } 30% { transform: translate(-14px, 8px) rotate(-2deg); } 60% { transform: translate(10px, -6px) rotate(1.5deg); } 100% { transform: translate(0, 0); } }
@keyframes pop { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 20% { opacity: 1; transform: translateY(0) scale(1.1); } 100% { opacity: 0; transform: translateY(-40px) scale(1); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* keep short cells on one line */
table.data th, table.data td:first-child { white-space: nowrap; }
table.data.compact td:not(:last-child) { white-space: nowrap; }
table.data td.nw { white-space: nowrap; }

.hero-logo { width: min(620px, 100%); height: auto; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)); animation: bob 3.4s ease-in-out infinite; }
@media (max-width: 900px) { .hero-logo { margin: 0 auto; } }
