* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #16233f; color: #fff; overflow-x: hidden;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", sans-serif; font-weight: 700;
  -webkit-user-select: none; user-select: none;
}
.hidden { display: none !important; }
h1 { font-size: 34px; margin: 18px 0 4px; text-shadow: 0 3px 0 #0a1226; letter-spacing: .5px; }
h1 small { display: block; font-size: 13px; opacity: .7; letter-spacing: 0; }
h2 { font-size: 17px; margin: 22px 0 8px; text-shadow: 0 2px 0 #0a1226; }
a { color: #ffd45a; }
button, .btn {
  font: inherit; color: #fff; border: 0; border-radius: 10px; padding: 11px 16px; cursor: pointer;
  background: linear-gradient(#ffc93c, #f09a12); box-shadow: 0 4px 0 #a65f06; text-shadow: 0 2px 0 rgba(0,0,0,.35);
  text-decoration: none; display: inline-block;
}
button:active { transform: translateY(2px); box-shadow: 0 2px 0 #a65f06; }
button.blue { background: linear-gradient(#5aa8ff, #2c6fd6); box-shadow: 0 4px 0 #1a4590; }
button.red { background: linear-gradient(#ff7a6a, #d63a2c); box-shadow: 0 4px 0 #8f1f16; }
input, select, textarea {
  font: inherit; font-weight: 400; color: #fff; background: #0f1930; border: 2px solid #33456f; border-radius: 8px; padding: 8px 10px;
  -webkit-user-select: text; user-select: text;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #ffc93c; }

/* Menü */
#menu { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
#name { width: 200px; }
#code { width: 90px; text-transform: uppercase; text-align: center; letter-spacing: 3px; }
#status { min-height: 24px; color: #ffd45a; font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; }
#coll .card.in { opacity: .3; }
#deckInfo { font-size: 13px; opacity: .75; margin-left: 8px; }

/* Karte */
.card {
  position: relative; aspect-ratio: 5 / 6; border-radius: 9px; overflow: hidden; cursor: pointer;
  border: 3px solid #3d5f94; background: #223; box-shadow: 0 3px 0 rgba(0,0,0,.45);
}
.card canvas, .card img { width: 100%; height: 100%; display: block; object-fit: cover; }
.card.r-rare { border-color: #e08a1a; }
.card.r-epic { border-color: #a044e6; }
.card.r-legendary { border-color: #6fe6d6; }
.card.r-champion { border-color: #f0c53a; }
.card .cost {
  position: absolute; top: -2px; left: -2px; width: 27px; height: 27px; border-radius: 0 0 12px 0;
  background: linear-gradient(#fff6d6 0 28%, #f5b21a 28%); border: 2px solid #5a3500; color: #3a2200;
  display: grid; place-items: center; font-size: 15px; padding-top: 5px;
}
.card .nm {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 2px 3px; font-size: 10.5px; text-align: center; line-height: 1.1;
  background: linear-gradient(transparent, rgba(0,0,0,.8)); text-shadow: 0 1px 0 #000;
}
.card.sel { transform: translateY(-10px); box-shadow: 0 0 0 3px #fff, 0 10px 14px rgba(0,0,0,.5); }
.card.na { filter: grayscale(.8) brightness(.6); }

/* Spiel */
#game { height: 100dvh; display: flex; flex-direction: column; align-items: center; background: #0c1428; }
#wrap { flex: 1; min-height: 0; width: 100%; position: relative; display: grid; place-items: center; overflow: hidden; }
#cv { display: block; touch-action: none; border-radius: 6px; }
#hud { position: absolute; inset: 0; pointer-events: none; display: flex; justify-content: center; }
#hudIn { position: relative; }
.tag { position: absolute; left: 8px; background: rgba(8,14,30,.72); padding: 4px 9px; border-radius: 8px; font-size: 13px; white-space: nowrap; }
#opp { top: 8px; border-left: 4px solid #ef4444; }
#you { bottom: 8px; border-left: 4px solid #3b82f6; }
#timer { position: absolute; right: 8px; top: 8px; background: rgba(8,14,30,.72); padding: 4px 9px; border-radius: 8px; font-size: 17px; text-align: right; }
#timer small { display: block; font-size: 11px; color: #ffd45a; }
#toast { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); background: rgba(8,14,30,.85); padding: 8px 14px; border-radius: 10px; opacity: 0; transition: opacity .2s; }
#toast.show { opacity: 1; }
#end { position: absolute; inset: 0; background: rgba(6,10,22,.8); display: grid; place-items: center; text-align: center; }
#end h1 { font-size: 46px; }
#panel { flex: none; width: 100%; max-width: 430px; padding: 8px 10px 10px; background: #1b2b4f; border-top: 3px solid #0a1226; }
#cards { display: flex; gap: 8px; align-items: flex-end; }
#nextBox { width: 52px; font-size: 10px; text-align: center; opacity: .9; }
#hand { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
#hand .card { transition: transform .1s; }
#bier { position: relative; height: 24px; margin-top: 9px; border-radius: 8px; background: #0a1226; border: 2px solid #050a16; overflow: hidden; }
#bierFill { height: 100%; width: 0; background: linear-gradient(#fff8dc 0 22%, #f8bd24 22%, #e08e0c); }
#bier::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), #050a16 calc(10% - 2px) 10%); }
#bierNum { position: absolute; left: 8px; top: 1px; z-index: 1; font-size: 15px; text-shadow: 0 2px 0 #000; }

/* Editor */
#editor { display: grid; grid-template-columns: 210px 1fr 340px; gap: 16px; padding: 14px; max-width: 1280px; margin: 0 auto; align-items: start; }
#list { display: flex; flex-direction: column; gap: 6px; }
#list .it { padding: 7px 10px; border-radius: 8px; background: #1f3058; cursor: pointer; display: flex; justify-content: space-between; font-size: 14px; }
#list .it.on { background: #f09a12; }
fieldset { border: 2px solid #2b3d68; border-radius: 12px; margin: 0 0 12px; padding: 8px 12px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 9px 12px; }
legend { padding: 0 6px; color: #ffd45a; }
label.f { display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
label.f.wide { grid-column: 1 / -1; }
label.f.chk { flex-direction: row; align-items: center; gap: 7px; font-size: 13px; padding-top: 14px; }
label.f input[type=color] { padding: 2px; height: 34px; width: 100%; }
label.f small { opacity: .6; font-weight: 400; }
#side { position: sticky; top: 14px; display: flex; flex-direction: column; gap: 12px; }
#prev { width: 100%; border-radius: 12px; display: block; }
#cardPrev { width: 130px; }
#msg { min-height: 20px; color: #9be28a; font-size: 13px; }
@media (max-width: 900px) { #editor { grid-template-columns: 1fr; } #side { position: static; } }

.lvl { display: flex; align-items: center; gap: 8px; font-size: 14px; background: #1b2b4f; padding: 6px 12px; border-radius: 10px; }
.lvl input { width: 140px; accent-color: #ffc93c; padding: 0; border: 0; background: none; }
.lvl b { min-width: 20px; text-align: right; color: #ffd45a; }
.lvl span { font-weight: 400; opacity: .8; min-width: 130px; }

/* ---------- Anmeldung ---------- */
#login { min-height: 100dvh; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 50% 20%, #2a4a8a, #16233f 70%); }
.loginBox { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.loginBox input { width: 100%; }
.loginBox .row { justify-content: center; }
.msg { color: #ff9a8a; min-height: 20px; font-size: 14px; }
.hint { font-size: 12px; font-weight: 400; opacity: .7; }

/* ---------- Hauptmenü ---------- */
#home { height: 100dvh; display: flex; flex-direction: column; max-width: 520px; margin: 0 auto; background: linear-gradient(#1e3463, #16233f); }
#top { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #0f1a33; gap: 10px; }
.king { display: flex; align-items: center; gap: 8px; min-width: 0; }
.king b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(#5aa8ff, #2c6fd6); border: 2px solid #0a1226; flex: none; }
#pName { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xpbar { position: relative; width: 110px; height: 12px; border-radius: 6px; background: #0a1226; overflow: hidden; margin-top: 2px; }
.xpbar i { position: absolute; inset: 0 auto 0 0; background: #4fb3ff; }
.xpbar span { position: relative; font-size: 9px; display: block; text-align: center; line-height: 12px; }
.cur { display: flex; gap: 10px; font-size: 14px; white-space: nowrap; }
.cur span { background: #0a1226; padding: 3px 9px; border-radius: 10px; }
#tabs { flex: 1; overflow-y: auto; padding: 12px; }
.tab { display: none; }
.tab.on { display: block; }
#nav { display: grid; grid-template-columns: repeat(4, 1fr); background: #0f1a33; border-top: 2px solid #0a1226; }
#nav button { background: none; box-shadow: none; border-radius: 0; padding: 8px 0 6px; font-size: 22px; display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: .6; }
#nav button span { font-size: 11px; }
#nav button.on { opacity: 1; background: #1e3463; }
h3 { margin: 16px 0 8px; font-size: 15px; text-shadow: 0 2px 0 #0a1226; }
.row2 { display: flex; gap: 8px; margin: 8px 0; }
.row2 > * { flex: 1; }
button.big { width: 100%; font-size: 26px; padding: 16px; margin: 10px 0 4px; letter-spacing: 2px; }
button.link { background: none; box-shadow: none; color: #9fb4e0; font-weight: 400; text-decoration: underline; padding: 8px; display: block; margin: 12px auto 0; }
a.link { display: block; text-align: center; font-weight: 400; font-size: 13px; margin-top: 4px; }
button.off { filter: grayscale(.8) brightness(.8); }

.arena { border-radius: 14px; padding: 16px; text-align: center; border: 3px solid #0a1226; box-shadow: inset 0 -30px 40px rgba(0,0,0,.25); }
.aName { font-size: 22px; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.trophy { font-size: 30px; margin: 4px 0; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.aSub { font-size: 12px; font-weight: 400; text-shadow: 0 1px 0 rgba(0,0,0,.6); }
.specials { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.special { display: flex; align-items: center; gap: 6px; background: #0f1a33; border-radius: 12px; padding: 6px 10px; border: 2px solid #233a6a; }
.special small, .slot small { display: block; font-size: 11px; font-weight: 400; opacity: .8; }
.special b { font-size: 13px; }
.special.ready, .slot.ready { border-color: #ffc93c; cursor: pointer; box-shadow: 0 0 12px rgba(255,201,60,.4); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.slot { background: #0f1a33; border: 2px solid #233a6a; border-radius: 12px; padding: 4px 2px 6px; text-align: center; min-height: 104px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.slot.empty { opacity: .45; cursor: default; }
.sName { font-size: 10.5px; line-height: 1.1; }
.log { margin-top: 10px; }
.logRow { display: flex; justify-content: space-between; font-size: 12px; font-weight: 400; padding: 6px 8px; border-radius: 8px; background: #0f1a33; margin-bottom: 4px; border-left: 4px solid #888; }
.logRow.win { border-color: #3b82f6; } .logRow.loss { border-color: #ef4444; }

/* Karten */
.deckTabs { display: flex; gap: 6px; }
.deckTabs button { flex: 1; padding: 8px; background: #233a6a; box-shadow: 0 3px 0 #0a1226; }
.deckTabs button.on { background: linear-gradient(#ffc93c, #f09a12); box-shadow: 0 3px 0 #a65f06; }
.deckHead { margin: 8px 0; font-size: 13px; text-align: center; }
.grid.deck { grid-template-columns: repeat(4, 1fr); }
.grid.swapping .tile { animation: wiggle .4s infinite; }
@keyframes wiggle { 50% { transform: rotate(2deg); } }
.tile { position: relative; display: flex; flex-direction: column; gap: 3px; cursor: pointer; }
.tile.locked { opacity: .5; filter: grayscale(.7); cursor: default; }
.lockInfo { font-size: 10px; text-align: center; font-weight: 400; }
.card .lv { position: absolute; top: 2px; right: 3px; font-size: 9px; background: rgba(0,0,0,.65); padding: 1px 4px; border-radius: 5px; }
.newTag { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); background: #ef4444; font-size: 10px; padding: 1px 6px; border-radius: 6px; z-index: 2; }
.prog { position: relative; height: 13px; border-radius: 7px; background: #0a1226; overflow: hidden; }
.prog i { position: absolute; inset: 0 auto 0 0; background: #3b82f6; }
.prog.ok i { background: #3ec46d; }
.prog span { position: relative; display: block; font-size: 9px; text-align: center; line-height: 13px; }
.prog.wide { width: 200px; height: 18px; margin: 6px auto; } .prog.wide span { font-size: 12px; line-height: 18px; }
.cardInfo { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.ciCard .card { width: 110px; }
.ciText h2 { margin: 0 0 2px; }
.ciText p { font-weight: 400; font-size: 13px; margin: 6px 0; }
.rar { font-size: 12px; }
.rar.r-rare { color: #f7b955; } .rar.r-epic { color: #cf8cff; } .rar.r-legendary, .rar.r-champion { color: #8af3e3; }
.stats { width: 100%; font-size: 13px; border-collapse: collapse; }
.stats td { padding: 3px 4px; border-bottom: 1px solid #233a6a; }
.stats td:nth-child(2) { text-align: right; }
.plus { color: #3ec46d; font-size: 11px; }
.ciBtns { grid-column: 1 / -1; display: flex; gap: 8px; }
.ciBtns > * { flex: 1; }

/* Shop */
.grid.shop { grid-template-columns: repeat(3, 1fr); }
.grid.shop button { padding: 6px; font-size: 13px; }
.stock { font-size: 10px; text-align: center; font-weight: 400; opacity: .8; }
.chestOffer { align-items: center; background: #0f1a33; border-radius: 12px; padding: 6px; border: 2px solid #233a6a; cursor: default; }
.goldPack { font-size: 40px; height: 70px; display: grid; place-items: center; }
.codeIn { text-transform: uppercase; }

/* Rangliste */
.profile { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.profile div { background: #0f1a33; border-radius: 10px; padding: 8px 4px; }
.profile small { display: block; font-size: 10px; font-weight: 400; opacity: .8; }
.rankList { margin-top: 10px; }
.rankRow { display: grid; grid-template-columns: 34px 28px 1fr auto; gap: 6px; align-items: center; padding: 7px 10px; background: #0f1a33; border-radius: 8px; margin-bottom: 4px; font-size: 14px; }
.rankRow.me { background: #2c4a8a; }
.kl { background: #2c6fd6; border-radius: 6px; text-align: center; font-size: 11px; padding: 2px 0; }
.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Fenster */
.overlay { position: fixed; inset: 0; background: rgba(6,10,22,.82); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modalBox { position: relative; background: #1b2b4f; border: 3px solid #0a1226; border-radius: 16px; padding: 18px; width: 100%; max-width: 420px; max-height: 90dvh; overflow-y: auto; }
.modalBox .x { position: absolute; top: 6px; right: 6px; padding: 4px 10px; background: #233a6a; box-shadow: none; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.center canvas { display: block; }
.code { text-transform: uppercase; text-align: center; letter-spacing: 3px; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 5px solid #233a6a; border-top-color: #ffc93c; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#searchCode { font-size: 40px; letter-spacing: 6px; color: #ffd45a; }
#opening { cursor: pointer; user-select: none; }
#openBody { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 420px; }
.revealCard { position: relative; width: 140px; }
.revealCard.r-epic { filter: drop-shadow(0 0 14px #cf8cff); } .revealCard.r-legendary { filter: drop-shadow(0 0 18px #8af3e3); } .revealCard.r-rare { filter: drop-shadow(0 0 10px #f7b955); }
.cnt { font-size: 14px; text-align: center; } .cnt.big { font-size: 28px; }
.bigCur { font-size: 34px; }
.pop { animation: pop .35s ease-out; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.12); } }
.grid.sum { grid-template-columns: repeat(4, 1fr); width: 100%; }
#appToast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); background: rgba(8,14,30,.92); padding: 10px 16px; border-radius: 10px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 60; text-align: center; max-width: 90vw; }
#appToast.show { opacity: 1; }
#endSub div { margin: 4px 0; }
.revealCard .card, .ciCard .card { width: 100%; }
#openBody { width: 100%; }

#nav { grid-template-columns: repeat(5, 1fr); }
#nav button { position: relative; }
.dot { position: absolute; top: 6px; right: 22%; width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.myCode { background: #0f1a33; border-radius: 12px; padding: 12px; text-align: center; border: 2px solid #233a6a; }
.myCode b { display: block; font-size: 30px; letter-spacing: 6px; color: #ffd45a; margin: 4px 0; }
.friendRow { display: grid; grid-template-columns: 12px 30px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; background: #0f1a33; border-radius: 10px; margin-bottom: 5px; }
.friendRow .st { width: 10px; height: 10px; border-radius: 50%; background: #666; }
.friendRow .st.online { background: #3ec46d; box-shadow: 0 0 6px #3ec46d; } .friendRow .st.battle { background: #ffc93c; }
.friendRow small { display: block; font-size: 11px; font-weight: 400; opacity: .8; }
.friendRow button { padding: 6px 10px; font-size: 13px; }
.invite { background: #2c4a8a; border: 2px solid #ffc93c; border-radius: 12px; padding: 10px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.deckTabs button.test { flex: 1.2; }
.tile.picked { outline: 3px solid #ffc93c; border-radius: 10px; }

/* Goldmünze */
.coin { display: inline-block; width: 1.05em; height: 1.05em; border-radius: 50%; vertical-align: -0.17em;
  background: radial-gradient(circle at 35% 30%, #fff6b8 0 12%, #ffd84a 30%, #e8a317 70%, #b0700a 100%);
  box-shadow: inset 0 0 0 .09em #c98a12, 0 .05em 0 #7a4a06; position: relative; }
.coin::after { content: ""; position: absolute; inset: 28%; border-radius: 50%; border: .07em solid rgba(150,90,0,.55); }
.coin.big { width: 54px; height: 54px; }

.card .nm.long { font-size: 8.5px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.cur span { display: inline-flex; align-items: center; gap: 5px; line-height: 1; padding: 5px 10px; }
.cur .coin { vertical-align: middle; flex: none; }
.card .nm { white-space: normal; overflow-wrap: break-word; }
.ciText p.fun { font-style: italic; }
.ciText p.effect { background: #0f1a33; border-radius: 8px; padding: 6px 8px; }
.goldPack { display: flex; justify-content: center; align-items: center; gap: 0; }
.goldPack .coin.big + .coin.big { margin-left: -26px; }

#bLeave { position: absolute; right: 8px; bottom: 8px; padding: 6px 12px; font-size: 13px; pointer-events: auto; }
#watchTag { display: none; position: absolute; left: 50%; top: 8px; transform: translateX(-50%); background: rgba(8,14,30,.75); padding: 4px 10px; border-radius: 8px; font-size: 13px; }
#game.watch #watchTag { display: block; }
#game.watch #panel { pointer-events: none; opacity: .8; }
.grid.sum { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.grid.sum .tile { width: calc(25% - 8px); min-width: 70px; }

/* Arena-Übersicht und Trophäenpfad */
.aHint { font-size: 10px; font-weight: 400; opacity: .75; margin-top: 4px; }
#road { position: fixed; inset: 0; z-index: 45; background: linear-gradient(#1e3463, #0f1a33); display: flex; flex-direction: column; max-width: 520px; margin: 0 auto; }
#road header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #0f1a33; border-bottom: 2px solid #0a1226; font-size: 18px; }
#road header button { padding: 4px 12px; background: #233a6a; box-shadow: none; }
#roadBody { flex: 1; overflow-y: auto; padding: 16px 12px 40px; }
.roadPath { position: relative; display: flex; flex-direction: column; gap: 14px; }
.roadPath::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 8px; margin-left: -4px; border-radius: 4px;
  background: repeating-linear-gradient(#ffc93c 0 14px, #f09a12 14px 28px); opacity: .55; }
.roadArena { position: relative; z-index: 1; display: flex; gap: 10px; background: #1b2b4f; border: 3px solid #233a6a; border-radius: 16px; padding: 10px; }
.roadArena.reached { border-color: #3ec46d; }
.roadArena.current { border-color: #ffc93c; box-shadow: 0 0 16px rgba(255,201,60,.45); }
.roadArena canvas { border-radius: 8px; flex: none; }
.raInfo { flex: 1; min-width: 0; }
.raInfo b { font-size: 18px; display: block; }
.raInfo small { font-weight: 400; opacity: .8; }
.raCards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 6px; }
.raCard { cursor: pointer; }
.raCard .card .nm { font-size: 8px; }
.raCard.locked { filter: grayscale(.9) brightness(.55); }
.raCard.notyet { opacity: .65; }
.roadNode { position: relative; z-index: 1; width: 46%; display: flex; flex-direction: column; align-items: center; gap: 2px; background: #0f1a33; border: 3px solid #233a6a; border-radius: 14px; padding: 6px; }
.roadNode.left { align-self: flex-start; } .roadNode.right { align-self: flex-end; }
.roadNode.got { opacity: .55; border-color: #3ec46d; }
.roadNode.can { border-color: #ffc93c; cursor: pointer; box-shadow: 0 0 14px rgba(255,201,60,.55); animation: wiggle .5s infinite; }
.rAt { font-size: 12px; }
.rTxt { font-size: 11px; font-weight: 400; }
.rIcon { height: 54px; display: grid; place-items: center; font-size: 38px; }
.roadMe { position: relative; z-index: 2; align-self: center; background: #3b82f6; border: 3px solid #fff; border-radius: 20px; padding: 6px 14px; font-size: 14px; box-shadow: 0 0 14px rgba(59,130,246,.7); }

/* Goldener Name für Engelspass */
.engel { color: #ffd84a !important; text-shadow: 0 0 8px rgba(255,216,74,.6), 0 1px 0 #7a4a06; }
/* Battlepass */
.passBtn { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; background: linear-gradient(#2c4a8a, #1e3463); border: 3px solid #0a1226; border-radius: 14px; padding: 8px 12px; margin: 8px 0; cursor: pointer; }
.passBtn.engel { background: linear-gradient(#b8860b, #6b4a06); border-color: #ffd84a; }
.passBtn b { font-size: 15px; } .passBtn > span { font-size: 12px; font-weight: 400; text-align: right; }
.passBtn .pbar { grid-column: 1 / -1; }
.passBtn em { position: absolute; top: -8px; right: -6px; background: #ef4444; border-radius: 10px; padding: 1px 7px; font-style: normal; font-size: 12px; }
.pbar { position: relative; height: 14px; border-radius: 7px; background: #0a1226; overflow: hidden; }
.pbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ffc93c, #f09a12); }
.pbar span { position: relative; display: block; text-align: center; font-size: 10px; line-height: 14px; }
.pbar.big { height: 20px; margin: 6px 0; } .pbar.big span { font-size: 12px; line-height: 20px; }
#pass { position: fixed; inset: 0; z-index: 45; background: linear-gradient(#1e3463, #0f1a33); display: flex; flex-direction: column; max-width: 520px; margin: 0 auto; }
#pass header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #0f1a33; border-bottom: 2px solid #0a1226; font-size: 18px; }
#pass header button { padding: 4px 12px; background: #233a6a; box-shadow: none; }
#passBody { flex: 1; overflow-y: auto; padding: 12px 12px 40px; }
.passHead { text-align: center; } .passHead small { font-weight: 400; opacity: .75; font-size: 11px; }
.passWrap { position: relative; margin-top: 10px; }
.passCols { display: grid; grid-template-columns: 1fr 34px 1fr; gap: 6px; align-items: stretch; }
.pcHead { text-align: center; padding: 6px; border-radius: 10px; background: #233a6a; position: sticky; top: 0; z-index: 2; }
.pcHead.engel { background: linear-gradient(#d4a017, #8a6206); }
.pCell { background: #0f1a33; border: 2px solid #233a6a; border-radius: 12px; min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px; text-align: center; }
.pCell.engel { background: #2a2208; border-color: #6b5410; }
.pCell.none { opacity: .25; }
.pCell small { font-size: 10px; font-weight: 400; line-height: 1.15; }
.pCell.can { border-color: #ffc93c; box-shadow: 0 0 12px rgba(255,201,60,.55); cursor: pointer; animation: wiggle .5s infinite; }
.pCell.got { opacity: .5; }
.pIcon { font-size: 30px; height: 44px; display: grid; place-items: center; }
.pIcon .coin { width: 34px; height: 34px; }
.pTier { display: grid; place-items: center; font-size: 13px; border-radius: 50%; width: 30px; height: 30px; align-self: center; background: #233a6a; }
.pTier.on { background: linear-gradient(#ffc93c, #f09a12); color: #3a2200; }
.engelLock { position: absolute; top: 34px; bottom: 0; right: 0; width: calc(50% - 20px); background: rgba(10,14,30,.6); border-radius: 12px; display: flex; flex-direction: column; align-items: center; padding-top: 30px; gap: 10px; z-index: 3; }
.engelLock div { font-size: 40px; }
.engelLock button { position: sticky; top: 60px; }
.passList { max-height: 40vh; overflow-y: auto; width: 100%; text-align: left; font-size: 13px; font-weight: 400; background: #0f1a33; border-radius: 10px; padding: 8px 12px; }
.passList b { display: inline-block; width: 24px; color: #ffd84a; }
.price { font-size: 34px; color: #ffd84a; margin: 6px 0; }
.donate { font-size: 16px; }
h1.unlocked { font-size: 30px; color: #ffd84a; text-shadow: 0 0 14px rgba(255,216,74,.7), 0 3px 0 #7a4a06; margin: 10px 0; }
.tile.locked { cursor: pointer; }

/* Kartenlevel deutlich sichtbar */
.card .lv { top: auto; right: auto; left: 50%; bottom: 17px; transform: translateX(-50%); font-size: 10px; padding: 1px 7px; border-radius: 6px;
  background: linear-gradient(#3b82f6, #1f4fa8); border: 1px solid #0a1226; box-shadow: 0 1px 0 rgba(0,0,0,.5); white-space: nowrap; }
#nextBox .card .nm { font-size: 7.5px; overflow-wrap: normal; word-break: keep-all; }
#nextBox .card .lv { display: none; }
