:root {
  --font: "Baloo 2", "Nunito", ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --ink: #1d2440; --muted: #56607f; --card: #ffffff; --orange: #ff8a3c; --orange-d: #e06a1c; --blue: #3c8cff; --blue-d: #2468d6;
  --red: #e5352b; --yellow: #f2b01e; --green: #35c46a;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #10142a; color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.4; }
button, input { font-family: inherit; font-size: inherit; color: inherit; }
#stage { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
#cv { width: min(100vw, 177.78vh); height: min(56.25vw, 100vh); display: block; background: #10142a; image-rendering: auto; }
#ui { position: absolute; inset: 0; overflow: auto; display: flex; }
#ui.menu { background: #1b2a6b center / cover no-repeat; }
#ui.menu.titlebg { background-position: center 30%; }
#ui.ingame { pointer-events: none; align-items: center; justify-content: center; }
#ui.ingame:not(:empty) { background: rgba(16, 20, 42, 0.55); pointer-events: auto; }
.hidden { display: none !important; }

.screen { margin: auto; width: min(760px, 100%); padding: 24px 20px 40px; text-align: center; }
.screen.wide { width: min(1080px, 100%); }
.screen.narrow { width: min(460px, 100%); }
h1 { font-size: clamp(40px, 8vw, 84px); line-height: 1; margin: 0; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 rgba(29, 36, 64, 0.35); letter-spacing: 1px; }
h2 { font-size: clamp(28px, 4.6vw, 44px); line-height: 1.1; margin: 8px 0 12px; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 rgba(29, 36, 64, 0.3); }
.sub { font-size: clamp(22px, 3.6vw, 40px); font-weight: 800; margin: 2px 0 0; color: #ffe14a; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 rgba(29, 36, 64, 0.35); }
.note { font-size: 18px; color: var(--ink); margin: 10px auto; max-width: 620px; font-weight: 600; }
.note.small { font-size: 15px; color: var(--muted); }
.menu .screen > .note { color: #fff; font-weight: 700; font-size: 19px; text-shadow: 0 2px 0 rgba(12, 18, 48, .8), 0 0 12px rgba(12, 18, 48, .7); max-width: 720px; }
.menu .topbar { color: #fff; text-shadow: 0 2px 0 rgba(12, 18, 48, .8); font-size: 17px; }
.screen.title { display: flex; flex-direction: column; justify-content: space-between; align-items: center; min-height: 100%; width: min(900px, 100%); padding-top: clamp(14px, 5vh, 54px); }
.screen.title h1 { font-size: clamp(46px, 9.5vw, 112px); -webkit-text-stroke: 4px var(--ink); }
.titlebox { background: rgba(255, 255, 255, .9); border: 4px solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 var(--ink); padding: 6px 22px 10px; }
.titlebox .btns { margin: 12px 0 6px; align-items: center; }
.titlebox .btn.big { min-width: 220px; }
.err { color: #c21f1f; font-weight: 800; min-height: 1.4em; margin: 6px 0; font-size: 17px; }

.logo { margin: 0 0 16px; }

.btns { display: flex; flex-direction: column; gap: 12px; align-items: center; margin: 18px 0 8px; }
.btns.row { flex-direction: row; justify-content: center; flex-wrap: wrap; }
.btn { border: 4px solid var(--ink); border-radius: 18px; padding: 10px 26px; min-width: 240px; font-size: 22px; font-weight: 800; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 6px 0 var(--ink); transition: transform .08s, box-shadow .08s; }
.btn:hover:not(:disabled), .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); outline: none; }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--orange); color: #fff; }
.btn.blue { background: var(--blue); color: #fff; }
.btn.ghost { background: #ffffffcc; }
.btn.big { font-size: 26px; padding: 12px 40px; }
.btn.small { min-width: 0; font-size: 16px; padding: 4px 14px; border-width: 3px; box-shadow: 0 4px 0 var(--ink); border-radius: 12px; }
.btns.row .btn { min-width: 150px; }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; margin-bottom: 6px; padding-right: 54px; }
.seg { display: inline-flex; border: 4px solid var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 0 5px 0 var(--ink); margin: 6px 0; }
.seg button { border: 0; background: #fff; padding: 8px 26px; font-size: 20px; font-weight: 800; cursor: pointer; }
.seg button.on { background: var(--orange); color: #fff; }

.form { display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 4px solid var(--ink); border-radius: 22px; padding: 20px; box-shadow: 0 8px 0 var(--ink); text-align: left; }
.form label { font-weight: 800; font-size: 17px; display: flex; flex-direction: column; gap: 4px; }
.form input:not([type=radio]) { border: 3px solid var(--ink); border-radius: 12px; padding: 10px 12px; font-size: 20px; font-weight: 700; width: 100%; background: #f6f9ff; }
.form input:focus { outline: 3px solid var(--orange); }
.addform { max-width: 560px; margin: 10px auto; }
.pick { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; justify-content: center; }
.pick > span { width: 100%; font-weight: 800; font-size: 17px; }
.hero { flex: 1 1 180px; align-items: center !important; text-align: center; border: 4px solid #d5dcef; border-radius: 16px; padding: 10px; cursor: pointer; }
.hero:has(input:checked) { border-color: var(--orange); background: #fff3e8; }
.hero input { position: absolute; opacity: 0; }
.hero canvas { width: 96px; height: 96px; }
.hero b { font-size: 22px; } .hero small { font-size: 14px; color: var(--muted); font-weight: 600; }

.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 14px 0; }
.pcard { position: relative; background: var(--card); border: 4px solid var(--ink); border-radius: 22px; padding: 14px 8px 10px; box-shadow: 0 6px 0 var(--ink); cursor: pointer; transition: transform .08s; }
.pcard:hover, .pcard:focus-visible { transform: translateY(-3px); outline: none; }
.pcard.sel { background: #fff3e8; border-color: var(--orange-d); box-shadow: 0 6px 0 var(--orange-d); }
.pcard canvas { width: 104px; height: 104px; }
.pname { font-size: 22px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pstat { font-size: 15px; color: var(--muted); font-weight: 700; }
.pcard .del { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #c9d0e4; background: #fff; color: #9aa3bd; font-size: 14px; cursor: pointer; line-height: 1; }
.pcard .del:hover { border-color: #c21f1f; color: #c21f1f; }
.pcard .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 0 10px; font-size: 14px; font-weight: 800; white-space: nowrap; }
.pcard.add { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #ffffffaa; border-style: dashed; min-height: 190px; }
.plus { font-size: 64px; line-height: 1; font-weight: 800; color: var(--blue); }

.wgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 14px; }
.wcard { position: relative; display: block; border: 4px solid var(--ink); border-radius: 24px; padding: 0; overflow: hidden; box-shadow: 0 7px 0 var(--ink); cursor: pointer; color: #fff; transition: transform .1s; background: #24306b; aspect-ratio: 4 / 3; }
.wcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.wcard:hover, .wcard:focus-visible { transform: translateY(-5px) rotate(-1deg); outline: none; }
.wcard:hover img, .wcard:focus-visible img { transform: scale(1.07); }
.wtext { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; padding: 34px 8px 8px; background: linear-gradient(transparent, rgba(10, 14, 44, .88) 62%); }
.wname { font-size: 23px; font-weight: 800; line-height: 1.1; text-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.wsub { font-size: 16px; font-weight: 700; color: #ffe27a; }
.wstars { position: absolute; top: 8px; right: 8px; z-index: 1; background: rgba(10, 14, 44, .78); border-radius: 12px; padding: 0 10px; font-size: 16px; font-weight: 800; color: #ffe27a; }

.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 14px 0; }
.ltile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; background: var(--card); border: 4px solid var(--ink); border-radius: 20px; padding: 10px 6px 8px; box-shadow: 0 6px 0 var(--ink); cursor: pointer; transition: transform .08s; min-height: 148px; }
.ltile:hover:not(:disabled), .ltile:focus-visible { transform: translateY(-4px); outline: none; }
.ltile.locked { opacity: .55; cursor: not-allowed; }
.ltile.gold { background: linear-gradient(#fff8d6, #ffe9a0); border-color: #a66f00; box-shadow: 0 6px 0 #a66f00; }
.ltile.silver { background: linear-gradient(#f7f9fd, #dfe6f2); }
.ltile.bronze { background: linear-gradient(#fff3e6, #ffdcbd); }
.ltile.next { animation: glow 1.4s infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 6px 0 var(--ink), 0 0 0 0 rgba(255, 138, 60, .9); } 50% { box-shadow: 0 6px 0 var(--ink), 0 0 0 9px rgba(255, 138, 60, 0); } }
.ltile .medal { position: absolute; top: -8px; right: -6px; width: 44px; height: 44px; font-size: 32px; line-height: 44px; }
.lnum { width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 3px solid var(--ink); flex: none; }
.lname { font-size: 16px; font-weight: 800; line-height: 1.15; min-height: 2.3em; display: flex; align-items: center; text-align: center; }
.lbest { font-size: 14px; color: var(--muted); font-weight: 700; }
.ltile .stars { font-size: 22px; letter-spacing: 2px; }
.ltile .stars .on, .ltile .stars .off { -webkit-text-stroke: 1.5px #b97a00; }
.ltile .stars .off { -webkit-text-stroke: 1.5px #b2bad0; }
.stars { font-size: 30px; letter-spacing: 3px; line-height: 1; }
.stars .on, .bigstars .on { color: #ffc61a; -webkit-text-stroke: 2px #b97a00; }
.stars .off, .bigstars .off { color: #d9deea; -webkit-text-stroke: 2px #b2bad0; }
.keys { background: #ffffffd9; border: 3px solid var(--ink); border-radius: 16px; padding: 10px 14px; font-size: 16px; font-weight: 600; margin-top: 10px; }

.panel { background: var(--card); border: 5px solid var(--ink); border-radius: 28px; padding: 22px 28px 26px; box-shadow: 0 10px 0 var(--ink); text-align: center; width: min(560px, 92vw); max-height: 94vh; overflow: auto; }
.panel h2 { color: var(--orange); -webkit-text-stroke: 0; text-shadow: none; font-size: clamp(28px, 4vw, 40px); }
.panel .keys { border-width: 2px; background: #f1f5ff; font-size: 15px; }
.bigstars { font-size: clamp(56px, 9vw, 84px); line-height: 1; letter-spacing: 8px; margin: 4px 0 10px; }
.bigstars span { display: inline-block; animation: pop .5s both cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(0) rotate(-40deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.stats { display: flex; flex-direction: column; gap: 4px; font-size: 19px; font-weight: 600; }

#narr { position: absolute; left: 50%; bottom: max(14px, calc((100vh - min(56.25vw, 100vh)) / 2 + 14px)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: max-content; max-width: min(760px, 94vw); pointer-events: none; z-index: 5; animation: rise .25s both; }
@keyframes rise { from { transform: translate(-50%, 16px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
#narrFace { width: 62px; height: 62px; border-radius: 50%; border: 4px solid var(--ink); flex: none; background: #bfe8ff; }
#narrText { background: #fff; border: 4px solid var(--ink); border-radius: 18px; padding: 8px 16px; font-size: clamp(17px, 2vw, 22px); font-weight: 800; box-shadow: 0 5px 0 rgba(29, 36, 64, .5); }
#muteBtn { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: #ffffffd0; font-size: 20px; cursor: pointer; z-index: 6; padding: 0; }
#ui:not(.ingame) ~ #narr { bottom: 14px; }
#ui.ingame:not(:empty) ~ #narr { bottom: auto; top: max(10px, calc((100vh - min(56.25vw, 100vh)) / 2 + 10px)); }
#ui.ingame ~ #muteBtn { top: auto; bottom: 10px; }
.toast { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 14px; font-weight: 700; z-index: 20; max-width: 92vw; font-size: 16px; }


/* ---------- nagrody, sklepik, prezent ---------- */
h3 { font-size: clamp(22px, 3vw, 28px); margin: 22px 0 8px; color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 rgba(29, 36, 64, .3); }
.ico { width: 1.25em; height: 1.25em; vertical-align: -0.28em; object-fit: contain; }
.ico.medal { width: 30px; height: 30px; vertical-align: -8px; } .ico.medal.big { width: 64px; height: 64px; vertical-align: -22px; }
.ico.huge { width: 96px; height: 96px; }
.card { background: #fffffff0; border: 4px solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink); padding: 10px 16px; margin: 12px auto; }
.bar { position: relative; display: block; height: 22px; border: 3px solid var(--ink); border-radius: 12px; background: #e6ebf7; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#ffd84a, #ffb01e); }
.bar span { position: relative; display: block; font-size: 14px; line-height: 16px; font-weight: 800; text-align: center; color: var(--ink); white-space: nowrap; }
.bar.big { height: 28px; } .bar.big span { font-size: 16px; line-height: 22px; }
.herobar { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 6px 0 2px; }
.hcard { display: flex; gap: 12px; align-items: center; background: #fffffff0; border: 4px solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink); padding: 8px 14px 8px 8px; flex: 1 1 320px; max-width: 520px; text-align: left; }
.hcard canvas { width: 64px; height: 64px; flex: none; }
.hinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hname { font-size: 21px; font-weight: 800; line-height: 1.1; } .hrank { font-size: 15px; font-weight: 800; color: var(--orange-d); margin-left: 6px; white-space: nowrap; }
.hstat { display: flex; gap: 12px; flex-wrap: wrap; font-size: 16px; font-weight: 800; color: var(--muted); }
.extras { margin: 12px 0 2px; } .extras .btn { min-width: 190px; font-size: 20px; padding: 8px 18px; }
.pulse { animation: pulse 1.1s infinite; } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.wbar { display: block; height: 8px; border-radius: 6px; background: #ffffff44; overflow: hidden; margin-top: 4px; } .wbar i { display: block; height: 100%; background: #ffd84a; }
.wdone { font-size: 14px; font-weight: 800; color: #fff; opacity: .92; }
.wcup { position: absolute; top: 6px; left: 8px; z-index: 1; font-size: 30px; } .wcup .ico { width: 46px; height: 46px; }
.prank { font-size: 14px; font-weight: 800; color: var(--orange-d); }
.wprog { display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; font-size: 18px; font-weight: 700; max-width: 760px; }
.rankcard { display: flex; gap: 16px; align-items: center; max-width: 760px; text-align: left; } .rankcard canvas { width: 96px; height: 96px; flex: none; }
.rtitle { font-size: 22px; font-weight: 700; } .rtitle b { color: var(--orange-d); }
.medals { display: flex; gap: 22px; font-size: 22px; font-weight: 800; }
.statgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; max-width: 900px; margin: 12px auto; }
.statgrid div { background: #fffffff0; border: 3px solid var(--ink); border-radius: 16px; padding: 6px 4px; display: flex; flex-direction: column; }
.statgrid b { font-size: 22px; line-height: 1.1; } .statgrid small { font-size: 14px; font-weight: 700; color: var(--muted); }
.cups { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.cup { background: #fffffff0; border: 3px solid var(--ink); border-radius: 16px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; font-size: 34px; line-height: 1.1; filter: grayscale(1); opacity: .6; }
.cup.has { filter: none; opacity: 1; background: linear-gradient(#fff8d6, #ffe9a0); }
.cup .ico { width: 56px; height: 56px; } .cup b { font-size: 15px; line-height: 1.15; } .cup small { font-size: 13px; font-weight: 700; color: var(--muted); }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.bdg { background: #fffffff0; border: 3px solid var(--ink); border-radius: 18px; padding: 10px 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bdg .bi { font-size: 44px; line-height: 1.1; filter: grayscale(1); opacity: .45; } .bdg.has .bi { filter: none; opacity: 1; }
.bdg.has { background: linear-gradient(#fffbe6, #ffeeb3); box-shadow: 0 5px 0 #a66f00; border-color: #a66f00; }
.bdg b { font-size: 17px; line-height: 1.15; } .bdg small { font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.25; min-height: 2.5em; } .bdg .bar { width: 100%; margin-top: 4px; }
.purse { display: flex; gap: 8px 26px; justify-content: center; flex-wrap: wrap; font-size: 20px; font-weight: 700; max-width: 640px; }
.shopgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 14px auto; }
.item { background: #fffffff0; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); padding: 12px 12px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.iicon { font-size: 72px; line-height: 1.1; height: 100px; display: flex; align-items: center; }
.item b { font-size: 21px; line-height: 1.15; } .item small { font-size: 15px; font-weight: 600; color: var(--muted); line-height: 1.3; flex: 1; }
.item .btn { min-width: 0; width: 100%; font-size: 21px; padding: 6px 10px; } .why { font-size: 14px; font-weight: 700; color: #b0381f; min-height: 1.3em; }
.note.ok { background: #e9ffe9; border: 3px solid #2a8a48; border-radius: 14px; padding: 6px 12px; color: var(--ink) !important; text-shadow: none !important; }
.got { font-size: 17px; font-weight: 700; } .got .gi { font-size: 24px; vertical-align: -3px; } .got.rank { color: var(--orange-d); font-size: 19px; }
.gots { margin-top: 8px; padding: 8px 10px; border-radius: 14px; background: #fff7dd; border: 3px dashed #e0a800; display: flex; flex-direction: column; gap: 2px; }
.gotwho { font-size: 14px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.medalline { font-size: 21px; font-weight: 700; margin: 0 0 8px; } .rec { color: #c2410c; font-weight: 800; white-space: nowrap; }
.giftbox { margin: auto; } .gifticon { font-size: 84px; line-height: 1; animation: pop .6s both cubic-bezier(.2, 1.6, .4, 1); }
.giftrow { display: flex; flex-direction: column; gap: 2px; font-size: 19px; font-weight: 700; margin: 8px 0; padding: 8px; border-radius: 14px; background: #f1f5ff; }
.giftrow > b { font-size: 21px; color: var(--orange-d); }
#medChip { position: absolute; top: max(10px, calc((100vh - min(56.25vw, 100vh)) / 2 + 10px)); left: calc((100vw - min(100vw, 177.78vh)) / 2 + min(100vw, 177.78vh) * 0.235); z-index: 6; display: flex; gap: 8px; pointer-events: none; }
#medChip span { background: #ffffffe6; border: 3px solid var(--ink); border-radius: 14px; padding: 0 10px; font-size: 18px; font-weight: 800; line-height: 30px; }
#medChip span.olo { border-color: #c2281e; } #medChip span.kuba { border-color: #b98300; }

@media (max-width: 900px) { .wgrid { grid-template-columns: repeat(3, 1fr); } .cups { grid-template-columns: repeat(4, 1fr); } .statgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) {
  html, body { font-size: 17px; }
  .screen { padding: 16px 12px 32px; }
  .btn { min-width: 0; width: 100%; font-size: 20px; }
  .btns.row .btn { width: auto; flex: 1 1 130px; }
  .btn.small { width: auto; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .wgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .wname { font-size: 18px; } .wsub { font-size: 14px; }
  .menu .screen > .note { font-size: 17px; }
  .titlebox { padding: 4px 12px 8px; }
  .note { font-size: 17px; } .keys { font-size: 15px; }
  .seg button { padding: 8px 16px; font-size: 18px; }
  .lgrid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .ltile { padding: 8px 3px 6px; min-height: 132px; border-width: 3px; border-radius: 16px; }
  .lname { font-size: 14px; } .lnum { width: 38px; height: 38px; font-size: 20px; } .ltile .stars { font-size: 18px; letter-spacing: 1px; } .ltile .medal { width: 34px; height: 34px; font-size: 26px; line-height: 34px; }
  .hcard { flex-basis: 100%; padding: 6px 10px 6px 6px; } .hname { font-size: 19px; } .hstat { font-size: 15px; gap: 9px; }
  .extras .btn { font-size: 18px; flex: 1 1 100%; }
  .cups { grid-template-columns: repeat(2, 1fr); } .statgrid { grid-template-columns: repeat(2, 1fr); }
  .bgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; } .bdg b { font-size: 16px; } .bdg .bi { font-size: 38px; }
  .shopgrid { grid-template-columns: 1fr; } .item small { flex: none; }
  .rankcard { flex-direction: column; text-align: center; } .medals { justify-content: center; } .rtitle { font-size: 20px; }
  .wprog { font-size: 16px; gap: 6px 14px; }
  #medChip { gap: 4px; } #medChip span { font-size: 13px; line-height: 20px; padding: 0 6px; border-width: 2px; border-radius: 10px; }
}
