.mobile-game-banner{display:none}
@media(max-width:680px){
 /* Keep artwork out from behind navigation. Show it uncropped in a dedicated strip. */
 .anime-scene{position:fixed;inset:0;height:100%;background:#111226}
 .anime-scene img{top:0;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;filter:blur(28px);opacity:.12;mask-image:none;-webkit-mask-image:none}
 .anime-scene::after{background:linear-gradient(#11122677,#111226ed 60%)}
 .mobile-game-banner:not([hidden]){display:block;position:relative;margin:10px 0 0;border-radius:14px;overflow:hidden;background:#141425;aspect-ratio:16/9;box-shadow:0 10px 24px #0003}
 .mobile-game-banner img{display:block;width:100%;height:100%;object-fit:contain;opacity:1}
 .mobile-game-banner::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(transparent 72%,#111226b3)}
 #game-modal{padding:10px}
 #game-modal .game-picker{box-sizing:border-box;width:min(620px,100%);max-height:calc(100dvh - 24px);padding:18px 12px;overflow:auto}
 #game-modal .game-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
 #game-modal .game-choice{box-sizing:border-box;min-width:0;min-height:88px;display:grid;grid-template-columns:20px 28px minmax(0,1fr);gap:6px;padding:10px 8px;align-items:center}
 #game-modal .game-choice input{width:18px;height:18px;margin:0;min-height:0}
 #game-modal .game-art{width:28px;height:28px;border-radius:6px}
 #game-modal .game-choice-copy strong{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
 #game-modal .game-choice-copy small{font-size:10px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 #game-modal .picker-message:empty{display:none}
 #game-modal .domestic-game-option{margin:12px 0;font-size:13px;padding:10px;gap:8px}
 #game-modal .picker-actions{position:sticky;bottom:-18px;padding:10px 0;background:#181d29;z-index:1;gap:6px}
 #game-modal .picker-actions button{min-height:44px;padding:8px;font-size:12px}
}
@media(max-width:360px){
 #game-modal .game-choice{grid-template-columns:18px minmax(0,1fr);gap:6px;padding:9px 7px}
 #game-modal .game-choice .game-art{display:none}
 #game-modal .game-picker h2{font-size:21px}
}

.mobile-gallery{display:none}
@media(max-width:680px){
 .top-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .top-actions button,.top-actions .admin-link{min-height:38px;font-size:11px;padding:6px 3px}
 .hero{padding:10px 12px!important;margin:8px 0!important;border-radius:14px}
 .hero h1{font-size:clamp(12px,3.55vw,22px)!important;white-space:nowrap;line-height:1.5;margin:0 0 5px!important;letter-spacing:-.3px}
 .hero h1 br{display:none}.hero h1 span,.hero h1 em{display:inline}
 .hero-meta{font-size:10px}.hero-copy,.hero .eyebrow{display:none}
 .mobile-gallery:not([hidden]){display:block;min-width:0;margin:8px 0}
 .mobile-gallery h2{font-size:14px;margin:0 0 6px}
 .mobile-gallery-track{display:flex;width:100%;height:112px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;touch-action:pan-x pan-y;border-radius:10px;scrollbar-width:none;background:#141425}
 .mobile-gallery-track figure{position:relative;flex:0 0 100%;min-width:0;height:112px;margin:0;scroll-snap-align:start}
 .mobile-gallery-track img{width:100%;height:100%;object-fit:contain;display:block}
 .mobile-gallery-track figcaption{position:absolute;bottom:0;left:0;right:0;padding:4px 8px;background:linear-gradient(transparent,#111226dd);font-size:11px;color:#fff}
 .event-dashboard{display:block!important}
 .milestones{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px!important}
 .milestones>h2,.milestones>p{grid-column:1/-1;margin:0!important}
 .milestones .milestone-card{min-width:0;margin:0!important;padding:9px!important;border-radius:10px}
 .milestone-card h3{font-size:13px!important;line-height:1.4;margin:0 0 6px!important;overflow-wrap:anywhere}
 .milestone-card p,.milestone-card a{font-size:11px!important;line-height:1.5;overflow-wrap:anywhere}
 .milestone-card img{width:100%!important;max-width:100%!important;height:76px!important;object-fit:contain!important;margin:4px 0!important}
 .milestone-card button{min-height:36px;padding:5px 6px;font-size:11px}.milestone-card .featured-follow{display:none}
 .code-row{flex-wrap:wrap;min-width:0}.code-row code{font-size:10px;overflow-wrap:anywhere}
 #smart-panel{padding:10px!important}#smart-panel h2,.milestones>h2{font-size:18px!important}
 #smart-panel .smart-hint{display:none}
 #smart-panel .smart-pages{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;height:282px!important;min-height:0!important;max-height:282px!important;overflow-y:auto;scroll-snap-type:none;align-content:start}
 #smart-panel .smart-row{display:grid;grid-template-columns:1fr 1fr;gap:5px;min-width:0;padding:8px;min-height:130px;margin:0;border-radius:9px;align-content:space-between}
 #smart-panel .smart-row>div{grid-column:1/-1;min-width:0}
 #smart-panel .smart-row strong{font-size:12px;line-height:1.5;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 #smart-panel .smart-row p{font-size:10px;line-height:1.5}
 #smart-panel .smart-row button{min-height:36px;min-width:0;padding:5px 2px;font-size:10px}
}

@media(max-width:680px){
 #smart-panel .smart-pages{grid-auto-rows:minmax(142px,auto)!important;align-items:stretch!important;align-content:start!important;scroll-snap-type:none!important}
 #smart-panel .smart-row{height:auto!important;min-height:142px!important;max-height:none!important;display:grid!important;grid-template-rows:minmax(66px,auto) 38px!important;align-content:stretch!important;align-items:start!important;overflow:visible!important;position:relative!important;transform:none!important}
 #smart-panel .smart-row>div{height:auto!important;min-height:0!important;align-self:start!important}
 #smart-panel .smart-row button{position:static!important;transform:none!important;margin:0!important;align-self:end!important;height:38px!important;line-height:1.3!important;box-shadow:none!important;flex:none!important;white-space:normal!important}
 #smart-panel .smart-row strong{margin:0!important}
}

@media(max-width:680px){
 #smart-panel .smart-pages{grid-template-rows:none!important;grid-auto-rows:minmax(142px,auto)!important}
 #smart-panel .smart-pages>.smart-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:minmax(66px,auto) 38px!important;flex-basis:auto!important}
 #smart-panel .smart-pages>.smart-row>div{grid-column:1/-1!important;grid-row:1!important}
 #smart-panel .smart-pages>.smart-row button{grid-row:2!important;justify-self:stretch!important;background:#3b3158!important;border:1px solid #8971af!important;border-radius:6px!important;padding:4px!important;isolation:auto!important}
 #smart-panel .smart-pages>.smart-row button::before,#smart-panel .smart-pages>.smart-row button::after{display:none!important;content:none!important}
}

@media(max-width:680px){
 .top-actions button[title*="背景"],.top-actions button[aria-label*="背景"]{display:none!important}
 #smart-panel .smart-pages>.smart-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:minmax(70px,auto) 34px!important;padding:7px!important;min-height:132px!important}
 #smart-panel .smart-pages>.smart-row button{font-size:10px!important;min-height:34px!important;height:34px!important;padding:3px 2px!important}
 #smart-panel .smart-pages>.smart-row button:first-of-type{grid-column:1!important;grid-row:2!important}
 #smart-panel .smart-pages>.smart-row button:last-of-type{grid-column:2!important;grid-row:2!important}
 .milestone-card .featured-follow{display:none!important}
 .milestone-card img{height:104px!important;object-fit:contain!important}
 .mobile-gallery-track{height:130px!important}
 .mobile-gallery-track figure{height:130px!important}
 .mobile-gallery-track img{width:100%!important;height:100%!important;object-fit:fill!important}
}

@media(max-width:680px){
 #theme-settings-button{display:none!important}
 .milestone-card .featured-card-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px;margin-top:8px}
 .milestone-card .featured-card-actions button{min-height:32px!important;height:32px!important;padding:3px 2px!important;font-size:10px!important;line-height:1.3;min-width:0;margin:0!important;white-space:nowrap}
 .milestone-card .featured-card-actions button:nth-child(2){grid-column:1}
 .milestone-card .featured-card-actions button:last-child{grid-column:2}
}

@media(max-width:680px){
 .game-picker,.theme-dialog,.email-dialog,.order-dialog{width:calc(100vw - 20px)!important;max-width:none!important;max-height:calc(100dvh - 20px)!important;padding:16px 12px!important;border-radius:14px!important;box-sizing:border-box}
 .game-picker h2,.theme-dialog h2,.email-dialog h2,.order-dialog h2{font-size:21px!important;line-height:1.4!important}
 .game-picker>p:not(.eyebrow),.email-dialog p,.theme-dialog p{font-size:12px!important;line-height:1.55!important}
 .game-options{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin:12px 0!important}
 .game-choice{min-height:72px!important;padding:8px 6px!important;gap:5px!important}
 .game-choice-copy strong{font-size:11px!important;line-height:1.35!important}.game-choice-copy small{font-size:9px!important}
 .picker-actions,.email-actions{position:sticky;bottom:-16px;padding:10px 0;background:#181d29;z-index:2;gap:6px}
 .picker-actions button,.email-actions button{min-height:40px!important;font-size:11px!important;padding:7px 5px!important}
 .order-dialog{max-height:calc(100dvh - 12px)!important;overflow:hidden!important}
 .order-dialog .order-row{min-height:54px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:5px!important;align-items:center!important;padding:7px 0!important}
 .order-dialog .order-row span{font-size:12px!important;line-height:1.35!important;overflow-wrap:anywhere!important}
 .order-dialog .order-row button{min-height:34px!important;padding:5px 7px!important;font-size:10px!important}
 .order-dialog>button{min-height:40px!important;font-size:11px!important}
 #smart-panel .smart-pages{height:414px!important;max-height:414px!important;grid-template-rows:none!important;grid-auto-rows:132px!important;gap:6px!important;padding:0!important}
 #smart-panel .smart-pages>.smart-row{min-height:132px!important;height:132px!important;grid-template-rows:minmax(0,1fr) 30px!important;padding:7px!important}
 #smart-panel .smart-pages>.smart-row>div{max-height:62px!important;overflow:hidden!important}
 #smart-panel .smart-pages>.smart-row button{min-height:30px!important;height:30px!important;font-size:9px!important}
 .email-dialog form{gap:10px!important}.email-dialog input{min-height:40px!important;font-size:16px!important}
}
@media(max-width:360px){.game-options{gap:5px!important}.game-choice{grid-template-columns:18px minmax(0,1fr)!important}.game-choice .game-art{display:none!important}}

/* v70: final mobile overrides, independent of legacy dashboard row sizing. */
@media(max-width:680px){
 .event-dashboard #smart-panel>.smart-list.smart-pages{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:108px!important;height:222px!important;min-height:0!important;max-height:222px!important;gap:6px!important;align-content:start!important;align-items:start!important;padding:0!important;flex:none!important}
 .event-dashboard #smart-panel>.smart-list.smart-pages>.smart-row{box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:60px 30px!important;align-content:start!important;align-items:start!important;gap:4px!important;padding:7px!important;min-height:108px!important;height:108px!important;max-height:108px!important;flex:none!important;margin:0!important;overflow:hidden!important}
 .event-dashboard #smart-panel>.smart-list.smart-pages>.smart-row>div{grid-column:1/-1!important;grid-row:1!important;min-height:0!important;height:auto!important;max-height:60px!important;align-self:start!important;margin:0!important;overflow:hidden!important}
 .event-dashboard #smart-panel>.smart-list.smart-pages>.smart-row strong{font-size:11px!important;line-height:15px!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important}
 .event-dashboard #smart-panel>.smart-list.smart-pages>.smart-row p{font-size:9px!important;line-height:13px!important;margin:3px 0 0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
 .event-dashboard #smart-panel>.smart-list.smart-pages>.smart-row button{grid-row:2!important;align-self:start!important;min-height:30px!important;height:30px!important;max-height:30px!important;margin:0!important;padding:3px 1px!important;font-size:9px!important}
 .event-dashboard .milestones .milestone-card img{display:block!important;position:static!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;align-self:start!important;margin:4px 0!important}
}
