/* Protection is managed inside the board; monthly notices never capture the page. */
/* Current status and claim results use one reading column with visible actions. */
#overlay.board-card-host .compact-protection.card-compact{width:min(500px,100%)!important;padding:18px!important;gap:12px}
#overlay .compact-protection.card-compact .board-card-layout{display:flex;flex-direction:column;overflow:hidden;gap:12px;margin:0}
#overlay .compact-protection.card-compact .board-card-story{display:block;overflow-y:auto;flex:0 1 auto;padding:0 4px 0 0;min-height:0}
#overlay .compact-protection.card-compact .board-card-actions{display:block;overflow:visible;flex:none;background:none;border:0;padding:0;margin:0}
#overlay .compact-protection.card-compact .modal-actions{position:static!important;display:flex;margin:0;gap:8px;background:none}
#overlay .compact-protection.card-compact .modal-actions>button{flex:1 1 0;min-height:42px}
#overlay .compact-protection.card-compact #protectionRules{flex:1 1 0;text-align:left;margin:0;padding:5px 0;color:#d6bb80}
#overlay .compact-protection:has(.protection-tabs) .board-card-story>.eyebrow,#overlay .compact-protection:has(.protection-tabs) .board-card-story>.event-card-heading{display:none}
#overlay .compact-protection:has(.protection-tabs) .protection-tabs{margin:0 0 10px}
#overlay .compact-protection:has(.protection-tabs) .protection-prices{margin-top:10px}
#overlay .compact-protection.card-compact .modal-actions{padding-top:0}
#overlay .compact-protection.card-compact #premiumChoiceHint{flex:0 0 100%;margin:0;font-size:12px;line-height:1.5;color:#aebfa6}
#overlay .compact-protection .protection-claim-result{text-align:center;padding:14px 12px;background:#10271c;border:1px solid #81996255;border-radius:12px}
#overlay .compact-protection .protection-claim-result>span{display:block;font-size:14px;color:#bacbb0}
#overlay .compact-protection .protection-claim-result>strong{display:block;margin:6px 0;font-size:36px;line-height:1.2;color:#ffe0a0;font-variant-numeric:tabular-nums}
#overlay .compact-protection .protection-claim-result strong small{font-size:16px;color:#b6c6aa}
#overlay .compact-protection .protection-claim-result p{margin:4px 0;font-size:14px}
#overlay .compact-protection .protection-claim-breakdown{display:flex;justify-content:space-between;gap:12px;margin-top:12px;font-size:12px;color:#bacbb0}
#overlay .compact-protection .protection-claim-breakdown b{display:block;color:#dce5c9;font-size:16px;margin-top:4px}
#overlay .compact-protection .premium-price-change{margin:12px 0;padding:12px;gap:10px}
#overlay .compact-protection .premium-price-change strong{font-size:27px}
#overlay .compact-protection .premium-price-change del{font-size:21px}
#overlay .compact-protection .premium-policy{font-size:12px!important;line-height:1.6!important;margin:8px 0 0}
#overlay .compact-protection .protection-readonly{margin-bottom:0}
#overlay .compact-protection .protection-rule-copy p{font-size:13px;line-height:1.7}
#overlay .compact-protection:has(.protection-claim-result) .board-card-story>.eyebrow{display:none}
#overlay .compact-protection:has(.protection-claim-result) h2{font-size:21px;margin-bottom:10px}
#overlay .compact-protection .protection-claim-result{padding:10px}
#overlay .compact-protection .protection-claim-result>strong{font-size:32px;margin:4px 0}
#overlay .compact-protection .protection-claim-breakdown{margin-top:8px}
#overlay .compact-protection .premium-price-change{display:flex;justify-content:space-between;padding:10px;margin:10px 0}
#overlay .compact-protection .premium-price-change>div{flex-direction:row;align-items:baseline;gap:7px;flex-wrap:wrap}
#overlay .compact-protection .premium-price-change span{font-size:12px}
#overlay .compact-protection .premium-price-change strong{font-size:24px}
#overlay .compact-protection .premium-price-change del{font-size:18px}
#overlay.board-card-host .compact-protection:has(.protection-claim-result){padding:14px!important;gap:8px}
#overlay .compact-protection:has(.protection-claim-result) .board-card-layout{gap:8px}
#overlay .compact-protection .protection-claim-result{padding:8px}
#overlay .compact-protection .protection-claim-result>strong{font-size:30px}
#overlay .compact-protection .protection-claim-breakdown b{font-size:14px;margin-top:2px}
.game-table .seat-protection{cursor:pointer;text-align:left;font-family:inherit;min-width:0;min-height:0;box-shadow:none;font-weight:650;transition:border-color .15s,background .15s}
.game-table .seat-protection:hover,.game-table .seat-protection:focus-visible{border-color:#e5c074;background:#34523b;outline:1px solid #d6b76b;outline-offset:1px}
.game-table .seat-protection b{font-weight:650}
.game-table .seat-protection.is-paused{border-color:#a768454f;color:#edb399;background:#75422a22}
.game-table .seat-protection.is-paused b{display:inline!important;font-size:9px!important;color:#ffd0b7}
.game-table .has-paused-protection .seat-details{position:relative;border-color:#e3987466;color:#ffc6a0}
.game-table .has-paused-protection .seat-details:after{content:'!';position:absolute;right:-4px;top:-5px;display:grid;place-items:center;width:12px;height:12px;border-radius:50%;background:#c8714f;border:1px solid #f7be8b;color:#fff3d6;font:800 9px/1 system-ui}
#overlay .protection-tabs{display:flex;gap:6px;margin:10px 0 14px}
#overlay .protection-tabs button{flex:1;min-width:0;border:1px solid #91a57555;border-radius:8px;background:#0e2119;padding:9px 5px;color:#bdcdb4;font:700 14px/1.4 system-ui;box-shadow:none}
#overlay .protection-tabs button[aria-pressed=true]{border-color:#ddbb72;background:#5c623c;color:#ffe0a0}
#overlay .protection-current{display:flex;flex-direction:column;gap:6px;padding-left:12px;margin:12px 0;border-left:3px solid #94a882}
#overlay .protection-current strong{font-size:18px;color:#dce7cf}
#overlay .protection-current span{font-size:14px;line-height:1.6;color:#bbccb0}
#overlay .protection-current.is-active{border-color:#aacf8a}
#overlay .protection-current.is-active strong{color:#d8e8ac}
#overlay .protection-current.is-paused{border-color:#e79672}
#overlay .protection-current.is-paused strong{color:#f1b597}
#overlay .protection-prices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:16px 0 0}
#overlay .protection-prices>div{display:flex;flex-direction:column;gap:6px;padding:13px 11px;border:1px solid #aeb5843b;background:#11241c;border-radius:9px;min-width:0}
#overlay .protection-prices span{font-size:12px;font-weight:650;color:#b6c7ac}
#overlay .protection-prices strong{font-size:24px;font-weight:800;line-height:1.25;font-variant-numeric:tabular-nums;color:#f8d68c;white-space:nowrap}
#overlay .protection-prices small{font-size:11px;line-height:1.5;color:#9db194}
#overlay .protection-settings{min-width:0}
#overlay .protection-renew{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0}
#overlay .protection-renew>span{display:flex;flex-direction:column;gap:5px;min-width:0}
#overlay .protection-renew b{font-size:16px;color:#eadfbd}
#overlay .protection-renew small{font-size:12px;color:#aebfa6;line-height:1.5}
#overlay .protection-renew input{appearance:none;-webkit-appearance:none;width:44px;height:26px;min-width:44px;border:1px solid #718667;border-radius:18px;background:#101f18;padding:0;position:relative;cursor:pointer;box-shadow:none;flex:none;transition:background .15s}
#overlay .protection-renew input:before{content:'';display:block;position:absolute;width:18px;height:18px;top:3px;left:3px;border-radius:50%;background:#9cab90;transition:transform .15s}
#overlay .protection-renew input:checked{background:#967744;border-color:#e2bd75}
#overlay .protection-renew input:checked:before{transform:translateX(18px);background:#ffe3a0}
#overlay .protection-renew input:disabled{cursor:not-allowed;opacity:.55}
#overlay .protection-renew input:focus-visible{outline:2px solid #f6d998;outline-offset:3px}
#overlay .protection-settings .protection-note{font-size:12px;line-height:1.65;margin:6px 0 12px;color:#aabca1}
#overlay .protection-settings .protection-alert,#overlay .protection-settings .protection-readonly{padding:10px 12px;border-radius:7px;font-size:12px;line-height:1.65;background:#c27b4420;color:#e9c8a0;border:1px solid #c28b463b;margin:10px 0}
#overlay .protection-settings .protection-readonly{background:#86977213;border-color:#899f6c40;color:#c1ceaf}
#overlay .protection-actions button{min-height:43px}
.protection-scroll-hint{display:none}
#overlay.board-card-host .protection-modal.card-compact:not(.compact-protection){position:relative;padding-bottom:76px!important}
#overlay .protection-modal.card-compact:not(.compact-protection) .protection-actions{position:absolute!important;left:14px;right:14px;bottom:12px;margin:0;padding:0;background:#192e23;z-index:2}
#overlay .protection-modal.card-compact .board-card-layout{padding-bottom:0}
#overlay .protection-history-list{display:grid;gap:0}
#overlay .protection-history-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid #9bac7540}
#overlay .protection-history-row:last-child{border:0}
#overlay .protection-history-row>div{display:flex;flex-direction:column;gap:4px;min-width:0}
#overlay .protection-history-row strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e1dfc4}
#overlay .protection-history-row span{font-size:12px;color:#9eaf93}
#overlay .protection-history-row>b{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums;color:#e4d4a1}
#protectionNotice{position:fixed;left:max(14px,env(safe-area-inset-left));bottom:max(14px,env(safe-area-inset-bottom));width:300px;max-width:calc(100vw - 28px);padding:15px 16px;border:1px solid #d1b572;border-radius:12px;background:linear-gradient(145deg,#304232,#13261e);box-shadow:0 8px 28px #0009,inset 0 1px #eed69c24;color:#d8dfc4;z-index:35;box-sizing:border-box;pointer-events:auto}
.protection-notice-heading{display:flex;gap:8px;align-items:center}
.protection-notice-heading>span{display:grid;place-items:center;width:23px;height:23px;flex:none;border:1px solid #d2b16b88;border-radius:50%;color:#f3d894;font:800 15px/1 system-ui}
.protection-notice-heading>strong{font:750 15px/1.4 system-ui;flex:1}
.protection-notice-heading>button{border:0;background:transparent;color:#b5c6a8;font:400 24px/1 system-ui;padding:2px;min-width:28px;min-height:28px;box-shadow:none;cursor:pointer}
#protectionNotice p{font-size:12px;line-height:1.65;margin:9px 0;color:#aebda0}
#protectionNotice .protection-notice-price{display:flex;gap:7px;align-items:baseline;margin:8px 0;font-variant-numeric:tabular-nums}
.protection-notice-price b{font-size:22px;color:#f3d596}
.protection-notice-price del,.protection-notice-price small{font-size:12px;color:#b3bda1}
#protectionNotice p.protection-notice-message{margin-bottom:0;color:#d4ddc0}
#protectionNotice.is-paused{border-color:#ce9270}
#protectionNotice.is-paused .protection-notice-heading>strong{color:#ffc7a7}
@container eventcard (max-width:380px){#overlay .protection-prices strong{font-size:21px}#overlay .protection-prices>div{padding:11px 9px}#overlay .protection-tabs button{font-size:13px}#overlay .protection-history-row{gap:10px}#overlay .protection-history-row>b{font-size:12px}}
@media(max-width:600px){#protectionNotice{width:280px;left:10px;bottom:max(10px,env(safe-area-inset-bottom));max-width:calc(100vw - 20px);padding:11px 13px}.protection-notice-heading>strong{font-size:14px}#protectionNotice p{font-size:11px;margin:6px 0}.protection-notice-price b{font-size:20px}}
@media(max-height:500px) and (min-width:601px){#protectionNotice{left:8px;bottom:8px;width:245px;padding:10px 12px}.protection-notice-heading>strong{font-size:13px}#protectionNotice p{font-size:11px;margin:6px 0}.protection-notice-price b{font-size:19px}}

/* The two controls remain present with debt and on compact seats. */
.game-table .seat-card .seat-status-row{display:flex!important;flex-shrink:0}
.game-table .seat-card .seat-protection{min-height:28px!important;font-size:11px!important}
#protectionReminder{box-sizing:border-box;width:100%;max-width:420px;flex:none;margin:9px 0 0;padding:11px 14px;text-align:left;border:1px solid #e0b660;border-radius:12px;background:linear-gradient(125deg,#424a2c,#1c3023);box-shadow:0 4px 14px #0005,inset 0 1px #ffe5a933;color:#fff0bd}
#protectionReminder>strong{display:block;font:800 18px/1.4 system-ui}
#protectionReminder>p{margin:4px 0 8px;font:500 15px/1.5 system-ui;color:#e0e6cb}
#protectionReminder>div{display:flex;gap:12px;align-items:center}
#protectionReminder button{padding:6px 16px;min-height:32px;font:750 14px/1.4 system-ui;box-shadow:none}
#protectionReminder .quiet{color:#ded8b6}
#protectionReminder.is-new{animation:protection-glow .85s ease-in-out 2}
@keyframes protection-glow{50%{box-shadow:0 0 0 3px #f1ca7c55,0 0 22px #edba6755}}
@media(prefers-reduced-motion:reduce){#protectionReminder.is-new{animation:none}}
.market-center.has-protection-reminder .center-orbit,.market-center.has-protection-reminder .center-chart,.market-center.has-protection-reminder .price-stages{display:none!important}
@media(min-width:901px) and (min-height:601px){.game-stage:has(.game-table){height:auto;min-height:calc(100dvh - 80px)}.game-table{height:max(790px,calc(100dvh - 190px));min-height:790px;flex:none}}
@media(orientation:landscape) and (min-width:601px) and (max-width:1100px) and (max-height:600px){.game-table .player-rail{overflow-y:auto;overflow-x:clip;grid-template-rows:repeat(3,minmax(260px,1fr));scrollbar-width:thin}}
@media(max-width:600px){
 .protection-roll-dock{grid-column:1/-1;width:100%;min-width:0;box-sizing:border-box;margin:0 0 10px}
 .protection-roll-dock #protectionReminder{max-width:none;margin:0 0 8px;padding:12px 14px}
 .protection-roll-dock #mainAction{width:100%;min-height:44px;font-size:16px}
 #protectionReminder button{min-height:38px}
}

@media(orientation:landscape) and (min-width:601px) and (max-width:1100px) and (max-height:600px){
 .market-center.has-protection-reminder .turn-bar,.market-center.has-protection-reminder .race-goal,.market-center.has-protection-reminder .center-price-label,.market-center.has-protection-reminder .price-history-link{display:none!important}
 .game-table .seat-card .seat-finances{grid-template-areas:'btc btc btc btc btc btc' 'cash cash cash worth worth worth' 'income income expense expense flow flow'!important;gap:5px 3px!important}
 .game-table .seat-card .seat-finances>div{display:block!important}
 .game-table .seat-card .seat-finances strong{font-size:11px!important;letter-spacing:0}
 .game-table .seat-card .seat-finances .seat-bitcoin strong{font-size:17px!important}
 .game-table .seat-card .seat-holding-line{display:block!important}
 .game-table .seat-card .seat-cost{align-items:flex-start;flex-direction:row;gap:3px;font-size:8px!important;margin:3px 0!important}
 .game-table .seat-card .seat-finances span{font-size:9px!important}
 .game-table .seat-card .seat-cash,.game-table .seat-card .seat-worth{padding:3px!important}
 .game-table .seat-card .seat-protection{font-size:10px!important;padding:3px!important}
}

@media(orientation:landscape) and (max-height:600px) and (max-width:1100px){.market-center.has-protection-reminder #reserveBtn,.market-center.has-protection-reminder #repayBtn{display:none!important}.market-center.has-protection-reminder #protectionReminder{padding:8px 10px;margin-top:5px}.market-center.has-protection-reminder .center-change{display:none!important}}

@media(orientation:landscape) and (max-height:600px) and (max-width:1100px){.market-center.has-protection-reminder #protectionReminder{padding:6px 10px}.market-center.has-protection-reminder #protectionReminder>p{margin:3px 0 4px}}

.premium-price-change{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:16px;align-items:center;margin:16px 0;padding:16px;border:1px solid #d6b46c66;border-radius:12px;background:#10251b}.premium-price-change>div{display:flex;flex-direction:column;gap:7px}.premium-price-change span{font-size:14px;color:#bacaac}.premium-price-change del{font-size:24px;font-weight:650;color:#aebaa0}.premium-price-change strong{font-size:32px;font-weight:850;color:#ffdd8d;white-space:nowrap}.premium-price-change>b{font-size:23px;color:#daba78}.premium-usage,.protection-usage{font-size:15px!important;line-height:1.6!important;color:#d4dcbf}.premium-policy{font-size:15px!important;line-height:1.65!important;color:#e5ddbe}.premium-usage b{color:#ffdd8d}.premium-renewal-card .options .choice small{font-size:14px!important;line-height:1.6!important}@media(max-width:600px){.premium-price-change{gap:10px;padding:12px}.premium-price-change strong{font-size:28px}}
.protection-fee-ladder{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:14px 0}.protection-fee-ladder>div{display:flex;flex-direction:column;gap:4px;text-align:center;padding:9px 4px;border:1px solid #596850;border-radius:8px;background:#182a21}.protection-fee-ladder span{font-size:12px;color:#bfccba}.protection-fee-ladder b{font-size:16px;color:#ffe0a0;font-variant-numeric:tabular-nums}.protection-fee-ladder .is-current{border-color:#dcb369;background:#3c4930}@media(max-width:480px){.protection-fee-ladder{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Desktop claim details sit inside the card's visual centre. */
@media(min-width:769px){
 body:not(.mobile-game) #overlay .compact-protection .protection-claim-breakdown{width:80%;margin:12px auto 0;font-size:15px;justify-content:space-between;text-align:center}
 body:not(.mobile-game) #overlay .compact-protection .protection-claim-breakdown b{font-size:20px;margin-top:4px}
 body:not(.mobile-game) #overlay .compact-protection .premium-price-change{padding:12px 10%;display:grid;grid-template-columns:1fr auto 1fr;gap:14px}
 body:not(.mobile-game) #overlay .compact-protection .premium-price-change>div{justify-content:center;text-align:center}
 body:not(.mobile-game) #overlay .compact-protection .premium-price-change span{font-size:15px}
 body:not(.mobile-game) #overlay .compact-protection .premium-price-change del{font-size:22px}
 body:not(.mobile-game) #overlay .compact-protection .premium-price-change strong{font-size:28px}
}

/* Keep personal shortcuts on one compact row, including short player seats. */
.game-table .has-seat-trade .seat-protection{flex:1 1 0;min-width:0;justify-content:center;gap:3px;padding-inline:3px;white-space:nowrap}
.has-seat-trade .seat-protection b{display:none!important}
.game-table .has-seat-trade .seat-trade{color:#ffe0a0;border-color:#bca35c66;background:#bca35c12}
.seat-trade:focus-visible{outline:2px solid #e7c875;outline-offset:2px}
