.prestige-surface{font-size:1rem;line-height:1.5;color:#294c43}.prestige-surface h2{font-size:1.25rem;line-height:1.35;margin:1rem 0 .5rem}.prestige-surface p{font-size:1rem}.prestige-surface button,.prestige-profile button{min-height:44px;min-width:44px;font-size:.875rem;white-space:normal;overflow-wrap:anywhere}.prestige-tabs,.prestige-actions,.prestige-pagination{display:flex;gap:.5rem;flex-wrap:wrap;margin:.75rem 0}.prestige-tabs button[aria-pressed=true]{background:#315e52;color:#fff4dc}.prestige-tabs button{flex:1}.prestige-grid,.prestige-favorites{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.prestige-card,.prestige-favorite{background:#fff9e8;border:1px solid #c8b587;border-radius:14px;display:flex;align-items:center;flex-direction:column;padding:.65rem;color:#294c43;max-width:100%;min-width:0;text-align:center}.prestige-card strong,.prestige-card span,.prestige-card small,.prestige-favorite span{display:block;overflow-wrap:anywhere;font-size:.875rem;line-height:1.4}.prestige-card strong{font-size:1rem}.prestige-card canvas{width:100%;height:140px}.prestige-missing canvas{filter:grayscale(1);opacity:.42}.prestige-favorite canvas{width:100%;height:88px}.prestige-empty-slot{min-height:128px;border-style:dashed;background:#f3eedf;color:#547468;padding:.75rem}.prestige-profile{margin:1rem 0}.prestige-profile h3{font-size:1rem}.prestige-profile>.secondary{margin-top:.75rem;width:100%}.prestige-detail canvas{width:100%;height:260px;max-height:40vh;background:linear-gradient(#e6ecd4,#b8cea7);border-radius:16px}.prestige-detail dl{display:grid;grid-template-columns:minmax(0,1fr);gap:.2rem;margin:1rem 0}.prestige-detail dt{font-size:.875rem;color:#527062}.prestige-detail dd{margin:0 0 .6rem;font-size:1rem;overflow-wrap:anywhere}.prestige-actions button{flex:1 1 130px}.prestige-filters{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0}.prestige-filters label{flex:1 1 140px;font-size:.875rem;min-width:0}.prestige-filters select{display:block;min-height:44px;width:100%;font-size:1rem;margin-top:.3rem}.prestige-share{display:flex;gap:.5rem;align-items:center;font-size:1rem;min-height:44px}.prestige-share input{width:24px;height:24px;flex-shrink:0}.prestige-welcome{text-align:center;padding:1.25rem .5rem;border:1px dashed #b8ad89;border-radius:16px;margin:1rem 0}.prestige-welcome>span,.prestige-unavailable{font-size:3rem;color:#9b8058;display:block;min-height:100px}.prestige-collection{border:1px solid #c8b587;background:#fff9e8;border-radius:16px;padding:1rem;margin:1rem 0}.prestige-pagination{justify-content:center;align-items:center}.prestige-surface .notice{font-size:1rem}.prestige-surface *{box-sizing:border-box;max-width:100%}#memorybtn{font-size:1.2rem}#memorybtn small{font-size:.875rem}#visitgallery{min-height:44px}
@media(min-width:650px){.prestige-favorites{grid-template-columns:repeat(3,minmax(0,1fr))}.prestige-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.prestige-surface *{animation:none!important;transition:none!important}}

.pilot-season{font-size:1rem;line-height:1.5;background:#fff9e8;border:1px solid #c8b587;border-radius:16px;padding:1rem;margin:1rem 0;overflow-wrap:anywhere}.pilot-season h2{font-size:1.25rem}.pilot-season button{min-height:44px;min-width:44px;font-size:1rem}.pilot-progress{padding-left:1.25rem}.pilot-progress li{margin:.75rem 0}.pilot-progress span,.pilot-progress strong,.pilot-progress progress{display:block;max-width:100%;width:100%}.pilot-progress progress{height:12px;accent-color:#315e52}.pilot-hero-progress{display:flex;flex-wrap:wrap;gap:.5rem}.pilot-season .muted{font-size:.875rem}.pilot-season *{box-sizing:border-box;max-width:100%}

/* Keep the existing desktop book label inside its clickable control. */
@media(min-width:651px){#memorybtn{width:max-content;min-width:44px;padding-inline:.75rem;display:flex;align-items:center;justify-content:center;gap:.35rem}}

/* Compact book icon on phones; full label in the existing desktop HUD. */
#memorybtn .memory-symbol{width:26px;height:26px;display:block;flex-shrink:0;margin:auto}
#memorybtn small{display:none}
@media(min-width:651px){#memorybtn small{display:block;white-space:nowrap}#memorybtn .memory-symbol{margin:0}}
.prestige-test-gate label{display:block;margin-bottom:.5rem}.prestige-test-gate input{width:100%;min-height:44px;margin-bottom:1rem}

.prestige-stages{display:flex;flex-wrap:wrap;gap:.4rem;margin:.75rem 0}.prestige-stages button{flex:1 1 64px}.prestige-stages button[aria-pressed=true]{background:#315e52;color:#fff4dc}.prestige-detail[data-night=true] canvas{background:linear-gradient(#142837,#314c53)}

.pilot-stage{border-top:1px solid #d8caa5;padding-top:.5rem;margin-top:1rem}.pilot-stage h3{font-size:1rem;margin:.5rem 0}
.pedestal-shop>canvas,.pedestal-build>canvas,.pedestal-detail>canvas[data-pedestal-art]{width:112px;height:126px;float:right;margin:0 0 12px 14px}
.pedestal-shop dl{display:grid;grid-template-columns:1fr auto;gap:8px 12px;clear:both;margin:14px 0}.pedestal-shop dd{margin:0;font-weight:700;text-align:right}
.pedestal-detail>canvas[data-prestige-art]{display:block;width:160px;height:150px;margin:auto;clear:both}
.pedestal-detail .prestige-actions{clear:both;margin-top:14px}.pedestal-build{min-height:150px}.pedestal-card canvas{width:90px;height:105px}
.pedestal-shop:after,.pedestal-build:after,.pedestal-detail:after{content:'';display:block;clear:both}
