:root{--bg:#fffaf4;--paper:#fff;--tx:#24212a;--dim:#716b73;--line:#eee5df;--pink:#ed4d91;--blue:#328ed0;--green:#36a879;--yellow:#f4c542;--orange:#f18a35;--red:#df4e4e;--shadow:0 12px 32px rgba(48,31,40,.08)}
*{box-sizing:border-box}
body{margin:0;background:linear-gradient(180deg,#fff7ef 0,#fffaf6 320px,var(--bg) 100%);color:var(--tx);font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;min-height:100vh}
.wrap{max-width:760px;margin:0 auto;padding:24px 20px 48px}
h1{font-size:clamp(2rem,6vw,3.1rem);line-height:1.05;letter-spacing:-.045em;margin:.18em 0;color:var(--tx)}h2,h3{margin:.15em 0 .55em;letter-spacing:-.02em}p{margin:.55em 0}
.hero{position:relative;overflow:hidden;border-radius:28px;padding:30px;background:#fff;box-shadow:var(--shadow);border:1px solid rgba(237,77,145,.13);margin:4px 0 20px}
.hero:before,.hero:after{content:"";position:absolute;border-radius:50%;pointer-events:none;opacity:.17}
.hero:before{width:170px;height:170px;background:var(--yellow);right:-42px;top:-85px}.hero:after{width:120px;height:120px;background:var(--blue);right:90px;bottom:-80px}
.hero-copy{position:relative;z-index:1;max-width:540px}.eyebrow{font-size:.72rem;font-weight:850;letter-spacing:.16em;color:var(--pink)}
.hero p{font-size:1.05rem;color:var(--dim);margin-top:10px}.banner{display:block;width:min(100%,560px);height:auto;max-height:150px;object-fit:contain;object-position:left center;margin:18px 0 0;position:relative;z-index:1}
.welcome{font-weight:650;margin:18px 4px}.card{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:18px;margin:14px 0;box-shadow:0 5px 18px rgba(48,31,40,.045)}
label{display:block;margin:.8em 0;font-weight:700}input{width:100%;font:inherit;padding:12px 14px;border:1px solid #ded5d0;border-radius:12px;background:#fff;color:var(--tx);margin-top:6px}
input:focus,button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid rgba(50,142,208,.35);outline-offset:2px}
button,.btn{font:inherit;font-weight:750;padding:11px 17px;border:0;border-radius:12px;background:var(--pink);color:#fff;cursor:pointer;text-decoration:none;display:inline-block;text-align:center;box-shadow:0 4px 10px rgba(237,77,145,.17);transition:transform .15s,filter .15s}
button:hover,.btn:hover{filter:brightness(.97);transform:translateY(-1px)}button:disabled{opacity:.45;cursor:default;transform:none}.big{width:100%;padding:15px;font-size:1.08rem;margin:8px 0}
.ghost{background:#fff;color:var(--tx);border:1px solid var(--line);box-shadow:none}.danger{background:#fff0f0;color:#b72f3a;border:1px solid #ffd0d3;box-shadow:none}
.row{display:flex;gap:9px;margin:10px 0;align-items:center}.row>input{flex:1;margin:0;min-width:0}.dim{color:var(--dim)}.bad{color:var(--red)}.r{text-align:right}
.code{letter-spacing:.2em;background:var(--blue);color:#fff;padding:3px 10px;border-radius:9px;display:inline-block}
.pl,.ar{display:flex;justify-content:space-between;gap:10px;padding:8px 2px;border-bottom:1px solid var(--line);align-items:center}.pl.off{opacity:.5}.ar span:nth-child(2){flex:1;font-weight:650}.ar .bad{text-decoration:line-through}
.bar{display:flex;justify-content:space-between;align-items:center;gap:12px}.tm{font-size:1.55rem;font-weight:850;color:var(--orange)}
.letter{font-size:clamp(5rem,22vw,8rem);line-height:1;text-align:center;font-weight:900;color:var(--blue);margin:.15em 0;letter-spacing:-.06em}.letter.sm{font-size:2.5rem}
.x{padding:3px 12px;background:#fff;color:var(--dim);border:1px solid var(--line);box-shadow:none}.x.on{background:var(--red);color:#fff;border-color:var(--red)}
table{width:100%;border-collapse:collapse}td{padding:9px 5px;border-bottom:1px solid var(--line)}.pts{color:var(--green);font-weight:850;min-width:3em;text-align:right}
.toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);background:#302a33;color:#fff;padding:11px 17px;border-radius:12px;z-index:9;box-shadow:var(--shadow);max-width:calc(100% - 30px)}
.account-zone{margin-top:26px;border-top:1px solid var(--line);padding-top:14px}.account-zone details{background:rgba(255,255,255,.65);border:1px solid var(--line);border-radius:14px;padding:13px 15px}.account-zone summary{cursor:pointer;font-weight:750}.account-zone p{max-width:580px}.actions{flex-wrap:wrap}
@media(max-width:520px){.wrap{padding:14px 13px 36px}.hero{padding:22px 19px;border-radius:21px}.banner{max-height:105px}.row{align-items:stretch}.row>*{min-width:0}.row button{padding-left:12px;padding-right:12px}}
@media(prefers-reduced-motion:no-preference){.letter{animation:pop .35s ease-out}@keyframes pop{from{transform:scale(.6);opacity:0}}}

/* Öffentliche Lobby-Übersicht */
.site-footer{max-width:760px;margin:0 auto;padding:0 20px 28px;text-align:center}
.site-footer a{color:var(--blue);font-weight:750;text-decoration:none}
.site-footer a:hover{text-decoration:underline}
.create-card{border-color:rgba(237,77,145,.22)}
.small-note{font-size:.9rem;margin:0 2px 4px}
.open-games-section{margin:26px 0}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:0 3px 10px}
.section-heading h2{margin:0}
.section-heading p{margin:3px 0 0}
.refresh-btn{white-space:nowrap}
.open-games-list{display:grid;gap:2px}
.game-card{margin:8px 0;padding:16px 18px}
.game-card-main{display:flex;align-items:center;justify-content:space-between;gap:16px}
.game-card h3{margin:5px 0 2px}
.game-players{font-size:.91rem;margin:0;overflow-wrap:anywhere}
.game-status{display:inline-block;color:var(--green);font-size:.68rem;font-weight:900;letter-spacing:.12em}
.game-card-action{flex:0 0 auto;min-width:118px}
.game-card-action button{width:100%}
.game-card-meta{border-top:1px solid var(--line);margin-top:12px;padding-top:9px;color:var(--dim);font-size:.82rem}
.inline-code{color:var(--blue);letter-spacing:.12em}
.empty-games{text-align:center;padding:24px}
.empty-games p{margin-bottom:0}
@media(max-width:540px){
 .site-footer{padding:0 14px 24px}
 .section-heading{align-items:flex-start}
 .game-card-main{align-items:stretch;flex-direction:column;gap:12px}
 .game-card-action{width:100%}
 .refresh-btn{font-size:.86rem;padding:9px 11px}
}
