/* Menu e coleções: mesma identidade cartoon, com menos molduras e texto. */
body:not(.in-match){background:#F5F1E6;background-image:none;color:#314735;color-scheme:light}
body:not(.in-match) .topbar{max-width:1120px;margin:auto;padding:18px 24px;background:none;border:0;box-shadow:none;flex-wrap:nowrap;gap:16px;height:80px}
body:not(.in-match) .brand{color:#314735;text-shadow:none;font-size:29px;gap:8px}
body:not(.in-match) .brand-symbol{background:none;border:0;box-shadow:none;width:36px;height:36px;transform:none}
body:not(.in-match) .brand-note{display:none}
body:not(.in-match) .topbar-actions{display:flex;width:auto;flex-wrap:nowrap;gap:8px}
body:not(.in-match) .topbar-actions .subtle{background:none;color:#314735;border:0;box-shadow:none;font:800 14px Nunito,sans-serif;padding:10px 12px;gap:7px;border-radius:12px;white-space:nowrap}
body:not(.in-match) .topbar-actions .subtle:hover{background:#E5EADB;transform:none}
#inventoryOpen:before{background:#314735;mask:url('/icons/backpack.svg') center/contain no-repeat;-webkit-mask:url('/icons/backpack.svg') center/contain no-repeat}
body:not(.in-match) #main{max-width:1120px;padding:0 24px 40px;margin:0 auto}
#welcome{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);align-items:center;gap:36px 64px;padding:20px 0 48px;min-height:0}
#welcome[hidden]{display:none}
.home-profile{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:6px 0 20px;border-bottom:1px solid #DDE0D1}
.home-account{display:flex;align-items:center;gap:12px;min-width:0}
#accountEntry{background:none;border:0;box-shadow:none;color:#314735;font:800 16px Nunito,sans-serif;padding:8px 0;min-height:44px;text-align:left;overflow-wrap:anywhere}
#accountEntry:hover{text-decoration:underline;text-underline-offset:4px}
#accountSummary{font-size:13px;color:#64705F}
#menuCoins{margin:0;flex-shrink:0;font:800 16px Nunito,sans-serif;box-shadow:none;border:0;background:#E9EDD9;color:#314735;padding:9px 13px;gap:8px;min-height:42px;font-variant-numeric:tabular-nums}
#welcome .intro{padding:16px 0 0;min-width:0}
#welcome .intro h1{font-size:clamp(36px,4.5vw,57px);line-height:1.06;color:#314735;text-shadow:none;font-weight:600;letter-spacing:-1.4px;max-width:540px;text-wrap:balance}
#welcome .intro-copy{font-size:16px;line-height:1.6;color:#64705F;margin:18px 0 0;max-width:330px}
#welcome .sample-cards{height:234px;margin:36px 0 0;display:flex;align-items:center;justify-content:center;gap:0;padding:10px 0;pointer-events:none}
#welcome .sample-cards .bean-card{flex:none;width:138px;height:192px;min-height:192px;box-shadow:0 5px 0 #2E1F52,0 12px 15px #36472C15}
#welcome .sample-cards .bean-card:nth-child(1){transform:rotate(-12deg) translate(8px,8px)}
#welcome .sample-cards .bean-card:nth-child(2){transform:translateY(-7px);z-index:1}
#welcome .sample-cards .bean-card:nth-child(3){transform:rotate(12deg) translate(-8px,8px)}
#welcome .sample-cards .bean-art{height:auto;flex:1;min-height:0}
#welcome .sample-cards .bean-art svg{height:100%;max-height:95px}
#welcome .join-panel{background:#FFFCF4;border:0;border-radius:24px;box-shadow:0 12px 35px #34472C08;padding:32px;min-width:0}
#welcome .join-panel .small-number{font:700 13px Nunito,sans-serif;letter-spacing:0;color:#64705F;text-shadow:none;text-transform:none}
#welcome .join-panel h2{font:500 32px/1.15 Fredoka,sans-serif;color:#314735;margin:10px 0}
#welcome #joinDescription{font-size:14px;line-height:1.5;color:#64705F;max-width:300px;margin-bottom:24px}
#welcome #entryForm{margin:0}
#welcome .join-panel label{font-size:13px;color:#40533E;margin:0 0 6px;font-weight:700}
#welcome .join-panel input{min-height:48px;width:100%;padding:12px 14px;background:#F5F3EA;color:#314735;border:1px solid #A3AD98;border-radius:10px;box-shadow:none;margin-bottom:16px;font-size:16px}
#welcome .join-panel input::placeholder{color:#6B7565;opacity:1}
#welcome .join-panel input:focus-visible{outline:3px solid #749255;outline-offset:2px}
#welcome #entrySubmit{width:100%;min-height:52px;border:0;border-radius:12px;box-shadow:0 3px 0 #28432A;background:#426347;color:#FFFDF5;text-shadow:none;font:700 17px Nunito,sans-serif;display:flex;justify-content:space-between;align-items:center;padding:12px 18px}
#welcome #entrySubmit:hover{background:#36573A;transform:translateY(-1px)}
#welcome #entrySubmit:active{transform:translateY(2px);box-shadow:none}
#welcome #toggleJoin{display:block;width:100%;min-height:44px;margin:12px 0 0;padding:8px 0;color:#426347;font:800 14px Nunito,sans-serif;text-align:center;text-decoration:none;background:none}
#welcome #toggleJoin:hover{text-decoration:underline}
#welcome #resumeRoom{display:block;margin-top:16px;background:#E9EDD9;padding:12px;border-radius:10px;text-align:center;color:#314735;font-weight:800;font-size:14px}
#welcome #resumeRoom[hidden]{display:none}
#welcome #entryError:empty{display:none}
.collection-dialog{color:#314735;background:#FAF8F0;border:1px solid #DADFCC;border-radius:24px;width:min(960px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);padding:30px;box-shadow:0 24px 80px #22352226;color-scheme:light}
.collection-dialog::backdrop{background:#243A2E66;backdrop-filter:blur(4px)}
.collection-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-right:42px;margin-bottom:24px}
.collection-heading h2{color:#314735;font:500 34px/1.1 Fredoka,sans-serif;margin-bottom:7px}
.collection-heading p{color:#64705F;font-size:14px}
.collection-heading .wallet-caption{font-size:14px;font-weight:800;color:#426347;max-width:200px;text-align:right;font-variant-numeric:tabular-nums}
.collection-dialog .dialog-close{width:40px;height:40px;top:18px;right:18px;border:0;background:#E9EDD9;color:#314735;border-radius:50%;font-size:25px;display:grid;place-items:center;min-height:40px;padding:0}
.collection-dialog .shop-navigation{display:flex;gap:20px;overflow-x:auto;flex-wrap:nowrap;border-bottom:1px solid #DADFCC;margin:0 0 20px;padding:0}
.collection-dialog .shop-navigation button{background:none;color:#64705F;border:0;border-bottom:3px solid transparent;border-radius:0;box-shadow:none;padding:12px 0;white-space:nowrap;min-height:44px;font:800 14px Nunito,sans-serif}
.collection-dialog .shop-navigation button[aria-pressed=true]{border-bottom-color:#426347;color:#314735;background:none}
.collection-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}
.collection-filters button{background:transparent;color:#52644C;border:0;border-radius:8px;padding:8px 13px;min-height:40px;font:800 13px Nunito,sans-serif;box-shadow:none}
.collection-filters button[aria-pressed=true]{background:#DFE8D4;color:#314735}
.collection-filters button:hover{background:#E9EDDF}
.collection-filters[hidden]{display:none}
#shopItems.collection-grid,#inventoryItems.collection-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0}
#shopItems[hidden]{display:none}
#shopItems .collection-item,#inventoryItems .collection-item{display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:10px 10px 13px;background:#F0EFE4!important;color:#314735;border:0!important;border-radius:15px;box-shadow:none;min-width:0;transition:background .15s,transform .15s}
#shopItems .collection-item:hover,#inventoryItems .collection-item:hover{background:#E5EBD9!important;transform:translateY(-2px)}
.collection-art{height:132px;display:flex;align-items:center;justify-content:center;padding:10px;margin-bottom:10px;border-radius:10px;background:#FFFDF5;overflow:hidden}
#shopItems .collection-art svg,#inventoryItems .collection-art svg{width:100%;height:100%;max-height:112px}
.collection-art img{height:100%;max-width:100%;object-fit:contain}
.collection-name{font:600 17px/1.2 Fredoka,sans-serif;margin:0 3px 6px;overflow-wrap:anywhere}
.collection-state{font-size:13px;line-height:1.3;color:#5B6D4E;margin:0 3px;margin-top:auto;font-weight:800}
#inventoryItems .is-equipped{outline:2px solid #63834F;outline-offset:-2px}
.is-equipped .collection-state{color:#426347}
.inventory-status{color:#64705F;font-size:13px;line-height:1.6;margin:-8px 0 20px}
.collection-empty{color:#64705F;padding:24px 0;text-align:center;font-size:15px;grid-column:1/-1}
.collection-empty button{color:#426347;margin-top:10px;min-height:44px;font-weight:800}
.collection-loading{grid-column:1/-1;min-height:160px;display:grid;place-items:center;color:#64705F}
.collection-emote{font-size:64px}.no-effect{font-size:64px;color:#87967A}
.mini-classic{width:76px;height:100px;padding:10px;border:3px solid #2E1F52;border-radius:12px}
.profile-preview{width:78px;height:78px;border-radius:50%;display:grid;place-items:center;background:#DFE8D4;color:#314735;font:600 35px Fredoka,sans-serif;border:2px solid #83966C}
.profile-founder{border:6px double #AD7A25;outline:3px solid #EACF86;outline-offset:2px;background:#F4E8BC}
.avatar-product{display:flex;justify-content:center;margin:28px 0}
.bed-thumbnail{position:relative;display:block;width:100%;height:100%;overflow:hidden;border-radius:8px}
.bed-thumbnail .garden-landscape{z-index:0}
.bed-thumbnail img{width:100%;height:100%;object-fit:cover}
.sign-thumbnail{display:block;background:#AA6D37;color:#FFF6E4;padding:10px 12px;border:2px solid #2E1F52;border-radius:7px;font:500 16px Fredoka,sans-serif;white-space:nowrap}
.bed-preview{max-width:320px;margin:24px auto}.bed-preview .garden-scene{height:230px}
#productPreview{color:#314735;background:#FAF8F0;border:1px solid #DADFCC;border-radius:20px;padding:24px;max-height:calc(100dvh - 32px);color-scheme:light}
#productPreview h2{color:#314735;font-weight:500}#productPreview p{font-size:14px;color:#64705F}
#productPreview .product-grid figure{border:0!important;background:#EFEFDF}
#productPreview .product-actions{background:#FAF8F0;bottom:-24px}
#productPreview .product-actions button{font-weight:800}
#productPreview #productCancel{background:#E9EDD9;color:#314735}
#productPreview #productConfirm{margin-left:auto}
#productPreview .product-actions button:disabled{opacity:.65}
.collection-dialog button:focus-visible,#welcome button:focus-visible,#productPreview button:focus-visible{outline:3px solid #577B41;outline-offset:3px}
.in-match #inventoryOpen:before{width:24px;height:24px}
@media(max-width:760px){
 body:not(.in-match) .topbar{height:72px;padding:12px 18px;gap:8px}
 body:not(.in-match) .brand{font-size:25px;gap:5px}
 body:not(.in-match) .brand-symbol{width:28px;height:28px}
 body:not(.in-match) .topbar-actions{gap:4px}
 body:not(.in-match) .topbar-actions .subtle{font-size:10px;display:flex;flex-direction:column;padding:5px 7px;gap:3px;min-width:44px;min-height:46px}
 body:not(.in-match) .topbar-actions .icon-btn:before{width:20px;height:20px}
 body:not(.in-match) #main{padding:0 20px 28px}
 #welcome{grid-template-columns:minmax(0,1fr);gap:22px;padding:6px 0 0}
 .home-profile{padding:4px 0 12px;gap:8px}.home-account{display:block}
 #accountEntry{font-size:14px;padding:3px 0;min-height:34px}#accountSummary{font-size:11px}
 #menuCoins{font-size:13px;padding:8px 9px;gap:5px;min-height:36px}
 #welcome .intro{display:flex;flex-direction:column;align-items:center;text-align:center;padding:0}
 #welcome .intro h1{font-size:34px;letter-spacing:-.7px;line-height:1.07}
 #welcome .intro-copy{font-size:13px;line-height:1.5;margin-top:10px;max-width:260px}
 #welcome .sample-cards{height:123px;margin:12px 0 0;padding:0}
 #welcome .sample-cards .bean-card{width:78px;height:107px;min-height:107px;border-width:3px;border-radius:15px;padding:6px 5px 9px;box-shadow:0 3px 0 #2E1F52}
 #welcome .sample-cards .bean-name{font-size:10px}#welcome .sample-cards .bean-count{font-size:9px;padding:1px 3px;min-width:18px}
 #welcome .sample-cards .bean-meter{font-size:9px;gap:1px;padding-top:3px;margin-top:3px}
 #welcome .sample-cards .bean-art svg{max-height:43px}
 #welcome .sample-cards .bean-card .coin{width:6px;height:6px;min-width:6px}
 #welcome .join-panel{padding:21px;border-radius:18px;box-shadow:none}
 #welcome .join-panel h2{font-size:26px;margin:5px 0 7px}
 #welcome #joinDescription{font-size:13px;margin-bottom:17px;max-width:none}
 #welcome #entrySubmit{min-height:48px;font-size:16px}
 #welcome #toggleJoin{margin-top:6px;font-size:13px}
 #welcome .join-panel input{min-height:44px;padding:9px 12px;margin-bottom:12px}
 .collection-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:20px 16px;border-radius:20px}
 .collection-heading{align-items:flex-start;flex-direction:column;gap:8px;margin-bottom:16px;padding-right:40px}
 .collection-heading h2{font-size:30px}.collection-heading p{font-size:13px}
 .collection-heading .wallet-caption{text-align:left;max-width:none;font-size:13px}
 .collection-dialog .shop-navigation{gap:20px;margin-bottom:14px}.collection-dialog .shop-navigation button{font-size:13px}
 .collection-filters{gap:4px;margin-bottom:16px}.collection-filters button{font-size:12px;padding:7px 10px;min-height:40px}
 #shopItems.collection-grid,#inventoryItems.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .collection-art{height:112px;margin-bottom:9px}.collection-name{font-size:16px}.collection-state{font-size:12px}
 .inventory-status{font-size:12px}
 #productPreview{padding:20px 16px}#productPreview .product-actions{bottom:-20px;gap:6px}
 #productPreview .product-actions button{font-size:13px;padding:10px}
 .in-match .topbar{padding-left:126px}
 .in-match .topbar-actions .icon-btn{width:36px;padding:7px;min-width:36px}
}
@media(max-width:360px){body:not(.in-match) .topbar{padding:10px 12px}body:not(.in-match) .brand{font-size:22px}body:not(.in-match) .brand-symbol{display:none}body:not(.in-match) #main{padding:0 12px 20px}#welcome{gap:16px}#welcome .intro h1{font-size:30px}#welcome .sample-cards{height:105px;margin-top:8px}#welcome .sample-cards .bean-card{width:70px;height:95px;min-height:95px}#welcome .join-panel{padding:18px}#menuCoins{font-size:12px}#accountSummary{max-width:135px}.in-match .topbar-actions .icon-btn{width:33px;min-width:33px;padding:6px}}
@media(prefers-reduced-motion:reduce){#welcome button,.collection-item{transition:none!important;transform:none!important}}

.avatar.avatar-founder,.founder-border #myAvatar{border-radius:50%;border:3px double #AD7A25;outline:2px solid #EACF86;outline-offset:1px;box-shadow:none}
@media(max-width:760px) and (max-height:740px){
 #welcome{gap:16px}.home-profile{padding-bottom:8px}
 #welcome .intro{display:grid;grid-template-columns:minmax(0,1fr) 85px;gap:12px;text-align:left}
 #welcome .intro h1{font-size:28px;line-height:1.07}#welcome .intro-copy{display:none}
 #welcome .sample-cards{height:95px;margin:0;justify-content:center}
 #welcome .sample-cards .bean-card{width:72px;height:94px;min-height:94px}
 #welcome .sample-cards .bean-card:nth-child(1),#welcome .sample-cards .bean-card:nth-child(3){display:none}
 #welcome .sample-cards .bean-card:nth-child(2){transform:rotate(7deg)}
 #welcome .join-panel{padding:18px}#welcome #joinDescription{margin-bottom:12px}
 #welcome #entryForm{gap:8px}#welcome .join-panel input{margin-bottom:6px}
}
/* Identidade e saldo pertencem ao cabeçalho; a abertura fica só com o jogo. */
body:not(.in-match) .topbar{display:grid;grid-template-columns:auto 1fr auto;height:86px;gap:20px}
body:not(.in-match) .topbar-actions{justify-self:center}
.topbar .home-profile{grid-column:auto;display:flex;align-items:center;justify-content:flex-end;border:0;padding:0;gap:14px}
.topbar #accountSummary{display:none}.topbar #accountEntry{max-width:180px;font-size:14px}
.topbar #menuCoins{font-size:14px;padding:8px 10px}
.in-match .home-profile{display:none}
#welcome{padding-top:42px}
.collection-top{position:sticky;top:-30px;z-index:4;margin:-30px -30px 20px;padding:30px 30px 15px;background:#FAF8F0;border-bottom:1px solid #E3E6D8;border-radius:24px 24px 0 0}
.collection-top .collection-heading{margin:0}
.collection-top .dialog-close{position:absolute;top:18px;right:18px;box-shadow:none}
@media(max-width:760px){
 body:not(.in-match) .topbar{height:auto;min-height:100px;grid-template-columns:1fr auto;gap:4px 12px;padding:10px 18px 6px}
 .topbar .home-profile{grid-column:2;grid-row:1;flex-direction:column;align-items:flex-end;gap:0}
 .topbar #accountEntry{min-height:28px;font-size:13px;padding:2px 0;max-width:175px;text-align:right}
 .topbar #menuCoins{min-height:28px;font-size:12px;padding:4px 8px}
 body:not(.in-match) .topbar-actions{grid-column:1/-1;grid-row:2;justify-self:end;gap:14px}
 body:not(.in-match) .topbar-actions .subtle{flex-direction:row;gap:6px;padding:6px 2px;min-height:36px;font-size:12px}
 #welcome{padding-top:22px;gap:20px}
 .collection-top{top:-20px;margin:-20px -16px 16px;padding:20px 16px 14px;border-radius:20px 20px 0 0}
 .collection-top .dialog-close{top:14px;right:14px}
}
@media(max-width:760px) and (max-height:740px){#welcome{padding-top:10px;gap:16px}body:not(.in-match) .topbar{padding-top:6px}}
@media(max-width:360px){body:not(.in-match) .topbar{padding-left:12px;padding-right:12px;gap:4px 6px}.topbar #accountEntry{font-size:12px;max-width:158px}.topbar #menuCoins{font-size:11px}}
.inventory-use{margin:6px 3px 0;min-height:40px;border-radius:8px;background:#426347;color:#FFFDF5;font:800 14px Nunito,sans-serif;padding:8px 12px}
.inventory-use:disabled{opacity:1;background:#E0E8D5;color:#486041;cursor:default}
.inventory-use:hover:not(:disabled){background:#314F34}
#inventoryItems .collection-item{cursor:default}
#inventoryItems .collection-item:hover{transform:none}
.creator-section{max-width:620px;padding:6px 0 20px;color:#314735}
.creator-section h3{font:500 26px/1.2 Fredoka,sans-serif;margin:0 0 10px}
.creator-section p{font-size:14px;line-height:1.6;margin:8px 0;color:#56674E}
.creator-notice{background:#E9EDD9;padding:14px 16px;border-radius:12px}
.creator-current{padding-top:12px}.creator-section label{display:block;font-size:13px;font-weight:800;margin:12px 0 6px}
.creator-controls{display:flex;gap:10px;align-items:center}
.creator-controls input{flex:1;min-width:0;background:#FFFDF5;color:#314735;border:1px solid #A3AD98;border-radius:10px;padding:12px;font-size:16px;min-height:46px}
.creator-controls button,.creator-login{border:0;background:#426347;color:#FFFDF5;border-radius:10px;padding:12px 16px;font-weight:800;min-height:46px}
.creator-section .text-button{color:#426347;min-height:44px;margin:6px 0;background:none;font-weight:800}
.creator-registration{margin-top:24px;padding-top:18px;border-top:1px solid #DADFCC}.creator-registration summary{cursor:pointer;font-weight:800;min-height:44px}
#creatorFeedback{font-weight:800}#creatorFeedback:empty{display:none}
@media(max-width:380px){.creator-controls{flex-direction:column;align-items:stretch}}
.profile-founder{position:relative;border:0;outline:0;background:#F4E8BC}
.profile-founder::after{content:'';position:absolute;inset:-12px;background:url('/profile/founder.png') center/100% 100% no-repeat;pointer-events:none}
.avatar.avatar-founder,.founder-border #myAvatar{position:relative;border:0;outline:0;box-shadow:none}
.avatar.avatar-founder::after,.founder-border #myAvatar::after{content:'';position:absolute;inset:-7px;background:url('/profile/founder.png') center/100% 100% no-repeat;pointer-events:none}
.founder-claim{display:flex;align-items:center;gap:20px;background:#F0EAD6;border-radius:14px;padding:18px;margin-bottom:22px}
.founder-claim[hidden]{display:none}.founder-claim-art{width:88px;flex-shrink:0}.founder-claim-art img{width:100%;display:block}
.founder-claim h3{font:500 21px Fredoka,sans-serif;margin:0 0 8px}.founder-claim p{font-size:13px;line-height:1.5;margin:5px 0;color:#5B614A}
.founder-claim button{background:#426347;color:#FFFDF5;min-height:44px;padding:10px 14px;border-radius:8px;font-weight:800;margin-top:8px}
@media(max-width:420px){.founder-claim{gap:12px;padding:14px}.founder-claim-art{width:62px}.founder-claim h3{font-size:18px}}
/* Abertura como lobby do jogo, com navegação persistente. */
.home-dock{position:fixed;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(540px,calc(100% - 24px));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:7px;background:#FFFDF5;border:1px solid #D6DDC9;border-radius:22px;box-shadow:0 6px 24px #34472C14;z-index:15}
.home-dock .dock-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:58px;background:none;color:#426347;border:0;border-radius:14px;font:800 12px Nunito,sans-serif;padding:7px}
.home-dock .dock-button::before{width:25px;height:25px;flex-shrink:0}
.home-dock .dock-button:hover{background:#EDF1E3}.home-dock .is-current{background:#E2EAD5}
#homeOpen:before{background:#426347;mask:url('/icons/house.svg') center/contain no-repeat;-webkit-mask:url('/icons/house.svg') center/contain no-repeat}
#friendsOpen:before{background:#426347;mask:url('/icons/users.svg') center/contain no-repeat;-webkit-mask:url('/icons/users.svg') center/contain no-repeat}
.in-match .home-dock{display:none}
body:not(.in-match) #main{padding-bottom:100px}
body:not(.in-match) .topbar{grid-template-columns:auto 1fr auto;height:76px}
body:not(.in-match) .topbar-actions{justify-self:start}
#welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:8px 0 12px;min-height:calc(100svh - 184px)}
#welcome[hidden]{display:none}
#welcome .intro{display:flex;flex-direction:column;align-items:center;text-align:center;padding:0}
#welcome .intro h1{font:600 44px/1.1 Fredoka,sans-serif;letter-spacing:-1px}
#welcome .intro-copy{display:none}
#welcome .sample-cards{margin:15px 0 12px;height:210px}
#welcome .join-panel{width:min(100%,400px);padding:18px 24px;background:none;box-shadow:none;text-align:center}
#welcome .join-panel .small-number{font-size:13px}
#welcome .join-panel h2{font-size:22px;margin:4px 0 12px}
#welcome #joinDescription{display:none}
#welcome .join-panel label{text-align:left;display:block}
#welcome .join-panel label[hidden]{display:none}
#welcome #entryForm{gap:8px;text-align:left}
#welcome #entrySubmit{font-size:18px;min-height:56px;border-radius:15px}
#welcome #toggleJoin{min-height:44px;background:#E4EBD8;border-radius:12px;margin-top:12px}
#welcome #resumeRoom{margin-top:10px}
.friend-list{list-style:none;margin:8px 0 24px;padding:0;display:grid;gap:10px}
.friend-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px;background:#EDF0E4;border-radius:12px;overflow-wrap:anywhere}
.friend-list li>div{display:flex;flex-wrap:wrap;gap:7px;align-items:center;justify-content:flex-end}
.friend-list button,.friend-list a{min-height:40px;padding:8px 12px;background:#426347;color:#FFFDF5;border-radius:8px;font:800 13px Nunito,sans-serif;text-decoration:none}
.friend-list button[data-friend-action=remove],.friend-list button[data-friend-action=decline]{background:#DDE5D0;color:#405A37}
.friend-hint{font-size:12px;color:#64705F;max-width:140px}
#friendAdd label{display:block;font-weight:800;font-size:13px;margin-bottom:8px}#friendsContent h3{font:500 22px Fredoka,sans-serif;color:#314735;margin:24px 0 10px}
#friendFeedback{margin-top:12px;color:#426347;font-size:14px;font-weight:800}#friendFeedback:empty{display:none}
@media(max-width:760px){
 body:not(.in-match) .topbar{min-height:72px;grid-template-columns:auto 1fr auto;height:72px;gap:10px;padding:8px 16px}
 body:not(.in-match) .topbar-actions{grid-column:2;grid-row:1;justify-self:center}
 body:not(.in-match) .topbar-actions .subtle{font-size:0;width:36px;height:40px;padding:7px}
 .topbar .home-profile{grid-column:3;grid-row:1}
 body:not(.in-match) .brand{font-size:22px}.topbar .brand-symbol{display:none!important}
 .topbar #accountEntry{max-width:155px}
 #welcome{min-height:calc(100svh - 172px);padding:0;gap:4px}
 #welcome .intro h1{font-size:37px}#welcome .sample-cards{height:158px;margin:16px 0 8px}
 #welcome .sample-cards .bean-card{display:flex!important;width:97px;height:135px;min-height:135px}
 #welcome .sample-cards .bean-card:nth-child(1){transform:rotate(-12deg) translate(8px,8px)}
 #welcome .sample-cards .bean-card:nth-child(2){transform:translateY(-7px)}
 #welcome .sample-cards .bean-card:nth-child(3){transform:rotate(12deg) translate(-8px,8px)}
 #welcome .sample-cards .bean-art svg{max-height:57px}
 #welcome .join-panel{padding:10px 12px 14px}
 #welcome .join-panel h2{font-size:20px;margin:3px 0 12px}
 .home-dock{bottom:max(8px,env(safe-area-inset-bottom));width:calc(100% - 20px);padding:5px;border-radius:18px}
 .home-dock .dock-button{min-height:54px;font-size:11px;gap:3px}
 .home-dock .dock-button::before{width:24px;height:24px}
}
@media(max-width:760px) and (max-height:740px){
 #welcome .intro h1{font-size:30px}#welcome .sample-cards{height:113px;margin:10px 0 6px}
 #welcome .sample-cards .bean-card{width:78px;height:103px;min-height:103px}
 #welcome .sample-cards .bean-art svg{max-height:37px}
 #welcome .join-panel{padding:6px 8px}#welcome .join-panel h2{font-size:18px;margin-bottom:8px}
 #welcome .join-panel .small-number{font-size:11px}#welcome #entrySubmit{min-height:48px;font-size:16px}
 #welcome #toggleJoin{margin-top:8px;min-height:40px}
 #welcome .join-panel input{min-height:42px;padding:8px 10px;margin-bottom:4px}
}

/* Partida: apenas configurações no topo; coleções ficam no menu inicial. */
body:not(.in-match) #settingsOpen{display:none}
body.in-match .topbar-actions>:not(#settingsOpen){display:none!important}
#settingsOpen svg{display:block;width:26px;height:26px}
#settingsMenu,#playerMenu{width:min(460px,calc(100vw - 24px))}
.volume-control{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin:20px 0;font-weight:700}
.volume-control input{width:100%;accent-color:#426347}
#settingsActions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.player-name-button{background:none;border:0;padding:4px 0;color:inherit;font:inherit;font-weight:800;text-align:left}
.player-name-button:hover{text-decoration:underline}
#playerFriendStatus{margin:12px 0 18px}

/* Ícone SVG não pode disputar largura com o pseudoícone vazio herdado. */
body.in-match #settingsOpen{display:flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;padding:8px;color:#314735;flex:0 0 44px}
body.in-match #settingsOpen::before{content:none;display:none}
body.in-match #settingsOpen svg{width:28px;height:28px;min-width:28px;flex:0 0 28px}

/* Cores dos vegetais na navegação principal. */
.home-dock #inventoryOpen::before{background-color:#ED8A27}
.home-dock #homeOpen::before{background-color:#EF4B3F}
.home-dock #friendsOpen::before{background-color:#8E44AD}
.equipped-preview h3{font:600 18px Fredoka,Nunito,sans-serif;margin:0 0 10px}
#equippedPreview{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:112px minmax(0,210px);justify-content:center;align-items:center;gap:24px;padding:18px;background:#F3EBD8;border-radius:16px}
#equippedPreview::before{content:'';position:absolute;inset:0;z-index:-1;background:var(--preview-effect,none) center/350px auto repeat;opacity:.22;pointer-events:none}
#equippedPreview .bean-card{width:112px;height:162px;min-height:162px;padding:8px 8px 12px;isolation:isolate;pointer-events:none}
#equippedPreview .bean-card .card-head{flex-shrink:0}
#equippedPreview .bean-card .bean-name{font-size:11px}
#equippedPreview .bean-card .bean-art{flex:1 1 0;min-height:0;height:auto;padding:0}
#equippedPreview .bean-card .bean-art svg{width:100%;height:100%;max-height:100%}
#equippedPreview .bean-card .bean-meter{flex:0 0 auto;margin-top:3px;padding-top:3px}
#equippedPreview .preview-card{position:relative;z-index:0}
#equippedPreview .has-border .bean-card::before{border-color:transparent}
#equippedPreview .has-border::after{content:'';position:absolute;inset:-4px;pointer-events:none;background:var(--preview-border) center/100% 100% no-repeat;padding:15px 9px 11px;border-radius:16px;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor}
#equippedPreview .garden-scene{height:122px}

#equippedPreview .garden-stats b{font-size:17px}
#equippedPreview .garden-stats small{font-size:9px}
#equippedPreview .garden-crop{width:58px;height:66px}
#equippedPreview .garden-name{font-size:12px}
@media(max-width:400px){#equippedPreview{grid-template-columns:100px minmax(0,1fr);gap:12px;padding:14px 10px}#equippedPreview .bean-card{width:100px}}

.home-dock #shopOpen::before{background:#C99313;mask:url('/icons/storefront.svg') center/contain no-repeat;-webkit-mask:url('/icons/storefront.svg') center/contain no-repeat}

/* Ajuda acompanha o nome da conta na abertura. */
body:not(.in-match) .topbar{grid-template-columns:auto minmax(0,1fr)}
body:not(.in-match) .topbar-actions{display:none}
body:not(.in-match) .topbar .home-profile{grid-column:2;grid-row:1;min-width:0}
.topbar .home-account{display:flex;align-items:center;justify-content:flex-end;gap:4px;min-width:0}
.topbar #rulesOpen{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:40px;min-height:40px;padding:7px;font-size:0;gap:0;background:transparent;border:0;box-shadow:none}
.topbar #rulesOpen::before{width:22px;height:22px}
.topbar #accountEntry{min-width:0;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:760px){body:not(.in-match) .topbar{gap:8px}.topbar #accountEntry{max-width:140px;font-size:11px}}

.recovery-code{display:block;overflow-wrap:anywhere;user-select:all;padding:12px 0;font-family:monospace}#accountMenu details{margin:16px 0}#accountMenu summary{cursor:pointer;font-weight:800}#accountMenu form label{display:block;margin:10px 0}#accountMenu form input{max-width:100%}

/* Pacotes e confirmação: usam as artes reais das coleções. */
.bundle-art{height:108px;display:grid;place-items:center;overflow:hidden}.bundle-art>svg,.bundle-art>img{width:100%;height:100%;max-height:108px;object-fit:contain}.bundle-art .sign-preview{width:100%}.bundle-grid article{display:flex;flex-direction:column;gap:6px}.bundle-grid button{margin-top:auto}.bundle-grid p{font-size:13px}.pack-icon{display:block;font-size:38px}.commerce-notice{padding:12px;border-radius:12px;background:#FFF0BD}.order-row{padding:16px 0;border-bottom:1px solid #DADFCC}.order-row small{display:block;overflow-wrap:anywhere}.order-row button,#commerceConfirm{min-height:44px;border-radius:12px;background:#426347;color:#FFF9EB;padding:10px 14px;margin-top:12px}#commerceConfirm{position:sticky;bottom:0;width:100%}#commercePreview{color:#314735}#commercePreview .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#commercePreview figure{border:0;background:#F3EBD8}#commercePreview img{max-width:100%}#commerceFeedback{color:#7C341F}.commerce-grid button:disabled,#commerceConfirm:disabled{opacity:.55;cursor:default}

.pace-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px;border:0;padding:0;margin:10px 0}.pace-choice legend{font-size:13px;margin-bottom:6px}.pace-choice label{padding:10px;background:#E9EDD9;border-radius:12px;font-size:14px;cursor:pointer}.pace-choice label:has(input:checked){background:#F4D46F}.pace-choice input{width:auto;min-height:0;display:inline}.pace-choice small{display:block;font-size:11px;margin-top:3px}.pace-choice[hidden]{display:none}.match-timer{font-size:12px;color:#314735;font-weight:800}#googleSignIn,#googleLinkForm button{background:#fff;color:#314735;border:1px solid #ADB4A2;border-radius:10px;min-height:44px;padding:10px 16px;margin:8px 0}#googleSignIn:disabled{opacity:.6}#googleStatus{font-size:13px;color:#53664D}

#googleSignIn{display:inline-flex;align-items:center;gap:12px;font-family:Arial,sans-serif;font-weight:500}#googleSignIn[hidden]{display:none}#googleSignIn img{display:block}
