:root {
  --ink: #09131d; --night: #071624; --lime: #c8ff2d; --paper: #f2f0e9;
  --muted: #68727a; --line: #d7d8d2; --orange: #ff7043;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Noto Sans JP", sans-serif; }
button { font: inherit; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.topbar { height: 74px; padding: 0 5vw; display: flex; align-items: center; color: white; background: var(--night); border-bottom: 1px solid #263543; }
.brand { color: white; text-decoration: none; font-weight: 800; letter-spacing: .08em; display: flex; align-items: center; gap: 12px; }
.brand b { color: var(--lime); }.brand-mark { width: 34px; height: 34px; color: var(--night); background: var(--lime); display: grid; place-items: center; font-weight: 900; transform: rotate(-5deg); }
.edition { margin: auto; color: #81909d; font: 11px "DM Mono"; letter-spacing: .16em; }.edition span { color: var(--lime); }
.sound-toggle { border: 0; color: #a9b4bc; background: transparent; font: 10px "DM Mono"; letter-spacing: .12em; cursor: pointer; display: flex; align-items: center; gap: 9px; }
.sound-bars { display: flex; align-items: center; gap: 2px; height: 14px }.sound-bars i { width: 2px; height: 6px; background: var(--lime) }.sound-bars i:nth-child(2) { height: 13px }.sound-bars i:nth-child(3) { height: 9px }
.hero { padding: 80px 7vw 95px; color: white; background: var(--night); position: relative; overflow: hidden; }
.hero:after { content: "43"; position: absolute; right: 5%; top: -90px; color: transparent; -webkit-text-stroke: 1px #243746; font-size: 360px; font-weight: 900; line-height: 1; transform: rotate(-8deg); }
.eyebrow { color: var(--lime); font: 12px "DM Mono"; letter-spacing: .22em; display: flex; align-items: center; gap: 12px; }.eyebrow span { width: 34px; height: 2px; background: var(--lime); }
.hero h1 { position: relative; z-index: 1; margin: 20px 0 18px; font-size: clamp(42px, 6.2vw, 84px); line-height: 1.12; letter-spacing: -.06em; font-weight: 900; }.hero h1 em { color: var(--lime); font-style: normal; position: relative; }.hero h1 em:after { content: ""; position: absolute; height: 7px; left: 0; right: 0; bottom: 2px; background: var(--lime); transform: skewX(-18deg); opacity: .35; }
.lead { margin: 0; color: #a7b3bc; line-height: 1.9; font-size: 14px; }
main { overflow: hidden; }.simulator { width: min(1160px, 90vw); margin: -42px auto 42px; position: relative; z-index: 2; box-shadow: 0 24px 70px #06111f1c; }
.game-tabs { display: flex; width: 56%; min-width: 420px; }.game-tab { flex: 1; height: 84px; border: 0; padding: 0 24px; display: flex; align-items: center; gap: 16px; text-align: left; color: #82909a; background: #142634; cursor: pointer; }.game-tab.active { color: var(--night); background: var(--lime); }.tab-num { font: 34px "DM Mono"; font-weight: 500; }.game-tab b { display: block; font-size: 16px; }.game-tab small { font: 9px "DM Mono"; letter-spacing: .1em; }
.game-grid { display: grid; grid-template-columns: 1.65fr 1fr; background: white; }.selection-panel { padding: 44px 52px 38px; }.draw-panel { padding: 44px 46px; color: white; background: #102330; }
.panel-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }.step { color: #8f999e; font: 10px "DM Mono"; letter-spacing: .18em; }.panel-heading h2,.draw-panel h2 { margin: 7px 0 0; font-size: 22px; }.panel-heading p { margin: 0; color: #8b9498; font: 10px "DM Mono"; letter-spacing: .1em; }.panel-heading p b { color: var(--ink); font-size: 22px; }
.number-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; }.num-btn { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; color: #26343c; background: #fff; font: 13px "DM Mono"; cursor: pointer; transition: .16s ease; }.num-btn:hover { border-color: #8ca913; transform: translateY(-2px); }.num-btn.selected { color: var(--night); background: var(--lime); border-color: var(--lime); font-weight: 600; box-shadow: 0 0 0 3px #c8ff2d2e; }
.selection-actions { border-top: 1px solid #e3e3df; padding-top: 26px; margin-top: 28px; display: flex; gap: 10px; }.selection-actions button { height: 46px; border: 1px solid #d2d5d3; background: white; padding: 0 22px; font-weight: 700; font-size: 12px; cursor: pointer; }.quick-btn { margin-left: auto; color: #102330; border-color: var(--lime) !important; background: var(--lime) !important; }.quick-btn span { margin-right: 7px; }
.draw-panel .step { color: #6e838f; }.draw-panel h2 { color: var(--lime); }.draw-help { margin: 20px 0 33px; color: #8ea0aa; font-size: 12px; line-height: 1.8; }.draw-panel label { color: #82949e; font: 10px "DM Mono"; letter-spacing: .14em; }.counter { height: 56px; margin-top: 9px; border: 1px solid #314450; display: flex; align-items: center; }.counter button { width: 54px; align-self: stretch; border: 0; color: white; background: transparent; font-size: 22px; cursor: pointer; }.counter strong { margin-left: auto; font: 24px "DM Mono"; }.counter span { margin: 0 auto 0 9px; color: #8da0aa; font-size: 12px; }
.draw-btn { width: 100%; height: 78px; margin-top: 23px; border: 0; color: var(--night); background: var(--lime); display: flex; justify-content: center; align-items: center; gap: 14px; font-weight: 900; cursor: pointer; box-shadow: 6px 6px 0 #081219; transition: .16s; }.draw-btn:not(:disabled):hover { transform: translate(-2px,-2px); box-shadow: 9px 9px 0 #081219; }.draw-btn:disabled { opacity: .28; cursor: not-allowed; }.draw-btn small { display: block; font: 8px "DM Mono"; letter-spacing: .16em; margin-top: 3px; }.draw-icon { font-size: 30px; }.odds { text-align: center; color: #657b87; font: 12px "DM Mono"; margin: 20px 0 0; }
.ad-section { width: min(1040px, 86vw); min-height: 110px; margin: 0 auto 36px; text-align: center; overflow: hidden; }.ad-label { display: block; margin-bottom: 8px; color: #9aa1a3; font: 8px "DM Mono"; letter-spacing: .16em; }
.result-section,.history-section { width: min(1040px, 86vw); margin: 0 auto 48px; position: relative; }.section-title span { color: #879196; font: 10px "DM Mono"; letter-spacing: .18em; }.section-title h2 { margin: 7px 0 24px; font-size: 24px; }.result-card { background: white; border: 1px solid #dedfd9; padding: 32px; }.result-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 24px; border-bottom: 1px solid #e5e5e0; }.result-top small { color: #8d979b; font: 10px "DM Mono"; letter-spacing: .13em; }.result-top p { margin: 6px 0 0; font-size: 12px; }.result-badge { border: 1px solid #bcc2c0; padding: 7px 12px; font: 9px "DM Mono"; letter-spacing: .12em; }.result-badge.win { color: #496500; border-color: #92b510; background: #efffc2; }
.result-balls { min-height: 122px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }.empty-result { color: #a0a7aa; font-size: 13px; }.ball { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--night); font: 18px "DM Mono"; box-shadow: inset -6px -7px 0 #0003; animation: pop .4s both; }.ball.match { color: var(--night); background: var(--lime); }.ball.bonus { position: relative; background: white; color: var(--orange); border: 2px dashed var(--orange); box-shadow: none; }.ball.bonus-match { color: white; background: var(--orange); border-style: solid; box-shadow: 0 0 0 4px #ff704329; }.ball.bonus-match:after { content: "HIT"; position: absolute; top: -9px; right: -9px; padding: 2px 4px; color: white; background: var(--orange); border: 2px solid white; border-radius: 8px; font: 7px "DM Mono"; letter-spacing: .05em; }.plus { color: #9da4a7; font: 15px "DM Mono"; }.result-legend { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: -5px 0 20px; color: #727d82; font-size: 10px; }.result-legend span { display: flex; align-items: center; gap: 6px; }.result-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }.legend-main { background: var(--night); }.legend-match { background: var(--lime); border: 1px solid #9cc515; }.legend-bonus { background: white; border: 2px dashed var(--orange); }.legend-bonus-match { background: var(--orange); box-shadow: 0 0 0 2px #ff704329; }.result-message { padding: 17px; text-align: center; color: #687379; background: #f1f1ed; font-size: 12px; font-weight: 600; }.result-message strong { color: var(--ink); }.bonus-hit-text { color: #d84315; }
.history-section .text-btn { position: absolute; right: 0; top: 15px; border: 0; border-bottom: 1px solid #9ba3a5; color: #748084; background: none; font-size: 11px; cursor: pointer; }.history-list { display: grid; gap: 8px; }.history-empty { border-top: 1px solid #cdd0cb; padding: 24px 0; color: #90999c; font-size: 12px; }.history-row { display: grid; grid-template-columns: 105px 1fr auto; align-items: center; gap: 16px; padding: 15px 18px; background: white; border-left: 3px solid var(--night); }.history-row small { color: #879194; font: 9px "DM Mono"; line-height: 1.7; white-space: nowrap; }.mini-balls { display: flex; gap: 5px; flex-wrap: wrap; }.mini-ball { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--night); font: 9px "DM Mono"; }.history-rank { font-size: 11px; font-weight: 800; }
footer { min-height: 100px; padding: 0 5vw; display: flex; justify-content: space-between; align-items: center; color: #70818c; background: var(--night); font: 9px "DM Mono"; letter-spacing: .08em; }
@keyframes pop { from { transform: translateY(-16px) scale(.7); opacity: 0 } to { transform: none; opacity: 1 } }
.drawing .ball { animation: pop .35s both; }
@media (max-width: 760px) {
  .topbar { padding: 0 20px }.edition { display: none }.hero { padding: 55px 24px 90px }.hero:after { font-size: 230px; right: -80px }.lead { font-size: 12px }
  .simulator { width: calc(100% - 28px); }.ad-section { width: calc(100% - 28px); min-height: 100px; margin-bottom: 58px }.game-tabs { width: 100%; min-width: 0 }.game-tab { padding: 0 14px }.tab-num { font-size: 25px }.game-grid { grid-template-columns: 1fr }.selection-panel,.draw-panel { padding: 32px 22px }.number-grid { grid-template-columns: repeat(7,1fr); gap: 7px }.num-btn { font-size: 11px }.selection-actions button { padding: 0 13px }.result-section,.history-section { width: calc(100% - 28px) }.result-card { padding: 20px 14px }.ball { width: 41px; height: 41px; font-size: 13px }.result-balls { gap: 6px }.history-row { grid-template-columns: 86px 1fr }.history-rank { grid-column: 2 }.sound-toggle { font-size: 0 } footer { padding: 28px 20px; display: block; line-height: 1.7 }
}
