:root{color:#182033;background:#eef4f7;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}a{color:inherit;text-decoration:none}button{font:inherit}.navbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px clamp(16px,5vw,56px);background:#ffffffeb;border-bottom:1px solid #d6e0e7;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.logo{color:#101727;font-size:1.25rem;font-weight:800}.nav-links{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.nav-links a{padding:9px 13px;color:#4c5b6b;border-radius:8px;font-weight:700;transition:background .2s ease,color .2s ease,transform .2s ease}.nav-links a:hover,.nav-links a.router-link-active{color:#fff;background:#2364aa;transform:translateY(-1px)}.page-shell{min-height:calc(100vh - 73px);display:grid;place-items:center;padding:32px 16px}.home-view,.game-view,.paint-view{width:min(100%,760px);text-align:center}.paint-view{width:min(100%,1080px)}h1{margin:0 0 28px;color:#101727;font-size:clamp(2rem,6vw,3.25rem);line-height:1.05}.game-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.game-card{min-height:150px;display:grid;place-items:center;gap:10px;padding:20px;background:#fff;border:1px solid #d5e1e7;border-radius:8px;box-shadow:0 16px 30px #18203314;color:#182033;font-size:1.05rem;font-weight:800;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}.game-card:hover{border-color:#2364aa;box-shadow:0 20px 38px #2364aa29;transform:translateY(-4px)}.game-icon{font-size:2.6rem}.coloring-layout{display:grid;grid-template-columns:210px 1fr;align-items:start;gap:20px}.thumbnail-panel{max-height:650px;display:grid;gap:10px;overflow:auto;padding:10px;background:#fff;border:1px solid #d5e1e7;border-radius:8px;box-shadow:0 16px 30px #18203314}.thumbnail-button{display:grid;grid-template-columns:68px 1fr;align-items:center;gap:10px;width:100%;min-height:76px;padding:8px;border:2px solid transparent;border-radius:8px;background:#f6fafc;color:#182033;cursor:pointer;font-weight:800;text-align:left;transition:background .2s ease,border-color .2s ease,transform .2s ease}.thumbnail-button:hover,.thumbnail-button.active{background:#eaf4fb;border-color:#2364aa;transform:translateY(-1px)}.thumbnail-art{width:68px;height:56px;display:grid;place-items:center;background:#fff;border:1px solid #d5e1e7;border-radius:8px}.thumbnail-art svg{width:64px;height:52px}.thumbnail-art svg *{stroke:#20242c;stroke-width:5;vector-effect:non-scaling-stroke}.coloring-board{min-width:0}.palette{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-bottom:16px}.color-swatch{width:38px;height:38px;border:3px solid #ffffff;border-radius:50%;box-shadow:0 4px 12px #1820332e;cursor:pointer;transition:box-shadow .2s ease,transform .2s ease}.color-swatch:hover,.color-swatch.active{box-shadow:0 0 0 3px #2364aa,0 8px 18px #1820332e;transform:translateY(-2px)}.drawing-card{display:grid;place-items:center;min-height:500px;padding:clamp(14px,4vw,28px);background:#fff;border:1px solid #d5e1e7;border-radius:8px;box-shadow:0 18px 40px #1820331f}.coloring-svg{width:min(100%,680px);height:auto;overflow:visible}.paint-region{stroke:#20242c;stroke-width:5;stroke-linejoin:round;stroke-linecap:round;cursor:pointer;vector-effect:non-scaling-stroke;transition:filter .16s ease,transform .16s ease}.paint-region:hover{filter:brightness(.94);transform:translateY(-1px)}.paint-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:18px}.primary-button{min-width:150px;min-height:46px;padding:12px 22px;border:0;border-radius:8px;color:#fff;background:#2364aa;box-shadow:0 10px 22px #2364aa3d;cursor:pointer;font-weight:900;letter-spacing:0;transition:background .2s ease,box-shadow .2s ease,transform .2s ease}.primary-button:hover:not(:disabled){background:#184e84;box-shadow:0 14px 30px #2364aa47;transform:translateY(-2px)}.primary-button:disabled{cursor:not-allowed;opacity:.72}.secondary-button{min-width:150px;min-height:46px;padding:12px 22px;border:2px solid #2364aa;border-radius:8px;color:#2364aa;background:#fff;cursor:pointer;font-weight:900;letter-spacing:0;transition:background .2s ease,color .2s ease,transform .2s ease}.secondary-button:hover{color:#fff;background:#2364aa;transform:translateY(-2px)}.spin-view{width:min(100%,1120px);text-align:center}.spin-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,420px);align-items:start;gap:24px;width:100%;min-width:0}.spin-stage{position:relative;display:grid;place-items:center;min-width:0;min-height:420px;padding:30px 14px 14px}.wheel-pointer{position:absolute;top:5px;left:50%;z-index:4;width:0;height:0;border-right:18px solid transparent;border-left:18px solid transparent;border-top:36px solid #101727;filter:drop-shadow(0 5px 8px rgba(16,23,39,.24));transform:translate(-50%)}.wheel-wrap{display:grid;place-items:center;margin-bottom:20px}.wheel{position:relative;--wheel-label-radius: -116px;width:min(78vw,380px);aspect-ratio:1;display:grid;place-items:center;border:12px solid #ffffff;border-radius:50%;box-shadow:inset 0 0 0 2px #ffffff6b,0 22px 46px #1820332e;color:#fff;font-weight:900;overflow:hidden;transition-property:transform;transition-timing-function:cubic-bezier(.12,.78,.12,1);will-change:transform;cursor:pointer}.wheel:hover:not(.spinning){box-shadow:inset 0 0 0 2px #ffffff6b,0 28px 58px #2364aa47}.wheel:focus-visible{outline:4px solid rgba(35,100,170,.38);outline-offset:8px}.wheel:after{position:absolute;top:0;right:0;bottom:0;left:0;content:"";border-radius:50%;background:radial-gradient(circle at center,transparent 0 28%,rgba(255,255,255,.2) 29% 30%,transparent 31%),linear-gradient(135deg,rgba(255,255,255,.28),transparent 46%);pointer-events:none}.wheel.spinning{box-shadow:inset 0 0 0 2px #ffffff6b,0 28px 58px #2364aa47;cursor:wait}.wheel-label{position:absolute;top:50%;left:50%;width:108px;margin-top:-11px;margin-left:-54px;color:#fff;font-size:.88rem;line-height:1.1;text-align:center;text-shadow:0 2px 6px rgba(16,23,39,.5);transform-origin:50% 11px;z-index:2}.wheel-center{position:relative;z-index:3;width:82px;height:82px;display:grid;place-items:center;background:#fff;border:8px solid #eef4f7;border-radius:50%;box-shadow:0 10px 24px #1017273d;color:#101727;overflow:hidden}.wheel-center img{width:48px;height:48px;object-fit:contain}.spin-panel{min-width:0;max-width:100%;padding:18px;background:#fff;border:1px solid #d5e1e7;border-radius:8px;box-shadow:0 18px 40px #1820331a}.settings-tabs{display:grid;grid-template-columns:1fr 1fr;min-width:0;gap:4px;margin-bottom:16px;padding:4px;background:#eef4f7;border:1px solid #d5e1e7;border-radius:8px}.tab-button{min-width:0;min-height:36px;padding:8px 9px;border:0;border-radius:8px;color:#4c5b6b;background:transparent;cursor:pointer;font-size:.88rem;font-weight:900;letter-spacing:0;white-space:nowrap;transition:background .22s ease,box-shadow .22s ease,color .22s ease,transform .22s ease}.tab-button:hover{color:#2364aa;transform:translateY(-1px)}.tab-button.active{color:#fff;background:#2364aa;box-shadow:0 6px 14px #2364aa33}.tab-panel{animation:tabFade .24s ease}.wheel-settings{text-align:left}.settings-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.settings-header h2{margin:0;color:#101727;font-size:1.1rem}.compact-button{min-width:112px;min-height:38px;padding:8px 12px;font-size:.88rem}.option-list{display:grid;gap:9px}.option-row{display:grid;grid-template-columns:minmax(0,1fr) 42px 72px 38px;align-items:center;gap:8px}.option-name,.option-weight{width:100%;min-height:38px;padding:8px 10px;border:1px solid #cbd8e1;border-radius:8px;color:#182033;background:#f8fbfd;font:inherit;font-weight:700}.option-color{width:42px;height:38px;padding:2px;border:1px solid #cbd8e1;border-radius:8px;background:#fff;cursor:pointer}.icon-button{width:38px;height:38px;border:0;border-radius:8px;color:#fff;background:#2364aa;cursor:pointer;font-size:1.45rem;font-weight:900;line-height:1;transition:background .2s ease,transform .2s ease}.icon-button:hover:not(:disabled){transform:translateY(-2px)}.icon-button.danger{background:#d43f5e}.icon-button:disabled{cursor:not-allowed;opacity:.45}.add-option-button{width:100%;margin-top:12px}.danger-outline{border-color:#d43f5e;color:#d43f5e}.danger-outline:hover:not(:disabled){color:#fff;background:#d43f5e}.danger-outline:disabled{cursor:not-allowed;opacity:.48}.result-history{min-width:0;text-align:left}.history-table-wrap{width:100%;max-width:100%;max-height:330px;overflow:auto;border:1px solid #d5e1e7;border-radius:8px;background:#fff}.history-table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;font-size:.92rem}.history-table th,.history-table td{padding:11px 10px;border-bottom:1px solid #e4edf2;text-align:left;vertical-align:middle;overflow-wrap:anywhere;word-break:break-word}.history-table th{position:sticky;top:0;z-index:1;color:#101727;background:#eef4f7;font-size:.82rem;font-weight:900}.history-table tr:last-child td{border-bottom:0}.history-table td:first-child,.history-table th:first-child{width:48px;text-align:center}.history-table th:nth-child(2),.history-table td:nth-child(2){width:38%}.empty-history{height:92px;color:#6b7a89;text-align:center!important;font-weight:800}.result-popup-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:grid;place-items:center;padding:18px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);animation:overlayFade .18s ease}.result-popup{width:min(100%,380px);display:grid;gap:16px;justify-items:center;padding:28px 22px;border:1px solid rgba(255,255,255,.62);border-radius:8px;background:#fff;box-shadow:0 28px 70px #10172757;text-align:center;animation:popupPop .28s ease}.result-popup-label{color:#4c5b6b;font-size:.92rem;font-weight:900;text-transform:uppercase}.result-popup strong{color:#101727;font-size:clamp(2rem,9vw,3.4rem);line-height:1.05}.result-text{min-height:38px;margin:10px 0 24px;color:#101727;font-size:clamp(1.35rem,5vw,2rem);font-weight:900}.result-text.fade{animation:fadeIn .35s ease}.confetti{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;overflow:hidden}.confetti span{position:absolute;top:-20px;left:calc(var(--x, 50) * 1%);width:10px;height:16px;background:var(--confetti-color, #ffd166);animation:fall 1.8s ease-in forwards}.confetti span:nth-child(3n){--confetti-color: #ef476f}.confetti span:nth-child(3n+1){--confetti-color: #06d6a0}.confetti span:nth-child(3n+2){--confetti-color: #118ab2}.confetti span:nth-child(1){--x: 4;animation-delay:0s}.confetti span:nth-child(2){--x: 9;animation-delay:.08s}.confetti span:nth-child(3){--x: 13;animation-delay:.16s}.confetti span:nth-child(4){--x: 19;animation-delay:.05s}.confetti span:nth-child(5){--x: 24;animation-delay:.14s}.confetti span:nth-child(6){--x: 29;animation-delay:.22s}.confetti span:nth-child(7){--x: 34;animation-delay:.03s}.confetti span:nth-child(8){--x: 39;animation-delay:.11s}.confetti span:nth-child(9){--x: 44;animation-delay:.19s}.confetti span:nth-child(10){--x: 49;animation-delay:.07s}.confetti span:nth-child(11){--x: 54;animation-delay:.15s}.confetti span:nth-child(12){--x: 59;animation-delay:.23s}.confetti span:nth-child(13){--x: 64;animation-delay:.02s}.confetti span:nth-child(14){--x: 69;animation-delay:.1s}.confetti span:nth-child(15){--x: 74;animation-delay:.18s}.confetti span:nth-child(16){--x: 79;animation-delay:.06s}.confetti span:nth-child(17){--x: 84;animation-delay:.13s}.confetti span:nth-child(18){--x: 89;animation-delay:.21s}.confetti span:nth-child(19){--x: 94;animation-delay:.04s}.confetti span:nth-child(20){--x: 7;animation-delay:.2s}.confetti span:nth-child(21){--x: 27;animation-delay:.09s}.confetti span:nth-child(22){--x: 47;animation-delay:.17s}.confetti span:nth-child(23){--x: 67;animation-delay:.01s}.confetti span:nth-child(24){--x: 87;animation-delay:.12s}.dice-display{width:min(72vw,240px);aspect-ratio:1;display:grid;place-items:center;margin:0 auto 18px;padding:24px;background:#fff;border:1px solid #d5e1e7;border-radius:8px;box-shadow:0 18px 40px #18203324}.dice-display span{color:#2364aa;font-size:clamp(5rem,20vw,8rem);line-height:.8}.dice-display strong{color:#4c5b6b;font-size:1.4rem}.dice-display.rolling{animation:shake .16s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes fall{to{transform:translateY(105vh) rotate(540deg)}}@keyframes shake{25%{transform:translate(-4px) rotate(-3deg)}75%{transform:translate(4px) rotate(3deg)}}@keyframes overlayFade{0%{opacity:0}to{opacity:1}}@keyframes popupPop{0%{opacity:0;transform:scale(.9) translateY(14px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes tabFade{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(max-width:680px){.navbar{align-items:flex-start;flex-direction:column;gap:12px}.nav-links{width:100%;justify-content:center}.nav-links a{flex:1 1 72px;text-align:center}.page-shell{min-height:calc(100vh - 132px);padding-top:24px}.game-menu{grid-template-columns:1fr}.game-card{min-height:110px}.coloring-layout{grid-template-columns:1fr}.thumbnail-panel{max-height:none;grid-auto-flow:column;grid-auto-columns:152px;overflow-x:auto;overflow-y:hidden}.thumbnail-button{grid-template-columns:1fr;justify-items:center;min-height:118px;text-align:center}.drawing-card{min-height:330px}.spin-layout{grid-template-columns:1fr}.spin-stage{min-height:340px;padding-top:28px}.wheel{--wheel-label-radius: -94px;width:min(84vw,310px)}.wheel-label{width:88px;margin-left:-44px;font-size:.76rem;transform-origin:50% 11px}.wheel-center{width:64px;height:64px}.wheel-center img{width:38px;height:38px}.option-row{grid-template-columns:minmax(0,1fr) 38px 62px 36px;gap:6px}.settings-header{align-items:stretch;flex-direction:column}.compact-button{width:100%}.history-table{font-size:.82rem}.history-table th,.history-table td{padding:9px 7px}.history-table td:first-child,.history-table th:first-child{width:40px}}
