/* Pirate Treasure theme */
:root{--pt-text:#fff6dd;--pt-dim:#dccda4}
html,body{background:radial-gradient(circle at 18% 14%, rgba(255,217,122,.16), transparent 18%),radial-gradient(circle at 82% 20%, rgba(56,229,255,.12), transparent 18%),linear-gradient(180deg,#015e73 0%,#0a2f3b 100%);color:var(--pt-text)}
body::before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.16;background:radial-gradient(circle, rgba(255,255,255,.03) 0 1px, transparent 1.2px),repeating-linear-gradient(45deg, rgba(255,218,142,.03) 0 16px, transparent 16px 32px);background-size:22px 22px, auto;z-index:0} body>*{position:relative;z-index:1}
h1,h2,h3{color:#fff6dd;text-transform:uppercase;letter-spacing:.05em;text-shadow:0 0 12px rgba(255,217,122,.14)}
.muted,.admin-status-label,#profileUserInfo,#joinQrText,#mapHelp{color:var(--pt-dim)!important}
.card,.admin-section,.profile-modal,.join-qr-card,.join-player-card,.admin-status-card,.admin-panel,.modal-backdrop .card{background:linear-gradient(180deg, rgba(63,37,21,.95), rgba(28,20,16,.97));border:1px solid rgba(255,217,122,.24);box-shadow:0 16px 34px rgba(0,0,0,.42)}
.admin-status-card{background:radial-gradient(circle at top left, rgba(255,217,122,.16), transparent 32%),linear-gradient(180deg, rgba(63,37,21,.98), rgba(28,20,16,.98))}
.admin-tab-button,.sub-tab-button,.button-link,button{border:1px solid rgba(255,217,122,.46);color:var(--pt-text);background:linear-gradient(180deg, rgba(150,94,28,.9), rgba(89,52,19,.96));box-shadow:0 0 14px rgba(255,217,122,.08)}
.admin-tab-button:hover,.sub-tab-button:hover,.button-link:hover,button:hover{border-color:rgba(255,244,197,.9);background:linear-gradient(180deg, rgba(176,111,35,.94), rgba(104,63,24,.98))}
.admin-tab-button.active,.sub-tab-button.active{background:linear-gradient(180deg, rgba(56,229,255,.82), rgba(20,148,178,.92));border-color:rgba(208,251,255,.94);color:#05222b;box-shadow:0 0 20px rgba(56,229,255,.18)}
button.secondary,.secondary-link{background:linear-gradient(180deg, rgba(255,217,122,.84), rgba(205,139,44,.9));color:#3d2307}
button.danger-button{background:linear-gradient(180deg, rgba(255,119,95,.9), rgba(169,56,36,.94));border-color:rgba(255,196,183,.72);color:#2f0f07}
.ready-button{background:linear-gradient(180deg, rgba(144,255,124,.98), rgba(38,192,110,.98))!important;border-color:rgba(232,255,189,.95)!important;color:#17310f!important}
.status-pill{color:#fff8e9;border-color:rgba(255,217,122,.28);background:rgba(73,44,24,.76)} .status-pill-good{background:rgba(38,192,110,.28);border-color:rgba(144,255,124,.82)} .status-pill-waiting{background:rgba(255,217,122,.30);border-color:rgba(255,240,183,.82);color:#fffbe7} .status-pill-paused{background:rgba(56,229,255,.26);border-color:rgba(188,251,255,.82)} .status-pill-ended{background:rgba(255,119,95,.28);border-color:rgba(255,196,183,.82)}
input,select,textarea{color:var(--pt-text);background:rgba(32,21,16,.96);border:1px solid rgba(255,217,122,.28)} input:focus,select:focus,textarea:focus{outline:none;border-color:rgba(56,229,255,.9);box-shadow:0 0 0 3px rgba(56,229,255,.12),0 0 14px rgba(56,229,255,.12)}
.readonly-input{background:rgba(49,31,20,.88);color:#e8d9b0}
.admin-list>*,.join-player-row{background:rgba(69,40,22,.72);border:1px solid rgba(255,217,122,.16)}
.join-player-avatar,.profile-avatar-preview,.profile-icon-button{border:1px solid rgba(56,229,255,.38);box-shadow:0 0 10px rgba(56,229,255,.08)}
.profile-icon-button{background:linear-gradient(180deg, rgba(150,94,28,.9), rgba(89,52,19,.96))}
.fallback-avatar,.profile-icon-fallback{color:#fffbe8}.fallback-avatar{background:rgba(56,229,255,.28);border:1px solid rgba(188,251,255,.46)}
.join-qr-placeholder{background:linear-gradient(180deg, rgba(75,45,26,.95), rgba(31,20,15,.98));border:1px dashed rgba(56,229,255,.24)}
.join-qr-image{background:#fffdf9}
#adminMap,.admin-map,.map,.leaflet-container{border:1px solid rgba(255,217,122,.24);box-shadow:0 10px 28px rgba(0,0,0,.28)}
.map-status{color:#fff8ea;background:rgba(63,37,21,.92);border:1px solid rgba(255,217,122,.22)} .map-status.success{background:rgba(38,192,110,.22);border-color:rgba(144,255,124,.64)} .map-status.error{background:rgba(255,119,95,.22);border-color:rgba(255,196,183,.68)}
.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#4b2d1a;color:var(--pt-text)}
a,a:visited{color:#93f8ff} a:hover{color:#fff}
.status.success{background:rgba(38,192,110,.26);border:1px solid rgba(144,255,124,.68);color:#f4fff0}.status.error{background:rgba(255,119,95,.26);border:1px solid rgba(255,196,183,.7);color:#fff1ec}
.login-card{background:radial-gradient(circle at top right, rgba(255,217,122,.10), transparent 24%),radial-gradient(circle at bottom left, rgba(56,229,255,.08), transparent 20%),linear-gradient(180deg, rgba(63,37,21,.98), rgba(28,20,16,.98))}
