:root{--ink:#172338;--paper:#fffaf0;--red:#df5846;--gold:#f2b93f;--blue:#447fbe;--purple:#7757b7}*{box-sizing:border-box}body{color:var(--ink);font-family:var(--font-geist-sans),"Yu Gothic",sans-serif;background:#eee6d7;margin:0}button{font:inherit}.game{background-color:#0000;background-image:linear-gradient(#fff5 1px,#0000 1px),linear-gradient(90deg,#fff5 1px,#0000 1px);background-position:0 0,0 0;background-repeat:repeat,repeat;background-size:28px 28px;background-attachment:scroll,scroll;background-origin:padding-box,padding-box;background-clip:border-box,border-box;min-height:100vh;padding:0 24px 50px}header,.intro,.layout{max-width:1280px;margin:auto}header{justify-content:space-between;align-items:center;height:82px;display:flex}header>div{align-items:center;gap:10px;display:flex}.logo{background:var(--ink);color:#fff;width:44px;height:44px;box-shadow:4px 4px var(--gold);border-radius:13px;place-items:center;font-size:28px;font-weight:900;display:grid}header b{font-size:20px}header small{color:#747b86}.sub,.primary{border:2px solid var(--ink);cursor:pointer;border-radius:12px;padding:11px 17px;font-weight:900}.sub{color:var(--ink);background:#fff}.primary{background:var(--red);color:#fff;box-shadow:0 4px #9d3b30}.primary:disabled{opacity:.4;cursor:not-allowed}.intro{padding:18px 0 22px}.intro>p{letter-spacing:-.04em;max-width:780px;margin:0 0 18px;font-size:clamp(22px,4vw,42px);font-weight:950}.stats{flex-wrap:wrap;gap:8px;display:flex}.stats span{background:#fff;border:1px solid #d5ccbd;border-radius:10px;padding:9px 13px;font-size:12px}.start{text-align:center;border:3px solid var(--ink);background:var(--paper);border-radius:28px;max-width:620px;margin:30px auto;padding:48px;box-shadow:10px 12px #1723382c}.start h1{margin:15px 0 5px;font-size:54px}.start p{color:#69717d;line-height:1.7}.crest{border:4px solid var(--ink);background:var(--gold);width:82px;height:82px;box-shadow:6px 6px var(--ink);border-radius:24px;place-items:center;margin:auto;font-size:42px;display:grid}.crest.small{width:62px;height:62px;font-size:30px}.layout{grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:18px;display:grid}.card{background:var(--paper);border:3px solid var(--ink);border-radius:24px;overflow:hidden;box-shadow:7px 8px #17233820}.board-head,.section-title,.action{justify-content:space-between;align-items:center;gap:16px;display:flex}.board-head{background:var(--ink);color:#fff;padding:15px 20px}.board-head small{letter-spacing:.16em;color:#f4ce70;font-size:9px}.board-head h2,.section-title h2{margin:2px 0 0}.die{width:52px;height:52px;color:var(--ink);background:#fff;border-radius:13px;place-items:center;font-size:26px;font-weight:950;display:grid}.board-wrap{background:#f7f0e4;padding:12px;position:relative}.board-wrap img{border-radius:12px;width:100%;display:block}.token{background:var(--blue);color:#fff;border:3px solid #fff;border-radius:50%;place-items:center;width:35px;height:35px;font-weight:950;transition:all .4s;display:grid;position:absolute;box-shadow:0 3px 8px #0008}.token-rare{background:var(--purple)}.token-boss{background:var(--red);top:50%!important;left:50%!important}.action{border-top:2px solid #ddd4c5;padding:14px 18px}.action p{margin:0;font-size:13px;font-weight:750}.side{min-width:0}.hand{padding:18px}.section-title span{background:var(--ink);color:#fff;border-radius:999px;padding:6px 10px;font-weight:900}.hand h3{color:#666f7c;margin:18px 0 8px;font-size:12px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.cards button{text-align:left;cursor:pointer;background:#fff;border:2px solid #d7cdbd;border-radius:13px;min-width:0;padding:10px}.cards button.selected{border-color:var(--red);box-shadow:0 0 0 3px #df584633}.cards b,.cards small,.cards span{white-space:nowrap;text-overflow:ellipsis;display:block;overflow:hidden}.cards b{font-size:12px}.cards small{color:#777;margin:4px 0;font-size:10px}.cards span{margin-right:8px;font-size:11px;font-weight:800;display:inline}.weapon-card{position:relative}.weapon-card strong{color:var(--red);font-size:21px;position:absolute;bottom:8px;right:8px}.modal{z-index:20;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#101a2bca;place-items:center;padding:18px;display:grid;position:fixed;top:0;bottom:0;left:0;right:0}.battle{border:3px solid var(--ink);background:var(--paper);border-radius:25px;width:min(650px,100%);max-height:92vh;padding:32px;position:relative;overflow:auto;box-shadow:11px 12px #0005}.battle h2{margin:4px 0 14px;font-size:36px}.x{border:2px solid var(--ink);background:#fff;border-radius:50%;width:38px;height:38px;font-size:23px;font-weight:900;position:absolute;top:16px;right:16px}.tag{color:var(--red);letter-spacing:.16em;margin:0;font-size:10px;font-weight:950}.rule{background:var(--ink);color:#fff;border-radius:14px;align-items:center;gap:10px;padding:15px;display:flex}.rule span{font-weight:900}.rule b{margin-left:auto;font-size:21px}.rule small{color:#f6cd6a}.toggle{grid-template-columns:1fr 1fr;gap:7px;display:grid}.toggle button{background:#fff;border:2px solid #cfc6b9;border-radius:10px;padding:11px;font-weight:900}.toggle button.on{background:var(--blue);border-color:var(--ink);color:#fff}.formula{background:#eee7db;border-radius:13px;flex-wrap:wrap;align-items:center;gap:10px;margin:13px 0;padding:14px;display:flex}.formula span{font-size:12px}.formula strong{margin-left:auto;font-size:24px}.warn{color:#b13b31;font-size:12px;font-weight:800}.wide{width:100%;margin-top:8px}.modal-actions{justify-content:flex-end;gap:9px;margin-top:20px;display:flex}.center{text-align:center}.rules ol{padding-left:24px;line-height:1.7}.rules li{margin-bottom:8px}.note{border-left:5px solid var(--gold);background:#fff0bf;padding:13px;font-size:12px;line-height:1.6}@media (max-width:900px){.layout{grid-template-columns:1fr}.side{order:-1}.hand .cards{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (max-width:600px){.game{padding:0 12px 35px}header small{display:none}.intro{padding-top:8px}.layout{display:block}.board{margin-top:12px}.hand .cards{grid-template-columns:repeat(2,minmax(0,1fr))}.start{padding:34px 20px}.start h1{font-size:42px}.battle{padding:25px 18px}.battle h2{font-size:28px}.board-wrap{padding:5px}.action{flex-direction:column;align-items:stretch}.action button{width:100%}}.pick-row{gap:7px;padding:3px 2px 8px;display:flex;overflow:auto}.pick-row button{text-align:left;background:#fff;border:2px solid #d5ccbd;border-radius:10px;flex:0 0 145px;padding:9px}.pick-row button.selected{border-color:var(--red);background:#fff0ec}.pick-row b,.pick-row small{display:block}.pick-row b{font-size:11px}.pick-row small{color:#69717d;margin-top:4px;font-size:9px}.board-wrap{padding:0}.board-wrap img{border-radius:0}.token{width:38px;height:38px;transition:left .3s,top .3s;transform:translate(-50%,-50%)}.token-boss{top:auto!important;left:auto!important}.token.walking{animation:.33s infinite tokenHop}.die{perspective:300px}.die i{border:2px solid var(--ink);background:#fff;border-radius:9px;place-items:center;width:40px;height:40px;font-style:normal;display:grid}.die.rolling i{animation:.18s linear infinite diceRoll}.sprite{background-color:#f8f4ea;background-repeat:no-repeat;display:block}.cards .sprite{aspect-ratio:1;border-radius:8px;width:100%;margin-bottom:8px}.cards .sprite-weapon,.sprite-monster{aspect-ratio:304/430}.monster-banner{grid-template-columns:145px 1fr;align-items:center;gap:20px;margin-bottom:15px;display:grid}.monster-banner>.sprite{aspect-ratio:304/430;border-radius:12px;width:145px;box-shadow:0 5px 15px #0002}.pick-row .sprite{aspect-ratio:1;border-radius:7px;width:100%;margin-bottom:7px}.pick-row .sprite-weapon{aspect-ratio:304/430}.judge{border:3px solid var(--ink);text-align:center;border-radius:15px;margin:15px 0;padding:18px}.judge p{margin:0;font-size:20px}.judge p strong{font-size:34px}.judge h3{margin:8px 0 0;font-size:25px}.judge.win{color:#17683b;background:#ddf5e5}.judge.lose{color:#9b3026;background:#ffe2dd}.hidden-result strong{filter:none}@keyframes diceRoll{0%{transform:rotateX(0)rotateY(0)scale(1)}50%{transform:rotateX(100deg)rotateY(70deg)scale(.85)}to{transform:rotateX(200deg)rotateY(140deg)scale(1)}}@keyframes tokenHop{50%{transform:translate(-50%,-68%)scale(1.12)}}@media (max-width:600px){.monster-banner{grid-template-columns:95px 1fr}.monster-banner>.sprite{width:95px}.token{width:28px;height:28px;font-size:11px}}.token.token-boss{top:48%!important;left:49%!important}.cards .sprite,.pick-row .sprite{aspect-ratio:531/727}.sprite{background-size:cover!important}.battle-wide{grid-template-columns:270px minmax(0,1fr);width:min(1180px,100vw - 28px);height:min(720px,100vh - 28px);max-height:none;padding:0;display:grid;overflow:hidden}.opponent-panel{border-right:3px solid var(--ink);background:linear-gradient(160deg,#f0e7d8,#fffaf0);flex-direction:column;min-height:0;padding:22px;display:flex}.opponent-panel h2{margin:3px 0 10px;font-size:25px}.opponent-panel>.sprite{aspect-ratio:521/710;border:3px solid var(--ink);background-size:cover;border-radius:10px;flex:1;width:min(100%,205px);min-height:0;margin:0 auto 12px;box-shadow:0 6px 14px #1723382b}.opponent-panel .rule{grid-template-columns:1fr auto;padding:11px;display:grid}.opponent-panel .rule b{font-size:17px}.opponent-panel .rule small{grid-column:1/-1}.player-panel{flex-direction:column;gap:10px;min-width:0;min-height:0;padding:20px 22px;display:flex}.battle-instruction{justify-content:space-between;align-items:end;gap:18px;display:flex}.battle-instruction h2{margin:2px 0 0;font-size:25px}.battle-instruction>p{color:#68717e;margin:0;font-size:12px;font-weight:700}.battle-wide .toggle{max-width:460px}.hand-groups{flex:1;grid-template-rows:1fr 1fr;gap:6px;min-height:0;display:grid}.hand-groups>section{min-height:0}.hand-groups h3{margin:0 0 5px;font-size:12px}.battle-wide .pick-row{grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:7px;padding:0;display:grid;overflow:visible}.battle-wide .pick-row button{grid-template-rows:auto auto;grid-template-columns:58px minmax(0,1fr);align-items:center;column-gap:7px;width:100%;min-width:0;max-width:150px;padding:5px;display:grid}.battle-wide .pick-row .sprite{border-radius:5px;grid-row:1/3;width:58px;margin:0}.battle-wide .pick-row b,.battle-wide .pick-row small{white-space:normal;line-height:1.25}.battle-wide .pick-row b{font-size:10px}.battle-wide .pick-row small{font-size:8px}.battle-footer{border-top:2px solid #ded4c5;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-height:76px;padding-top:9px;display:grid}.battle-footer .formula,.battle-footer .judge{margin:0;padding:10px}.battle-footer .judge{text-align:left;justify-content:space-between;align-items:center;display:flex}.battle-footer .judge p{font-size:15px}.battle-footer .judge p strong{font-size:26px}.battle-footer .judge h3{margin:0;font-size:19px}.battle-footer .primary{min-width:155px}.battle-footer .warn{text-align:right;margin:0 0 5px}@media (max-width:900px){.battle-wide{grid-template-columns:205px minmax(0,1fr);width:calc(100vw - 18px);height:calc(100vh - 18px)}.opponent-panel{padding:14px}.player-panel{gap:7px;padding:14px}.battle-instruction>p{display:none}.battle-wide .pick-row{grid-template-columns:repeat(auto-fit,minmax(88px,1fr))}.battle-wide .pick-row button{grid-template-columns:45px minmax(0,1fr)}.battle-wide .pick-row .sprite{width:45px}.battle-footer{min-height:64px}}@media (max-width:650px){.battle-modal{align-items:start;overflow:auto}.battle-wide{grid-template-columns:1fr;height:auto;min-height:100%;overflow:visible}.opponent-panel{border-right:0;border-bottom:3px solid var(--ink);grid-template-rows:auto auto 1fr;grid-template-columns:100px minmax(0,1fr);display:grid}.opponent-panel>.sprite{grid-row:1/4;width:82px;margin:0}.opponent-panel .tag,.opponent-panel h2,.opponent-panel .rule{grid-column:2}.player-panel{min-height:620px}.hand-groups{grid-template-rows:auto auto}.battle-footer{grid-template-columns:1fr}.battle-footer .primary{width:100%}}.start-deluxe{text-align:left;background:radial-gradient(circle at 75% 35%,#fff3bf 0,#0000 34%),linear-gradient(135deg,#fffaf0 55%,#f5d77d 55%);grid-template-columns:.8fr 1.2fr;align-items:center;max-width:1080px;min-height:540px;margin:18px auto;padding:48px 52px;display:grid;overflow:hidden}.start-copy{z-index:2;position:relative}.start-copy h1{letter-spacing:-.08em;margin:14px 0 25px;font-size:clamp(62px,8vw,100px);line-height:.82}.start-copy h1 em{color:var(--red);font-style:normal}.start-copy>p:not(.tag){max-width:390px;font-size:15px}.start-copy small{color:#69717d;margin-top:16px;font-weight:800;display:block}.start-cards{height:440px;position:relative}.show-card{aspect-ratio:521/710;border:4px solid var(--ink);background:#fff;border-radius:15px;width:220px;position:absolute;overflow:hidden;box-shadow:10px 14px 25px #17233838}.show-card .sprite{width:100%;height:100%}.hero-a{top:45px;left:5%;transform:rotate(-10deg)}.monster-a{z-index:2;top:4px;left:35%;transform:rotate(2deg)}.weapon-a{top:58px;right:0;transform:rotate(12deg)}.start-burst{z-index:4;background:var(--red);color:#fff;width:86px;height:86px;box-shadow:5px 6px var(--ink);border:5px solid #fff;border-radius:50%;place-items:center;font-size:55px;font-weight:950;display:grid;position:absolute;top:48%;left:42%;transform:rotate(-8deg)}.image-hand .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.image-hand .cards button,.discard-panel .cards button{background:#fff;border-radius:10px;padding:4px}.image-hand .cards .sprite,.discard-panel .cards .sprite{aspect-ratio:521/710;border-radius:6px;width:100%;margin:0}.image-hand h3{margin:13px 0 6px}.battle-clean{grid-template-columns:250px minmax(0,1fr)}.battle-clean .opponent-panel{align-items:center;padding:18px;position:relative}.battle-clean .opponent-panel>.sprite{aspect-ratio:521/710;flex:none;width:100%;max-width:210px;margin:7px auto 0}.battle-clean .opponent-panel .tag{align-self:flex-start}.versus{z-index:3;background:var(--red);color:#fff;width:52px;height:52px;box-shadow:3px 4px var(--ink);border:4px solid #fff;border-radius:50%;place-items:center;font-size:18px;font-weight:950;display:grid;position:absolute;top:46%;right:-27px}.dice-note{background:var(--ink);color:#fff;border-radius:999px;margin-top:8px;padding:7px 12px;font-size:12px;font-weight:900}.battle-clean .player-panel{padding-left:34px}.battle-clean .hand-groups{gap:9px}.battle-clean .hand-groups h3{font-size:13px}.battle-clean .pick-row{grid-template-columns:repeat(auto-fit,minmax(92px,128px));align-items:start;gap:8px;display:grid}.battle-clean .pick-row button{border-radius:9px;width:100%;max-width:none;padding:4px;display:block}.battle-clean .pick-row .sprite{aspect-ratio:521/710;border-radius:5px;width:100%;margin:0;display:block}.battle-clean .pick-row button.selected{border-color:var(--red);background:#fff;transform:translateY(-3px);box-shadow:0 0 0 4px #df584655}.battle-clean .battle-footer{min-height:72px}.discard-panel{width:min(900px,100%)}.discard-panel .cards{grid-template-columns:repeat(4,minmax(0,1fr))}@media (max-width:900px){.start-deluxe{grid-template-columns:1fr 1fr;padding:35px}.show-card{width:160px}.start-cards{height:340px}.battle-clean{grid-template-columns:190px minmax(0,1fr)}.battle-clean .player-panel{padding-left:24px}.battle-clean .pick-row{grid-template-columns:repeat(auto-fit,minmax(72px,100px))}.versus{width:44px;height:44px;right:-23px}.image-hand .cards{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (max-width:650px){.start-deluxe{padding:30px 22px;display:block}.start-copy h1{font-size:64px}.start-cards{height:280px;margin-top:20px}.show-card{width:135px}.battle-clean{grid-template-columns:1fr}.battle-clean .opponent-panel{display:flex}.battle-clean .opponent-panel>.sprite{width:105px}.battle-clean .versus{top:auto;bottom:-23px;right:14px}.battle-clean .player-panel{min-height:620px;padding:25px 14px 14px}.image-hand .cards{grid-template-columns:repeat(2,minmax(0,1fr))}}.image-hand .cards button,.discard-panel .cards button,.image-hand .cards .sprite,.discard-panel .cards .sprite{width:100%;display:block}.layout{grid-template-columns:1fr}.layout>.board{width:min(100%,900px);margin:0 auto}.bottom-hand{width:100%}.hand-shelves{grid-template-columns:1fr 1fr;gap:24px;display:grid}.hand-shelves>section{min-width:0}.bottom-hand .cards{align-items:start;gap:10px;display:flex}.bottom-hand .cards button{flex:0 145px;min-width:90px;max-width:145px}.start-burst{display:none}.sprite-monster{aspect-ratio:521/711!important}.dice-note.rolling{animation:.18s linear infinite dicePulse}@keyframes dicePulse{50%{background:var(--gold);color:var(--ink);transform:scale(1.07)}}@media (max-width:700px){.hand-shelves{grid-template-columns:1fr;gap:8px}.bottom-hand .cards{overflow-x:auto}.bottom-hand .cards button{flex:0 0 120px}}.game-started header{height:58px}.game-started .intro{justify-content:space-between;align-items:center;gap:16px;padding:5px 0 10px;display:flex}.game-started .intro>p{margin:0;font-size:clamp(20px,2.4vw,30px);line-height:1.15}.game-started .stats{justify-content:flex-end}.layout>.board.board-console{width:100%;max-width:none;margin:0}.board-stage{background:#f7f0e4;grid-template-columns:155px minmax(0,1fr) 185px;align-items:center;min-height:430px;display:grid}.board-left,.board-right{flex-direction:column;justify-content:center;align-self:stretch;padding:20px 15px;display:flex}.board-left{background:#fffaf0;border-right:2px solid #ded4c5}.board-left h2{margin:4px 0 30px;font-size:20px}.board-left label{justify-content:space-between;gap:6px;font-size:11px;font-weight:900;display:flex}.board-left input{width:100%;accent-color:var(--red);cursor:pointer;margin:12px 0 2px}.size-marks{color:#7a8089;justify-content:space-between;font-size:10px;font-weight:800;display:flex}.board-canvas{justify-self:center;transition:width .25s}.board-canvas .board-wrap{border:2px solid #c8bdab;width:100%;box-shadow:0 8px 22px #17233820}.board-right{text-align:center;background:#fffaf0;border-left:2px solid #ded4c5;align-items:center;gap:15px}.board-right .die{border:3px solid var(--ink);width:74px;height:74px;box-shadow:4px 5px var(--gold)}.board-right .die i{width:56px;height:56px;font-size:31px}.board-right .primary{width:100%;padding:13px 8px}.board-right p{color:#5f6875;margin:0;font-size:11px;font-weight:800;line-height:1.55}.bottom-hand .cards button{flex-basis:112px;max-width:112px}.bottom-hand .cards .sprite{aspect-ratio:521/711}.bottom-hand .image-hand{padding:10px 16px}.bottom-hand .section-title h2{font-size:19px}.bottom-hand .image-hand h3{margin:7px 0 4px}.hand-shelves{gap:18px}@media (max-width:850px){.game-started .intro{display:block}.game-started .stats{justify-content:flex-start;margin-top:8px}.board-stage{grid-template-columns:1fr}.board-left,.board-right{border:0;flex-direction:row;justify-content:space-between;align-self:auto;align-items:center;padding:10px 14px}.board-left h2{margin:0}.board-left label{margin-left:auto}.board-left input{width:150px;margin:0 8px}.size-marks{display:none}.board-right{border-top:2px solid #ded4c5}.board-right .die{width:52px;height:52px}.board-right .die i{width:39px;height:39px;font-size:23px}.board-right .primary{width:auto}.board-right p{text-align:left;flex:1}.board-canvas{margin:8px auto}}.header-tabs{gap:8px;display:flex}.intro>p span,.start-copy h1 span,.start-copy h1 em,.start-copy>p:not(.tag) span{display:block}.intro>p,.start-copy>p:not(.tag){word-break:keep-all;overflow-wrap:normal}.game-started .intro>p{min-width:390px}.start-copy h1{line-height:.88}.start-copy h1 em{margin-top:8px}.mode-note{text-align:center;width:100%}.collection{flex-direction:column;width:min(1050px,100vw - 28px);height:min(820px,100vh - 28px);max-height:none;display:flex;overflow:hidden}.collection h2{margin-bottom:4px}.collection-help{color:#6d7480;margin:0 0 14px}.collection-tabs{grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px;display:grid}.collection-tabs button{cursor:pointer;background:#fff;border:2px solid #d2c8b9;border-radius:11px;padding:11px;font-weight:900}.collection-tabs button.on{border-color:var(--ink);background:var(--ink);color:#fff}.collection-tabs b{color:var(--red);margin-left:6px}.collection-tabs button.on b{color:var(--gold)}.collection-grid{grid-template-columns:repeat(auto-fill,minmax(115px,1fr));align-content:start;gap:12px;min-height:0;padding:4px;display:grid;overflow:auto}.collection-card{border:2px solid var(--ink);background:#fff;border-radius:10px;overflow:hidden;box-shadow:3px 4px #17233822}.collection-card .sprite{aspect-ratio:521/711;width:100%;display:block}.empty-collection{color:#69717d;grid-column:1/-1;margin:50px auto;font-weight:800}.gate-panel{width:min(620px,100%)}@media (max-width:700px){header{gap:8px;height:auto;min-height:82px}header small{display:none}.header-tabs{gap:5px}.header-tabs .sub{padding:8px 9px;font-size:11px}.intro>p span{display:inline}.game-started .intro>p{min-width:0}.collection{padding:24px 14px}.collection-tabs button{padding:9px 4px;font-size:11px}.collection-grid{grid-template-columns:repeat(3,1fr);gap:7px}}.game-started .stats{justify-content:flex-end;margin-left:auto}.kill-counters{background:#fff;border:1px solid #d5ccbd;border-radius:10px;grid-template-columns:repeat(3,auto);gap:2px;padding:4px;display:grid}.kill-counters>div{text-align:center;border-right:1px solid #e5ddd0;min-width:62px;padding:3px 8px}.kill-counters>div:last-child{border-right:0}.kill-counters small{color:#737b87;letter-spacing:.04em;margin-bottom:1px;font-size:8px;font-weight:900;display:block}.kill-counters b{white-space:nowrap;font-size:12px;display:block}.battle-clean .enemy-class{color:#586272;letter-spacing:.03em;align-self:flex-start;margin:2px 0 3px;font-size:11px;font-weight:950}@media (max-width:850px){.game-started .stats{justify-content:flex-start;margin-left:0}}.collection-tabs button small{color:#747b86;margin-top:4px;font-size:9px;display:block}.collection-tabs button.on small{color:#fff}.collection-card{position:relative}.collection-card.locked{background:#101722}.collection-card.locked .sprite{filter:brightness(0);opacity:.82}.collection-card.locked>span{color:#fff;text-shadow:0 4px #000;place-items:center;font-size:clamp(34px,5vw,62px);font-weight:950;display:grid;position:absolute;top:0;bottom:0;left:0;right:0}.rules{width:min(900px,100vw - 28px)}.rule-legend{background:#eee7db;border-radius:16px;padding:14px}.rule-legend h3{margin:4px 0 9px;font-size:14px}.legend-grid{grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:14px;display:grid}.legend-grid>div{background:#fff;border:2px solid #d4c8b6;border-radius:12px;grid-template-columns:42px 1fr;align-items:center;padding:8px;display:grid}.legend-grid b,.legend-grid small{grid-column:2}.legend-grid b{font-size:12px}.legend-grid small{color:#69717d;font-size:9px}.space-icon{border-radius:50%;grid-row:1/3;place-items:center;width:34px;height:34px;font-style:normal;display:grid}.monster-space{background:#7a482c}.hero-space{background:#2f80bd}.weapon-space{background:#e69222}.gate-space{background:#7650a8}.battle-icons{flex-wrap:wrap;gap:7px;display:flex}.battle-icons span{background:var(--ink);color:#fff;border-radius:999px;padding:7px 9px;font-size:10px;font-weight:850}.rank-modal{background:radial-gradient(circle,#283a68dd,#0b1020f2);overflow:hidden}.rank-card{text-align:center;width:min(700px,100vw - 32px);color:var(--ink);background:radial-gradient(circle at 50% 35%,#fff9cf,#f3bf38 45%,#d86638);border:4px solid #fff2a8;border-radius:30px;padding:70px 25px;animation:.8s cubic-bezier(.2,1.5,.4,1) rankArrive;position:relative;box-shadow:0 0 45px #ffd849,0 0 110px #fff6a766}.rank-card:before,.rank-card:after{content:"✦";color:#fff;font-size:60px;animation:.7s ease-in-out infinite alternate twinkle;position:absolute}.rank-card:before{top:15%;left:8%}.rank-card:after{animation-delay:.25s;bottom:18%;right:9%}.rank-card p{margin:0;font-weight:950}.rank-card h2{text-shadow:0 4px #fff;margin:12px 0;font-size:clamp(38px,7vw,78px);line-height:1}.sparkles,.rank-stars{color:#fff;letter-spacing:.2em;text-shadow:0 0 12px #fff;font-size:28px}.rank-stars{color:#fff6a8;margin:16px 0 25px}.rank-card .primary{min-width:220px}@keyframes rankArrive{0%{opacity:0;transform:scale(.3)rotate(-8deg)}to{opacity:1;transform:scale(1)rotate(0)}}@keyframes twinkle{0%{opacity:.25;transform:scale(.65)rotate(0)}to{opacity:1;transform:scale(1.25)rotate(35deg)}}@media (max-width:700px){.legend-grid{grid-template-columns:1fr 1fr}.rank-card{padding:48px 15px}.rank-card h2{font-size:38px}}.retire-tab{z-index:8;color:#666f7c;cursor:pointer;background:#fff;border:1px solid #aeb4bd;border-radius:8px;padding:6px 10px;font-size:10px;font-weight:850;position:absolute;top:10px;right:12px;box-shadow:0 2px 6px #0002}.retire-tab:hover{border-color:var(--red);color:var(--red)}.collection-grid{overscroll-behavior:contain;scrollbar-gutter:stable;flex:1 1 0;height:0;min-height:180px;padding:5px 10px 18px 5px;overflow:hidden auto}.collection-tabs{flex:none}.rule-icon-table{background:#eee7db;border-radius:15px;padding:13px}.rule-icon-table h3{margin:3px 0 7px;font-size:13px}.rule-icon-table h3:not(:first-child){margin-top:13px}.rule-icon-table img{background:#fff;border:1px solid #b7ad9e;width:100%;height:auto;display:block}.records-page{width:min(1080px,100vw - 28px);height:min(820px,100vh - 28px);max-height:none;overflow-y:auto}.records-page h2{margin-bottom:14px}.best-title{border:3px solid var(--ink);background:linear-gradient(120deg,#fff6bd,#f2b93f);border-radius:18px;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:18px 22px;display:grid;box-shadow:5px 6px #17233820}.best-title span,.best-title small{font-weight:850}.best-title strong{text-align:center;font-size:clamp(24px,4vw,44px)}.record-columns{grid-template-columns:1fr 1fr;gap:18px;margin-top:18px;display:grid}.record-columns>section{background:#fff;border:2px solid #d7cdbd;border-radius:16px;padding:15px}.record-columns h3{margin:0 0 12px}.record-list{gap:9px;display:grid}.combo-record{background:#eee7db;border-radius:12px;grid-template-columns:30px 146px minmax(0,1fr);align-items:center;gap:9px;padding:8px;display:grid}.combo-record>strong{font-size:17px}.record-cards{align-items:center;gap:4px;display:flex}.record-cards .sprite{aspect-ratio:521/711;border:1px solid var(--ink);border-radius:5px;width:62px}.record-cards b{font-size:14px}.combo-record>div:last-child{min-width:0}.combo-record>div:last-child span{color:var(--red);font-size:25px;font-weight:950;display:block}.combo-record>div:last-child small{color:#67707c;text-overflow:ellipsis;white-space:nowrap;font-size:9px;display:block;overflow:hidden}.no-record{color:#747b86;margin:20px 5px;font-size:12px;line-height:1.6}@media (max-width:760px){.header-tabs{flex-wrap:wrap;justify-content:flex-end}.records-page{padding:24px 14px}.best-title{text-align:center;grid-template-columns:1fr;gap:4px}.record-columns{grid-template-columns:1fr}.combo-record{grid-template-columns:25px 120px minmax(0,1fr)}.record-cards .sprite{width:50px}.rule-icon-table{overflow-x:auto}.rule-icon-table img{min-width:650px}.collection-grid{min-height:220px}}.exchange-panel{width:min(1040px,100vw - 28px);max-height:calc(100vh - 28px);overflow-y:auto}.exchange-panel h2{margin-bottom:6px}.exchange-panel>p{color:#626b77;margin:0 0 10px}.exchange-count{background:var(--ink);color:#fff;border-radius:999px;margin-bottom:12px;padding:7px 11px;font-size:11px;font-weight:900;display:inline-block}.exchange-groups{grid-template-columns:1fr 1fr;gap:18px;display:grid}.exchange-groups h3{margin:0 0 7px;font-size:13px}.exchange-cards{grid-template-columns:repeat(4,minmax(65px,1fr));gap:7px;display:grid}.exchange-cards button{cursor:pointer;background:#fff;border:3px solid #0000;border-radius:9px;min-width:0;padding:3px}.exchange-cards button.selected{border-color:var(--red);background:#ffe8e2;transform:translateY(-3px);box-shadow:0 0 0 3px #df584644}.exchange-cards .sprite{aspect-ratio:521/711;border-radius:5px;width:100%;display:block}.draw-choices{grid-template-columns:1fr 1fr;gap:18px;margin-top:20px;display:grid}.draw-choices button{border:3px solid var(--ink);cursor:pointer;text-align:left;background:#fff;border-radius:18px;grid-template-columns:62px 1fr;align-items:center;gap:3px 12px;padding:22px;display:grid;box-shadow:5px 6px #17233820}.draw-choices button:hover{transform:translateY(-3px);box-shadow:7px 9px #1723382c}.draw-choices button:disabled{opacity:.4;cursor:not-allowed;transform:none}.draw-choices span{background:var(--gold);border-radius:16px;grid-row:1/3;place-items:center;width:58px;height:58px;font-size:28px;font-weight:950;display:grid}.draw-choices b{font-size:18px}.draw-choices small{color:#6b7480}@media (max-width:700px){.exchange-panel{padding:24px 14px}.exchange-groups{grid-template-columns:1fr}.exchange-cards{grid-template-columns:repeat(4,minmax(58px,1fr))}.draw-choices{grid-template-columns:1fr;gap:10px}.draw-choices button{padding:14px}.exchange-panel .modal-actions{flex-direction:column-reverse}.exchange-panel .modal-actions button{width:100%}}.mode-choices{grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 4px;display:grid}.mode-choices button{border:3px solid var(--ink);cursor:pointer;border-radius:14px;padding:14px 10px;box-shadow:4px 5px #17233825}.mode-choices button:hover{transform:translateY(-3px);box-shadow:6px 8px #17233830}.mode-choices b,.mode-choices span{display:block}.mode-choices b{font-size:14px}.mode-choices span{margin-top:4px;font-size:10px;font-weight:750}.mode-speed{background:#fff}.mode-careful{background:var(--gold)}.answer-box{border:3px solid var(--gold);background:#fff5c9;border-radius:14px;grid-template-columns:minmax(180px,1fr) 170px 95px;align-items:center;gap:9px;padding:10px 12px;display:grid}.answer-box>div span,.answer-box>div b,.answer-box>div small{display:block}.answer-box>div span{color:var(--red);letter-spacing:.1em;font-size:9px;font-weight:950}.answer-box>div b{font-size:16px}.answer-box>div small{color:#6a7280;font-size:9px}.answer-box input{border:2px solid var(--ink);text-align:center;background:#fff;border-radius:9px;width:100%;padding:11px;font-size:20px;font-weight:950}.answer-box .primary{min-width:0;padding:11px 6px}.answer-box>p{color:#b13b31;grid-column:1/-1;margin:0;font-size:11px;font-weight:900}.collection-grid{flex:auto;grid-auto-rows:max-content;align-items:start;height:auto!important;min-height:0!important}.collection-card{aspect-ratio:521/711;align-self:start;width:100%;min-height:0}.collection-card .sprite{width:100%;height:100%;aspect-ratio:auto!important;background-size:cover!important}@media (max-width:700px){.mode-choices{grid-template-columns:1fr}.answer-box{grid-template-columns:1fr 110px}.answer-box>div{grid-column:1/-1}.answer-box .primary{width:100%}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}.back-title{color:#5f6875;border-style:dashed}.resume-game{border:3px solid var(--ink);color:#175d39;cursor:pointer;text-align:left;background:linear-gradient(110deg,#dff3e7,#fff);border-radius:14px;width:100%;margin:12px 0 4px;padding:13px 16px;box-shadow:4px 5px #17233825}.resume-game:hover{transform:translateY(-3px);box-shadow:6px 8px #17233830}.resume-game b,.resume-game span{display:block}.resume-game b{font-size:16px}.resume-game span{color:#527060;margin-top:3px;font-size:10px;font-weight:750}
