.akkon-player { position: relative; isolation: isolate; background: #0c0b09; font-family: Georgia, 'Times New Roman', serif; color: #d6cec0; }
.player-scene-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: -1; pointer-events: none; }
.akkon-player > .app-container { padding: 36px 20px 115px; align-items: flex-start; background: linear-gradient(#08080733, #080807b8 420px, #080807d9); }
.akkon-player .player-dashboard { max-width: 800px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.akkon-player .player-dashboard-header { align-items: flex-start; margin: 0 0 28px; padding: 0; border: 0; background: transparent; gap: 15px; }
.akkon-player .player-brand-mark { display: none; }
.akkon-player .player-brand-copy h1 { font-size: clamp(30px, 6vw, 58px); letter-spacing: .02em; color: #efbd70; text-shadow: 0 2px 5px #000; font-weight: normal; }
.akkon-player .player-brand-copy .subtitle { color: #e0d9ca; text-transform: uppercase; letter-spacing: .3em; font-size: clamp(11px, 2vw, 17px); padding-bottom: 14px; border-bottom: 1px solid #c48c40; width: fit-content; }
.akkon-player .player-header-welcome { margin-top: 17px; font-size: 19px; color: #d6cec0; text-shadow: 0 2px 5px #000; }
.akkon-player .player-header-welcome strong { display: block; font-size: 26px; color: #efbd70; }
.akkon-player .player-header-actions { gap: 9px; padding-top: 7px; }
.akkon-player .market-home-icon-button { width: 52px; height: 52px; border: 1px solid #c18e4a; border-radius: 8px; background: #11100ddb; color: #edbb71; }
.akkon-player .market-home-icon-button img { width: 26px; height: 26px; max-width: 26px; max-height: 26px; }
.akkon-player .player-home-view { gap: 18px; }
.akkon-player #playerHomeView > .player-character-card { position: relative; overflow: hidden; min-height: 210px; grid-template-columns: minmax(100px, 42%) 1fr; grid-template-rows: 1fr auto; padding: 24px; gap: 10px; border: 1px solid #c48c40; border-left: 3px solid #b57531; border-radius: 4px; background: #11110f; box-shadow: inset 0 0 0 3px #544029; }
.player-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.akkon-player #playerHomeView .player-biography-portrait { position: relative; grid-column: 1; grid-row: 1 / 3; align-self: center; width: 100%; max-height: 160px; aspect-ratio: 1; object-fit: contain; background: #100e0de8; border: 1px solid #b88a4b; border-radius: 5px; }
.akkon-player #playerHomeView .has-biography-portrait .player-avatar-mark { display: none; }
.akkon-player #playerHomeView .player-avatar-mark { position: relative; grid-column: 1; grid-row: 1 / 3; align-self: start; width: 50px; height: 95px; color: #efbd70; font-size: 40px; border: 1px solid #9a733e; border-radius: 0 0 16px 16px; background: #11100ec9; }
.akkon-player #playerHomeView .player-character-identity { position: relative; grid-column: 2; align-self: end; text-align: right; text-shadow: 0 2px 5px #000; }
.akkon-player #playerHomeView .player-card-eyebrow { font-size: 12px; letter-spacing: .1em; }
.akkon-player #playerName { font-size: 32px; color: #efbd70; }
.akkon-player #playerClan { font-size: 19px; color: #edbb71; }
.akkon-player #playerVerified { position: relative; grid-column: 2; justify-self: end; border: 1px solid #795633; background: #191510e8; font-size: 12px; padding: 5px 8px; }
.akkon-player #playerVerified.is-verified { color: #bce6bf; border-color: #6fa272; background: #142b1ce8; }
.akkon-player #playerVerified.is-verified::before { content: '✓ '; }
.akkon-player #playerHomeView .player-info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.akkon-player #playerHomeView .info-box { min-height: 88px; padding: 10px 12px; border: 1px solid #96734c; border-left: 3px solid #ac672b; border-radius: 7px; background: linear-gradient(135deg, #27221ce6, #0b0b0bec); text-align: left; }
.player-rank-name { display: block; margin-top: 3px; color: #c9c2b8; font: 12px/1.25 Georgia, serif; overflow-wrap: anywhere; }
.akkon-player #playerHomeView .player-rank-top { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.akkon-player #playerHomeView .player-rank-top .info-label { margin: 0; }
.akkon-player #playerHomeView .info-label { color: #c9c2b8; font: 17px/1.25 Georgia, serif; }
.akkon-player #playerHomeView .info-box strong { font: bold 23px/1.3 Georgia, serif; color: #f4eee1; }
.akkon-player #playerHomeView .bronze-sync-status { font-size: 11px; }
.akkon-player #playerHomeView .charisma-profile-icon { width: 20px; height: 20px; }
.akkon-player #playerHomeView .charisma-view-hint { font: 13px Georgia, serif; }
.akkon-player #playerHomeView .charisma-profile-top { display: flex; align-items: baseline; justify-content: flex-start; gap: 6px; flex-wrap: wrap; }
.akkon-player .player-shortcut-section { margin-top: 0; padding-top: 0; border: 0; }
.akkon-player .player-shortcut-section h2 { display: flex; align-items: center; gap: 12px; color: #e7c38b; font: 18px Georgia, serif; letter-spacing: .18em; margin-bottom: 14px; }
.akkon-player .player-shortcut-section h2::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, #b18753, transparent); }
.akkon-player .player-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.akkon-player .player-shortcuts .player-shortcut { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; min-height: 88px; padding: 10px; border: 1px solid #bd8b47; border-left: 3px solid #a5652c; border-radius: 7px; background-image: linear-gradient(transparent 30%, #060605ed), url('images/akkon-schnellzugriff.png'); background-size: 100% 100%, 300% 100%; background-position: center, left center; color: #f0e7d7; text-shadow: 0 2px 5px #000; font: 16px Georgia, serif; letter-spacing: .07em; }
.akkon-player .player-shortcuts .player-shortcut:nth-child(2) { background-position: center, center; }
.akkon-player .player-shortcuts .player-shortcut:nth-child(3) { background-position: center, right center; }
.akkon-player .player-shortcuts .player-shortcut img { width: 26px; height: 26px; margin-bottom: 5px; }
.akkon-player .player-shortcuts .player-shortcut::after { content: '›'; position: absolute; right: 12px; bottom: 12px; font-size: 32px; color: #edbb71; }
.akkon-player .player-shortcuts .player-shortcut:hover { filter: brightness(1.15); }
.akkon-player .app-footer { border: 0; color: #b3ada4; font: 13px/1.6 Georgia, serif; }
.player-bottom-nav { position: fixed; z-index: 10; bottom: 0; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, 840px); padding: 10px 8px max(10px, env(safe-area-inset-bottom)); border: 1px solid #946b36; border-bottom: 0; border-radius: 22px 22px 0 0; background: #100f0eef; box-shadow: 0 -5px 25px #0009; }
.player-bottom-nav :is(button, a) { display: flex; flex-direction: column; align-items: center; gap: 7px; width: auto; padding: 4px 2px; min-height: 58px; border: 0; border-radius: 0; background: transparent; color: #d6cec0; text-decoration: none; font: 14px Georgia, serif; letter-spacing: 0; }
.player-bottom-nav img { width: 27px; height: 27px; }
.player-bottom-nav [aria-current='page'] { color: #f3bd69; border-bottom: 2px solid #f3a43e; filter: drop-shadow(0 0 5px #b77020); }
.akkon-player :is(button, a):focus-visible { outline: 2px solid #efbd70; outline-offset: 3px; }
.purchase-request-card .purchase-order-status { justify-self: start; padding: 6px 10px; border: 1px solid #8c723e; border-radius: 5px; background: #312819; color: #e8c27e; }
.purchase-request-card .purchase-order-status--completed { border-color: #53865a; background: #172b1c; color: #b6dfbc; }
.purchase-order-action { border-color: #b88a4b; background: #382615; color: #f0c684; font-size: 14px; }
.purchase-order-action:disabled { opacity: .6; cursor: wait; }
.purchase-order-feedback { font-size: 13px; line-height: 1.5; color: #e8c27e; }
.purchase-order-feedback:empty { display: none; }
.player-development { padding: 20px; border: 1px solid #b88a4b; border-left: 3px solid #b57531; border-radius: 5px; background: linear-gradient(120deg, #28221ce8, #0c0c0bf2); box-shadow: inset 0 0 0 3px #1b1711; }
.player-development h2 { margin: 0 0 10px; font: 13px Georgia, serif; letter-spacing: .13em; color: #edbd78; }
.player-development-copy { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.player-development-copy strong { font: bold clamp(18px, 3vw, 24px) Georgia, serif; color: #efbd70; }
.player-development-copy span { color: #c9c2b8; font-size: 14px; }
#playerRankProgress { display: block; width: 100%; height: 19px; overflow: hidden; appearance: none; border: 1px solid #66543d; border-radius: 12px; background: #242321; accent-color: #e69b36; }
#playerRankProgress::-webkit-progress-bar { border-radius: 12px; background: linear-gradient(#171716, #302d28); box-shadow: inset 0 2px 4px #000; }
#playerRankProgress::-webkit-progress-value { border-radius: 12px; border: 1px solid #f3c47f; background: linear-gradient(#f6c375, #e6952b 60%, #ba6d1d); box-shadow: 0 0 12px #e69b3680; }
#playerRankProgress::-moz-progress-bar { border-radius: 12px; background: linear-gradient(#f6c375, #e6952b 60%, #ba6d1d); }
@media (max-width: 480px) {
    .akkon-player > .app-container { padding: 24px 14px 105px; }
    .akkon-player .player-dashboard-header { gap: 8px; }
    .akkon-player .market-home-icon-button { width: 38px; height: 40px; padding: 8px; }
    .akkon-player .player-header-actions { gap: 6px; }
    .akkon-player .player-header-welcome { font-size: 16px; }
    .akkon-player #playerHomeView > .player-character-card { min-height: 170px; padding: 15px; grid-template-columns: 40% 1fr; }
    .akkon-player #playerName { font-size: 27px; }
    .akkon-player #playerClan { font-size: 16px; }
    .akkon-player #playerHomeView .player-info-grid { gap: 7px; }
    .akkon-player #playerHomeView .info-box { min-height: 82px; padding: 8px; }
    .akkon-player #playerHomeView .info-label { font-size: 13px; }
    .akkon-player #playerHomeView .info-box strong { font-size: 17px; overflow-wrap: anywhere; }
    .akkon-player .player-shortcuts { gap: 7px; }
    .akkon-player .player-shortcuts .player-shortcut { min-height: 73px; padding: 8px 7px; font-size: 11px; letter-spacing: 0; }
    .akkon-player .player-shortcuts .player-shortcut::after { right: 5px; bottom: 30px; font-size: 25px; }
}

.akkon-player .player-header-actions .player-logout-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 58px; min-width: 58px; padding: 5px; font: 11px Georgia, serif; letter-spacing: 0; color: #edbb71; }

.royal-inbox { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid #946b36; }
.royal-message { margin: 14px 0; padding: 18px; border: 1px solid #f07818; border-radius: 8px; background: #15120ee8; }
.royal-message h3 { color: #efbd70; margin: 8px 0; }
.royal-message p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.royal-message time { color: #bdad97; font-size: 14px; }
#adminRoyalDialog textarea { box-sizing: border-box; width: 100%; padding: 12px; background: #111; color: #eee; font: 16px/1.6 Georgia,serif; }

#adminRoyalDialog { max-height: 85svh; overflow-y: auto; width: min(800px, calc(100vw - 28px)); max-width: 800px; }
#adminRoyalHistory button { width: auto; margin: 8px 8px 0 0; }

#adminSeRewardsDialog { width: min(800px, calc(100vw - 28px)); max-width: 800px; max-height: 85svh; overflow-y: auto; }
#adminSeRewardsDialog textarea { box-sizing: border-box; width: 100%; padding: 12px; background: #111; color: #eee; font: 16px/1.6 Georgia,serif; }
#adminSeRewardsList article { padding: 16px 0; border-top: 1px solid #946b36; }
#adminSeRewardsList button { width: auto; margin: 8px 8px 0 0; }


.akkon-player #playerHomeView .player-extra-info-tile { display:flex; flex-direction:column; gap:4px; }
#buildingNotice { margin:0; padding:10px; border:1px solid #bd8b47; background:#211b13; }
#buildingNotice.building-over-limit { color:#ffc4b8; border-color:#d57360; background:#361916; }
#buildingDialog { width:min(720px,calc(100% - 32px)); max-height:85vh; overflow:auto; box-sizing:border-box; background:#191713; color:#eee4d4; border:1px solid #bd8b47; border-radius:8px; padding:22px; }
#buildingDialog::backdrop { background:#000b; }
#buildingDialog label { display:flex; flex-direction:column; gap:6px; margin:14px 0; }
#buildingDialog input, #buildingDialog select, #buildingDialog textarea { box-sizing:border-box; width:100%; padding:10px; background:#302b24; color:#fff; border:1px solid #96734c; }
#buildingDialog button { padding:10px; margin:8px 0; }
#buildingHistory { padding-left:22px; }
#buildingHistory li { padding:12px 0; border-bottom:1px solid #64513a; white-space:pre-wrap; overflow-wrap:anywhere; }

#buildingDialog { position:fixed; inset:0; margin:auto; }
