/* Home navigation owns its icon space. Keep navigation order aligned with DOM
   order so keyboard and visual reading follow the same hierarchy. */
.simple-home .home-controls>.home-play-actions{order:1}
.simple-home .home-controls>#home-target{order:2}
.simple-home .home-controls>.home-tools{order:3}
.simple-home .home-controls>#machine-prologue{order:4!important}
.simple-home .home-controls>#home-community{order:5;margin:0}
.simple-home .home-controls>#home-earn{order:6;justify-self:start;min-height:44px;padding:10px 14px;font-size:14px}
.simple-home .home-tools{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}
.simple-home .home-tools>.home-tool{display:grid;grid-template-columns:88px minmax(0,1fr);grid-template-rows:minmax(28px,auto) minmax(24px,auto);gap:5px 16px;align-content:center;align-items:center;justify-items:stretch;min-width:0;min-height:122px;padding:16px;text-align:left;box-sizing:border-box}
.simple-home .home-tools>.home-tool>img,
.simple-home .home-tools>.home-tool>.vault-coin-art,
.simple-home .home-tools>.home-tool>.podium-icon{display:block;grid-column:1;grid-row:1/3;width:88px!important;height:88px!important;max-width:100%;align-self:center;object-fit:contain;margin:0;box-sizing:border-box}
.simple-home .home-tools>.home-tool>strong,
.simple-home .home-tools>.home-tool>small{grid-column:2;display:block;min-width:0;min-height:0;max-width:100%;margin:0;text-align:left;white-space:normal;overflow-wrap:break-word;word-break:normal;hyphens:none;line-height:1.35}
.simple-home .home-tools>.home-tool>strong{grid-row:1;align-self:end;font-size:18px}
.simple-home .home-tools>.home-tool>small{grid-row:2;align-self:start;font-size:14px}
.simple-home .home-tools>#home-vault{order:-1;grid-column:1/-1;min-height:126px}
.simple-home .home-tool>.podium-icon{background-image:url('assets/home-nav-v780.png');background-size:200% 100%;background-position:right center;background-repeat:no-repeat;font-size:0!important;filter:drop-shadow(0 2px 2px #10291e55)}
.simple-home #home-vault .vault-coin-art{position:relative;overflow:visible;background-position:left center;background-repeat:no-repeat;background-size:78% auto!important;filter:drop-shadow(0 2px 2px #10291e55)}
.simple-home #home-vault .vault-coin-art>.cabinet-poo-preview{position:absolute;right:-3px;bottom:1px;width:65px!important;height:54px!important;object-fit:contain;margin:0;filter:drop-shadow(0 2px 1px #10291e88)}
.simple-home #home-vault .vault-coin-art>.cabinet-edit-mark{position:absolute;right:-1px;top:0;display:grid;place-items:center;width:29px;height:29px;border:1px solid #a27b27;border-radius:50%;background:#fff2c9;color:#214c38;font-size:20px;line-height:1;box-shadow:0 2px 0 #112c2244}
.simple-home #home-vault .cabinet-edit-mark>svg{display:block;width:18px;height:18px}
.simple-home .home-mode-picker>.home-mode-icon{display:block;width:36px;height:32px;object-fit:contain;flex:none}
.simple-home #home-target-preview{display:block;width:64px;height:58px;object-fit:contain;justify-self:center}
/* The compact medal introduces the two ongoing contributions through its
   ribbon buttons; a quiet locked image never dims their actionable text. */
#home-community .community-medal{grid-template-columns:82px minmax(0,1fr);gap:8px 14px;padding:14px}
#home-community .medal-art img{width:82px;height:92px;filter:grayscale(1);opacity:.8}
#home-community .community-medal.is-earned .medal-art img{filter:none;opacity:1}
#home-community .medal-copy{min-width:0}
#home-community .medal-copy strong{font-size:18px}
#home-community .medal-copy p{font-size:14px;margin:3px 0}
#home-community .medal-copy .text-button{min-height:44px;padding:5px 0;font-size:13px;white-space:normal;line-height:1.35}
#home-community .medal-ribbons{position:relative;gap:12px;margin:0 4px 4px;padding-top:8px;border-top:1px solid #c2cbb5}
#home-community .medal-ribbons button{position:relative;min-width:0;min-height:86px;padding:12px 9px 15px;border:1px solid #a9b99d;border-bottom:5px solid #8ca77a;border-radius:5px 5px 13px 13px;background:linear-gradient(#eaf0df,#dde8cc);color:#214b36;font-size:14px;line-height:1.4;white-space:normal;overflow-wrap:break-word}
#home-community .medal-ribbons button::before{content:'';position:absolute;top:-9px;left:calc(50% - 9px);width:18px;height:8px;background:#a6b991;border:1px solid #a6b991;border-bottom:0;border-radius:3px 3px 0 0}
#home-community .medal-ribbons strong{font-size:25px;font-variant-numeric:tabular-nums}
#home-community .medal-ribbons small{font-size:13px;margin-top:5px}
@media(max-width:600px){
 .simple-home .home-controls{gap:12px}
 .simple-home .home-tools{gap:10px}
 .simple-home .home-tools>.home-tool{grid-template-columns:minmax(0,1fr);grid-template-rows:76px minmax(24px,auto) minmax(22px,auto);gap:7px;justify-items:center;align-content:start;min-height:162px;padding:14px 10px 13px;text-align:center}
 .simple-home .home-tools>.home-tool>img,
 .simple-home .home-tools>.home-tool>.podium-icon{grid-column:1;grid-row:1;width:76px!important;height:76px!important;max-width:100%;align-self:center;justify-self:center}
 .simple-home .home-tools>.home-tool>strong,
 .simple-home .home-tools>.home-tool>small{grid-column:1;align-self:start;text-align:center}
 .simple-home .home-tools>.home-tool>strong{grid-row:2;font-size:17px}
 .simple-home .home-tools>.home-tool>small{grid-row:3;font-size:13px}
 .simple-home .home-tools>#home-vault{grid-template-columns:90px minmax(0,1fr);grid-template-rows:minmax(27px,auto) minmax(40px,auto);gap:5px 14px;align-content:center;justify-items:stretch;min-height:132px;padding:16px 14px;text-align:left}
 .simple-home .home-tools>#home-vault>.vault-coin-art{grid-column:1;grid-row:1/3;width:90px!important;height:90px!important;align-self:center}
 .simple-home .home-tools>#home-vault>strong,
 .simple-home .home-tools>#home-vault>small{grid-column:2;text-align:left}
 .simple-home .home-tools>#home-vault>strong{grid-row:1;align-self:end;font-size:18px}
 .simple-home .home-tools>#home-vault>small{grid-row:2;font-size:14px}
 .simple-home .home-mode-picker>.home-mode-icon{width:32px;height:29px}
 .simple-home #home-target-preview{width:52px;height:50px}
 #home-community .community-medal{grid-template-columns:76px minmax(0,1fr);gap:8px 10px;padding:12px}
 #home-community .medal-art img{width:76px;height:86px}
 #home-community .medal-copy strong{font-size:17px}
 #home-community .medal-copy p{font-size:13px}
 #home-community .medal-ribbons{gap:8px;margin-inline:0}
 #home-community .medal-ribbons button{font-size:13px;padding:10px 6px 12px;min-height:88px}
 #home-community .medal-ribbons small{font-size:12px}
}
@media(max-width:359px){
 .simple-home .home-tools>#home-vault{grid-template-columns:76px minmax(0,1fr);column-gap:10px;padding:12px}
 .simple-home .home-tools>#home-vault>.vault-coin-art{width:76px!important;height:76px!important}
 .simple-home #home-vault .vault-coin-art>.cabinet-poo-preview{width:56px!important;height:47px!important}
 #home-community .medal-ribbons{grid-template-columns:1fr}
}
body.large-text .simple-home .home-tools>.home-tool{height:auto;min-height:150px}
body.large-text .simple-home .home-tools>.home-tool>strong{font-size:22px}
body.large-text .simple-home .home-tools>.home-tool>small{font-size:18px}
body.large-text #home-community .medal-copy strong{font-size:21px}
body.large-text #home-community .medal-copy p,
body.large-text #home-community .medal-copy .text-button,
body.large-text #home-community .medal-ribbons button,
body.large-text #home-community .medal-ribbons small{font-size:18px}
body.high-contrast .simple-home .home-tools>.home-tool,
body.high-contrast #home-community .community-medal,
body.high-contrast #home-community .medal-ribbons button{background:#fff;color:#111;border:2px solid #111;box-shadow:none}
body.high-contrast .simple-home .home-tools>.home-tool>small,
body.high-contrast #home-community .medal-copy .text-button{color:#111}
body.high-contrast #home-community .medal-ribbons button::before{background:#111;border-color:#111}
@media(prefers-reduced-motion:reduce){#home-screen .home-tool,#home-screen .medal-ribbons button{animation:none;transition:none}}
/* Long translated medal names must wrap inside their own text column. */
#home-community .medal-copy .text-button{max-width:100%;overflow-wrap:anywhere}
#home-community .medal-copy strong{overflow-wrap:anywhere;hyphens:auto}
