/* Night-market arcade skin. Loaded after the original game and species styles. */
:root{--cream:#fff1d5;--gold:#ffd48a;--muted:#c3a78f;--panel:#30221d;--edge:#8c69453d}
html{background:#181412}
body{background:radial-gradient(ellipse at 0 0,#75412b30,transparent 55%),radial-gradient(ellipse at 100% 90%,#565c2620,transparent 50%);line-height:1.5}
.ambient{background:repeating-linear-gradient(90deg,transparent 0 79px,#f5ce8e03 80px),#181412}
.ambient:after{inset:14px;border-color:#d5ae6b15;border-radius:22px}
#app{max-width:1280px;padding:40px 42px}
.menu{grid-template-columns:.9fr 1.1fr;gap:56px;align-items:start;min-height:0}
.menu-art{position:sticky;top:40px;height:min(850px,calc(100svh - 80px));min-height:590px;border-radius:160px 160px 22px 22px;border:1px solid #c59b62;box-shadow:0 0 0 7px #211b16,0 0 0 8px #94714655,0 28px 65px #0006}
.menu-art img{filter:saturate(.85);object-position:50% 50%}
.menu-art:after{border:0;background:linear-gradient(transparent 45%,#1a100d45 65%,#1a100df2);box-shadow:none}
.art-ticket{position:absolute;top:38px;right:25px;z-index:3;writing-mode:vertical-rl;display:flex;gap:12px;padding:19px 12px;background:#f5ddb4;color:#713725;border:1px solid #fff0cb;box-shadow:5px 6px #29180c66;transform:rotate(6deg)}
.art-ticket>span{font-size:10px;letter-spacing:3px}.art-ticket b{font-size:25px;letter-spacing:5px}.art-ticket small{font-size:7px;letter-spacing:1px}
.art-tag{bottom:91px;background:transparent;border:0;box-shadow:none;padding:0;font-size:22px;letter-spacing:3px}
.art-caption{position:absolute;bottom:30px;left:0;right:0;z-index:2;text-align:center;display:grid;gap:6px}.art-caption span{font-size:10px;color:#efc58b;letter-spacing:3px}.art-caption b{font-size:12px;font-weight:400;color:#dcc3a4;letter-spacing:1px}
.menu-content{padding:4px 0}.menu-content:before{display:none}
.eyebrow{font-size:10px;letter-spacing:2.5px;color:#e8bc7e}
.eyebrow i{background:#c2dc9a;box-shadow:0 0 10px #a4d57866}
h1{font-size:clamp(46px,4.5vw,66px);letter-spacing:-3px;line-height:1.2;margin:15px 0 10px;text-shadow:0 3px #6f3825;font-weight:900}
h1>span{display:inline;font-size:inherit;text-align:inherit;margin:0 0 0 8px}.core-word{color:#ffca70;transform:rotate(-8deg);text-shadow:0 3px #8b482e}
.intro{font-size:13px;line-height:1.9;color:#cab19a;margin:0 0 18px;letter-spacing:1px}
.quick-guide{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;border-top:1px solid var(--edge);border-bottom:1px solid var(--edge);padding:12px 0;margin:0 0 23px}
.quick-guide span{font-size:11px;color:#ead3b4;white-space:nowrap}.quick-guide b{font-size:10px;color:#b99566;margin-right:6px;font-weight:500;font-variant-numeric:tabular-nums}
.select-title{margin-bottom:13px;gap:10px}.select-title h2{font-size:14px;letter-spacing:.8px}.select-title>span{font-size:9px;color:#bda187;letter-spacing:.4px}
.breed-grid{gap:9px;grid-template-columns:repeat(4,minmax(0,1fr))}
.breed-card{border:1px solid #79604566;border-radius:12px;background:#2b211c;padding:0 0 10px;box-shadow:0 3px 7px #0002;transition:transform .18s,border-color .18s,background .18s}
.breed-art{height:72px!important;border-bottom:1px solid #ffffff06;overflow:hidden}.breed-art svg{width:100%;height:100%;padding:6px 0 0}
.breed-card .rank-stars{font-size:8px;letter-spacing:2px;line-height:1.3;margin-top:7px;display:block;color:#c7a573}
.breed-card b{font-size:12px;margin:4px 0 1px;letter-spacing:.7px}.breed-card small{font-size:9px;color:#c9b09a;display:block;line-height:1.5}
.breed-card[aria-pressed=true]{padding-bottom:10px;border:1px solid #f8cd80;background:#54402b;transform:none;box-shadow:0 0 0 2px #f8cd8026,inset 0 0 24px #e9b45e0c}
.breed-card[aria-pressed=true]:after{content:'✓';right:5px;top:5px;width:17px;height:17px;line-height:17px;background:#ffda95;color:#45301c;font-size:10px}
@media(hover:hover){.breed-card:hover{transform:translateY(-3px);border-color:#e4bd7a}.primary:hover{filter:brightness(1.1)}.text-btn:hover{color:#ffe2aa;background:#e9bf6810}}
.selected-note{position:relative;margin:14px 0;padding:12px 14px;background:#e4bb7710;border:1px solid #9f774733;border-radius:10px;color:#d9c1a8;font-size:11px;line-height:1.8;min-height:100px}
.selected-note>b{color:#ffda9c}.breed-stats{gap:4px 14px;margin-top:8px;padding-top:7px;font-size:10px;border-top-color:#d7af6a20;color:#c7ae91}
.primary{border:1px solid #ffd18f;background:linear-gradient(110deg,#eda557,#f5c176);color:#382017;border-radius:12px;box-shadow:0 4px 0 #92603d,0 10px 25px #0003,inset 0 1px #fff0c6;min-height:55px}
.primary:active{box-shadow:0 1px 0 #92603d;transform:translateY(3px)}
.start-btn{padding:11px 20px;font-size:22px;letter-spacing:2px}.start-btn span{font-size:11px;letter-spacing:.8px;font-weight:700}
.menu-links{margin-top:17px;color:#c8ae90;gap:8px}.text-btn{min-height:36px;padding:5px 8px;border-radius:6px;text-decoration:none;font-size:11px}.menu-links>span{font-size:10px}
.audio-settings{margin-top:9px;background:#ffffff03;border:1px solid #c99e5826;border-radius:10px;padding:5px 12px}.audio-settings button{min-height:34px;font-size:11px}.audio-settings label{font-size:10px}.audio-settings input{height:20px;cursor:pointer}.tiny{color:#b3977d;font-size:9px;margin:12px 0 0}
/* The play surface keeps its existing event and input structure. */
.game{max-width:550px;margin:0 auto;background:#291d17;border:1px solid #ab8358;border-radius:20px;box-shadow:0 0 0 6px #211913,0 0 0 7px #9c744636,0 25px 80px #0007}
.game-top{height:60px;background:linear-gradient(110deg,#62402b,#33231c);padding:0 18px}.game-brand{font-size:20px;letter-spacing:3px}.game-brand span{font-size:9px;color:#dab892}.icon-btn{height:38px;width:38px;border-radius:11px;background:#20171188;border-color:#ba91544d}
.awning{height:10px;opacity:.85;border-bottom-width:2px}.hud{padding:15px 22px;background:transparent;gap:8px}.hud>div{min-width:0;flex:1}.hud small{font-size:10px;color:#c5a88b}.hud strong{font-size:30px}.hud .core-rule strong{font-size:13px;color:#ffa88b}.timer.urgent{background:#ac4d2d24;border-radius:8px}.timer.urgent strong{color:#ff9d7e}
.order,.breed-signal,.customer-panel{border-radius:10px;border-color:#aa81433d;box-shadow:none;background:#1e1713}.order{padding:10px 13px}.order small{font-size:9px}.progress-track{height:6px;background:#483525}.progress-track>div{background:linear-gradient(90deg,#d9944a,#ffe2a1)}
.breed-signal{padding:9px 12px}.breed-signal>div:first-child{font-size:11px}.customer-panel{padding:10px 12px}.customer-top{font-size:10px;margin-bottom:9px}.customer-top b{font-size:11px}.customer-top strong{font-size:16px}.customer-info>b{font-size:10px}.customer-info>span,.customer-info em{font-size:9px}.customer-info strong{font-size:11px}.sale-notice{font-size:10px;margin-top:8px;color:#c4a888}
.game .stage-wrap{margin:8px 12px;isolation:isolate;border:1px solid #9e754332;border-radius:12px;background:#1a120f;max-height:none}.game .stage-wrap canvas{height:300px}.stage-stamp{left:16px;top:12px}.stage-stamp span{color:#d1a576}.stage-stamp b{color:#f0cfaa}
.flesh-panel{margin:2px 20px 12px;padding:10px 12px;background:#d2ac6910;border:1px solid #d2ac6926;border-radius:10px}.flesh-panel>div:nth-child(3){font-size:12px}.flesh-panel strong{font-size:19px;color:#ffe2a2}.flesh-track{height:10px}.flesh-legend{font-size:10px;color:#cbb191}.scorch-status{font-size:10px!important}.scorch-status b{font-size:9px;color:#c2a78c}.scorch-track{margin-bottom:8px}
.event-rail{margin:0 20px 12px}.event-notice{border-radius:10px}.event-notice.is-idle strong{color:#ceb493}.event-notice.is-idle .event-copy>span{color:#bba184}
.cut-btn{margin:0 20px;width:calc(100% - 40px);min-height:70px;border-radius:12px;border:1px solid #ffc37d;background:linear-gradient(110deg,#dd6838,#bd4429);box-shadow:0 4px #71301e,inset 0 1px #ffd99f66}.cut-btn strong{font-size:23px}.cut-btn small{font-size:11px;color:#ffe0b4}.key-hint{font-size:9px;top:24px;color:#ffe4bd;border-color:#ffd49a88}.game-footer{padding:15px 22px;font-size:10px;color:#c5a68a}
.modal{background:#100c09c9;backdrop-filter:blur(12px)}.modal-card{background:radial-gradient(ellipse at 50% 0,#66442a,#30231b 65%);border-color:#b8935b80;border-radius:22px;padding:30px;box-shadow:0 0 0 5px #c49a4b0c,0 25px 100px #0008}.modal-card h2{font-size:26px;line-height:1.4}.modal-card p{color:#dfc7a8}.secondary{min-height:46px;border-radius:10px;border-color:#a47e465e;background:#241b15}.safe-note{color:#cbb396!important}.nickname-label input:focus-visible,input:focus-visible{outline:2px solid #ffd48a;outline-offset:3px}
@media(min-width:781px) and (max-width:1050px){#app{padding:32px 30px}.menu{gap:32px;grid-template-columns:.7fr 1fr}.menu-art{top:32px}.art-tag{font-size:17px;letter-spacing:1px}.art-ticket{right:18px}.breed-grid{gap:7px}h1{font-size:48px}.quick-guide span{font-size:10px}}
@media(max-width:780px){
 #app{padding:24px 20px}.menu{display:flex;flex-direction:column;gap:24px;max-width:520px}.menu-art{display:block;position:relative;top:auto;width:100%;min-height:0;height:170px;border-radius:18px;box-shadow:0 0 0 4px #211b16,0 0 0 5px #94714644}.menu-art img{object-position:50% 54%}.menu-art:after{background:linear-gradient(90deg,#1a100dca,transparent 85%)}.menu-art:before{inset:5px}.art-ticket{top:15px;right:18px;padding:10px 8px;gap:6px}.art-ticket b{font-size:18px}.art-ticket>span{font-size:8px}.art-ticket small{display:none}.art-tag{left:22px;right:auto;bottom:64px;font-size:21px;letter-spacing:1px}.art-caption{left:22px;right:auto;bottom:23px;text-align:left;gap:3px}.art-caption span{font-size:8px}.art-caption b{font-size:10px}.menu-content{width:100%;padding:0}.eyebrow{text-align:left;font-size:9px}.menu h1,.menu h1>span{font-size:48px}.menu h1{text-align:left;margin:10px 0 12px}.intro{text-align:left;font-size:12px;margin-bottom:16px}.quick-guide{margin-bottom:20px}.breed-art{height:76px!important}.selected-note{min-height:100px}.menu .tiny{margin-top:12px}.game{margin:0 auto}.key-hint{display:none}
}
@media(max-width:440px){
 #app:has(.game:not(.hidden)){padding:0}.ambient:after{display:none}#app{padding:20px 16px}.menu{gap:22px}.menu-art{height:140px}.art-tag{font-size:18px;bottom:60px}.art-caption{bottom:20px}.menu h1,.menu h1>span{font-size:46px}.menu .intro{margin-bottom:15px}.breed-grid{gap:8px}.breed-art{height:64px!important}.breed-card b{font-size:11px}.breed-card small{font-size:8px}.breed-card .rank-stars{font-size:7px;letter-spacing:1px}.select-title>span{font-size:8px}.selected-note{font-size:11px}.breed-stats{font-size:9px;gap:4px 10px}.audio-settings button{font-size:10px}.audio-settings label{font-size:9px}
 .game{width:100%;height:100svh;min-height:0;border:0;border-radius:0;box-shadow:none;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.game-top{height:48px;padding:0 15px}.game-brand{font-size:18px}.icon-btn{height:34px;width:36px}.hud{padding:10px 18px}.hud strong{font-size:25px}.hud .core-rule strong{font-size:12px}.order{margin:0 15px;padding:8px 11px}.order small{font-size:8px}.breed-signal{margin:7px 15px 0;padding:7px 10px}.breed-signal>div:first-child{font-size:10px}.customer-panel{margin:7px 15px 0;padding:8px 10px}.customer-top{margin-bottom:5px;font-size:9px}.customer-top strong{font-size:14px}.customer-info>b{font-size:9px}.customer-info>span,.customer-info em{font-size:8px}.customer-info strong{font-size:10px}.sale-notice{font-size:9px;margin-top:5px}.game .stage-wrap{margin:7px 10px;min-height:110px;flex:1}.game .stage-wrap canvas{height:100%!important}.flesh-panel{margin:0 15px 8px;padding:7px 10px}.flesh-panel strong{font-size:16px}.scorch-status{font-size:9px!important}.scorch-status b{font-size:8px}.flesh-legend{font-size:9px}.event-rail{margin:0 15px 9px}.cut-btn{margin:0 15px;width:calc(100% - 30px);min-height:64px}.game-footer{padding:12px 17px 10px;font-size:9px}
}
@media(max-width:440px) and (max-height:740px){.game-top{height:40px}.game-brand span{display:none}.hud{padding:7px 17px}.hud strong{font-size:22px}.hud small{font-size:8px}.customer-panel{padding:6px 9px}.customer-top strong{font-size:12px}.breed-signal{padding:5px 9px;margin-top:5px}.game .stage-wrap{min-height:90px;margin-top:5px;margin-bottom:5px}.flesh-panel{padding:5px 9px;margin-bottom:6px}.flesh-panel>div:nth-child(3){font-size:10px}.flesh-track{height:7px;margin-top:4px}.flesh-legend{font-size:8px}.scorch-track{margin-bottom:5px}.cut-btn{min-height:55px}.cut-btn strong{font-size:20px}.cut-btn small{font-size:9px}.event-rail{margin-bottom:7px}.event-notice{min-height:42px}.game-footer{padding-top:10px;padding-bottom:7px}}
@media(max-width:440px) and (max-height:620px){.game{height:auto;min-height:100svh}.game .stage-wrap{flex:none;height:140px}}
/* Keep the cutting control in view on laptops and tablets as well as phones. */
.game{line-height:1.25}
@media(min-width:441px){
 #app:has(.game:not(.hidden)){padding-top:24px;padding-bottom:24px}
 .game{display:flex;flex-direction:column;height:calc(100svh - 48px);min-height:680px;max-height:1040px}
 .game>div,.game>button{flex-shrink:0}
 .game .stage-wrap{flex:1;min-height:110px;display:flex;align-items:center}
 .game .stage-wrap canvas{height:100%;max-height:100%;object-fit:contain}
 .customer-info>span{justify-content:flex-start;gap:5px}.customer-info em{margin-left:auto}
}
@media(min-width:441px) and (max-height:850px){
 .game-top{height:44px}.game-brand{font-size:18px}.hud{padding:8px 20px}.hud strong{font-size:24px}.order{padding:7px 11px}.breed-signal{padding:6px 10px;margin-top:6px}.customer-panel{padding:6px 10px;margin-top:6px}.customer-top{margin-bottom:5px}.customer-top strong{font-size:13px}.sale-notice{margin-top:5px}.flesh-panel{padding:6px 10px;margin-bottom:8px}.flesh-panel strong{font-size:16px}.flesh-track{margin-top:5px;height:8px}.event-rail{margin-bottom:8px}.event-notice{min-height:44px;padding-top:5px;padding-bottom:7px}.cut-btn{min-height:58px}.cut-btn strong{font-size:21px}.key-hint{top:18px}.game-footer{padding:12px 22px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
