/* v012 compact composition. Playfield/TV geometry remains untouched. */
.cx-machine-page{display:flex;flex-direction:column;height:100%;overflow:hidden;padding:8px 12px 12px}.cx-machine-head{display:flex;align-items:center;justify-content:space-between;flex:0 0 44px;max-width:480px;width:100%;margin:auto;color:#f7df9b;font-size:18px}.cx-machine-head button{width:44px;border:1px solid #a79061;border-radius:50%;background:#173d33cc;color:#f4dfa5;font-size:24px!important}.cx-machine-area{position:relative;flex:1 1 auto;min-height:0;width:100%;max-width:480px;margin:0 auto}.cx-machine{position:absolute;top:50%;left:50%;width:100%;height:100%;padding-top:0;max-width:none;margin:0;transform:translate(-50%,-50%)}.cx-machine-body{object-fit:contain}.cx-machine-page .cx-machine h1{display:none}.cx-ticket-line{flex:0 0 40px;display:flex;flex-direction:column;justify-content:center;margin:5px auto 8px}.cx-ticket-line strong{font-size:19px;color:#ffe8aa}.cx-ticket-line span{margin:3px 0 0;max-width:none;text-align:center;font-size:11px}.cx-machine-nav{flex:0 0 50px;width:100%;max-width:450px;margin:0 auto}.cx-machine-nav button{min-width:0;white-space:nowrap}.cx-open{top:auto;bottom:12%;min-height:50px;height:9%}.cx-display{top:25%;height:auto;padding-top:63%;width:42%;left:29%}.cx-display>.cx-card{position:absolute;top:0;left:0;width:100%;height:100%;padding-top:0}.cx-display .cx-name,.cx-display .cx-flowers,.cx-display .cx-grade{display:none}.cx-display:after{content:none;position:absolute;bottom:0;left:0;width:100%;text-align:center;color:#fff4c9;background:#183f30a8;font:10px/1.8 sans-serif}.cx-machine-page #cx-save-status:empty{display:none}.cx-machine-page #cx-save-status{flex:0 0 auto;max-height:38px;overflow:auto;margin:4px 0;font-size:11px}.cx-toolbar{display:flex;align-items:center;justify-content:space-between}.cx-toolbar>button{margin-right:8px;border:1px solid #b7a36d;border-radius:12px;background:#d5bf83;color:#3f4e32;padding:4px 12px;font:12px sans-serif}.cx-locked{background:#6b7c68;box-shadow:0 2px 5px #132c25;filter:none}.cx-locked .cx-card-image{filter:grayscale(1) brightness(0);transform:scale(.72);opacity:.58}.cx-locked:after{display:none}.cx-lock-veil{position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;color:#d7d0ab;font:13px sans-serif;background:linear-gradient(145deg,#cbd4b21c,#18382c33);padding-top:50%;pointer-events:none}.cx-locked .cx-name,.cx-locked .cx-grade,.cx-locked .cx-flowers{z-index:2}.cx-locked .cx-flowers{opacity:.35}.cx-locked .cx-name{font-size:12px}#cx-detail-card .cx-locked .cx-name{font-size:20px}.cx-v12-dialog{position:fixed;top:0;left:0;right:0;bottom:0;width:100%;height:100%;max-width:none;max-height:none;padding:0;border:0;margin:0;background:radial-gradient(ellipse at 50% 30%,#47614e,#153c32);color:#f6e1ad}.cx-v12-dialog::backdrop{background:#09251ff5}.cx-v12-panel{height:100%;overflow-y:auto;max-width:560px;margin:auto;padding:12px 18px 24px}.cx-v12-head{position:sticky;top:0;z-index:3;background:#214839ed;display:flex;align-items:center;justify-content:space-between;min-height:52px}.cx-v12-head h2{font-size:22px;margin:0}.cx-v12-dialog button,.cx-share-actions a{border:1px solid #bb9d67;border-radius:12px;background:linear-gradient(#96704a,#563e29);color:#ffedbb;min-height:44px;padding:8px 13px;font:14px sans-serif;cursor:pointer}.cx-v12-dialog button:disabled{opacity:.5}.cx-v12-copy{font:14px/1.9 sans-serif}.cx-v12-dialog .cx-v12-primary{background:linear-gradient(#f5d48b,#c9954d);color:#463b25;font-weight:bold}.cx-gift-card{width:76%;max-width:300px;display:block;margin:16px auto;box-shadow:0 0 24px #edda7b6b;border-radius:15px;object-fit:contain}.cx-gift-note{font:12px/1.6 sans-serif;color:#d5d5b5}.cx-v12-status{font:13px/1.7 sans-serif;min-height:24px}.cx-v12-actions{display:flex;flex-wrap:wrap;justify-content:center}.cx-v12-actions>*{margin:5px}.cx-share-image{width:100%;height:auto;display:block;border-radius:14px;margin:14px auto;box-shadow:0 8px 22px #08291f66}.cx-share-copy{font:13px/1.8 sans-serif;background:#102f2655;padding:12px;border-radius:12px;white-space:pre-line;user-select:text;-webkit-user-select:text}.cx-v12-periods{display:flex;margin:12px 0}.cx-v12-periods button{flex:1;margin:0 5px}.cx-v12-periods button[aria-pressed=true]{background:#d4b77c;color:#3b402b}.cx-rank-row{display:flex;justify-content:space-between;padding:14px 5px;border-bottom:1px solid #b6c29a44;font:14px sans-serif}.cx-rank-row span:nth-child(2){flex:1;padding:0 15px}.cx-rank-trigger{border:0;background:none;color:#f6dea1;font-size:11px;text-decoration:underline;padding:0 0 0 6px;min-height:28px}.cx-detail-share{display:flex;justify-content:center;margin:10px}.cx-detail-share button{border:1px solid #d0af77;border-radius:12px;background:#b4864d;color:#fff2c8;padding:8px 15px}.cx-gift-placeholder{width:70%;height:220px;display:flex;align-items:center;justify-content:center;border:1px solid #afad75;border-radius:15px;margin:15px auto;color:#e4daa7}
@media(max-height:700px){.cx-machine-page{padding-top:3px;padding-bottom:6px}.cx-machine-head{flex-basis:40px}.cx-ticket-line{margin:2px auto 5px;flex-basis:38px}.cx-machine-nav{flex-basis:46px}.cx-open{min-height:44px}.cx-open span{font-size:13px}}@media(prefers-reduced-motion:reduce){.cx-gift-card{animation:none}}

#view-cards.view{height:100vh;min-height:100vh}@supports(height:100dvh){#view-cards.view{height:100dvh;min-height:100dvh}}

#view-game .forest-best.has-rank{position:relative;padding-right:42px}#view-game .forest-best .cx-rank-trigger{position:absolute;right:0;top:50%;transform:translateY(-50%);height:32px;min-height:32px;min-width:40px;line-height:16px;padding:8px 2px;border:0;background:transparent;color:#704c2a;font:11px/16px sans-serif;text-decoration:underline}

/* A153 native body/standalone button, 1024x1536 authored coordinates. */
.cx-machine-page .cx-machine h1{display:flex;left:22%;top:7.7%;width:56%;height:6.9%;font-size:28px;line-height:1;margin:0;color:#53371c;text-shadow:0 1px #fff2bf;letter-spacing:1px}.cx-machine-page .cx-machine h1 span{color:#b44727}.cx-machine:before{content:'';position:absolute;left:31.3477%;top:21.7448%;width:40.1367%;height:50.0651%;background:radial-gradient(ellipse at center,#254c40,#112e29);border-radius:24px;z-index:-1}.cx-machine-page .cx-display{left:33.1055%;top:28.4831%;width:36.5234%;height:36.5234%;padding-top:0;overflow:hidden}.cx-machine-page .cx-open{left:28.5%;top:85.5%;bottom:auto;width:43%;height:46px;min-height:46px;border:0;border-radius:0;padding:0;background-color:transparent;background-repeat:no-repeat;background-position:center;background-size:contain;box-shadow:none}.cx-machine-page .cx-open span{display:flex;width:100%;height:100%;margin:0;border:0;border-radius:0;background:none;box-shadow:none;color:#583d22;text-shadow:0 1px #fff4c8;font-size:14px;font-weight:bold}.cx-machine-page .cx-open:active:not(:disabled){transform:translateY(3px)}@media(min-width:400px){.cx-machine-page .cx-machine h1{font-size:32px}}@media(max-height:700px){.cx-machine-page .cx-machine h1{font-size:26px}.cx-machine-page .cx-open span{font-size:12px}}

.cx-machine-page .cx-display{overflow:visible}.cx-machine-page .cx-display:after{bottom:-20px;background:transparent;color:#ead7a2;text-shadow:0 1px 3px #112d26}

/* Compact album navigation and equal-width machine shortcuts. */
.cx-machine-nav button { flex: 1 1 0; padding-left: 4px; padding-right: 4px; }
#cx-tabs, #cx-subtabs {
  display: flex;
  justify-content: center;
  max-width: 650px;
  margin: 5px auto 2px;
}
#cx-tabs button, #cx-subtabs button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 34px;
  margin: 0 2px;
  padding: 3px 2px;
  font-size: 12px;
  white-space: nowrap;
}
#cx-subtabs button {
  border: 1px solid #ad9361;
  border-radius: 8px;
  color: #f6e8bf;
  background: #203e34;
}
#cx-subtabs button[aria-pressed="true"] { color: #fff1c8; background: #87523c; }
#cx-subtabs[hidden], #cx-subtabs button[hidden] { display: none; }


.cx-machine-page .cx-mushroom-loop {
  top: 31%;
  left: 31%;
  width: 38%;
  height: 31%;
  filter: drop-shadow(0 0 12px #ffe3a44d);
}
.cx-mushroom-loop img {
  position: absolute;
  width: 62%;
  left: 19%;
  bottom: 12%;
}
.cx-loop-white { animation: cx-loop-merge 4s ease-in-out infinite both; }
.cx-loop-left { --start: -33%; --tilt: -9deg; }
.cx-loop-right { --start: 33%; --tilt: 9deg; }
.cx-loop-result { animation: cx-loop-result 4s ease-in-out infinite both; }
@keyframes cx-loop-merge {
  0%, 100% { opacity: 0; transform: translateX(var(--start)) translateY(12%); }
  10%, 22% { opacity: 1; transform: translateX(var(--start)) rotate(var(--tilt)); }
  37% { opacity: 1; transform: translateX(0) translateY(-22%) scale(.88); }
  41%, 99% { opacity: 0; transform: translateY(-20%) scale(.75); }
}
@keyframes cx-loop-result {
  0%, 35% { opacity: 0; transform: translateY(-20%) scale(.68); }
  42% { opacity: 1; transform: translateY(-28%) scale(1.14); }
  57% { opacity: 1; transform: translateY(0) scale(1.13,.92); }
  68%, 88% { opacity: 1; transform: translateY(-5%) scale(1.08); }
  97%, 100% { opacity: 0; transform: translateY(-10%) scale(.98); }
}
@media (prefers-reduced-motion: reduce) {
  .cx-mushroom-loop img { animation: none; }
  .cx-mushroom-loop .cx-loop-right, .cx-mushroom-loop .cx-loop-result { visibility: hidden; }
}
.cx-machine-page .cx-open {
  left: 31.5%;
  top: 84.8%;
  width: 37%;
  height: 8.8%;
  min-height: 44px;
  border: 2px solid #ffdc89;
  border-radius: 14px;
  background: linear-gradient(#a85331,#642d23);
  box-shadow: 0 3px 0 #522619,inset 0 1px 0 #ffdc8970;
}
.cx-machine-page .cx-open span {
  color: #fff1c9;
  text-shadow: 0 1px #3a2217;
}

#cx-grid { row-gap: 10px; }
#cx-grid .cx-slot { align-self: start; }
#cx-grid .cx-number { margin-top: 3px; }
#cx-grid .cx-state { min-height: 0; margin-top: 2px; }
.cx-detail-heading { text-align: left; }
.cx-detail-heading #cx-detail-name { margin: 0 0 3px; font-size: 20px; }
.cx-detail-heading #cx-detail-series { color: #d8cda3; }
#cx-dialog #cx-art-zone { margin-top: 6px; }
.cx-detail-info {
  width: min(100%, 340px);
  margin: 14px auto 0;
  padding: 10px 12px 8px;
  border-top: 1px solid #ccb78360;
}
.cx-detail-info #cx-detail-copy { margin: 4px auto 10px; }
.cx-detail-info #cx-detail-owned { margin: 0 0 4px; }
#cx-detail-owned:empty, #cx-award-line:empty, #cx-image-status:empty { display: none; }
#cx-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; }
#cx-detail-actions .cx-detail-share { margin: 0; }
.cx-detail-info .cx-rule { margin: 9px 0 0; }

.cx-detail-info #cx-award-line { margin: 0 0 5px; font-size: 17px; }
#cx-detail-actions { gap: 6px; flex-wrap: nowrap; }
#cx-detail-actions > [hidden] { display: none; }
#cx-detail-actions > div { margin: 0; min-width: 0; }
#cx-detail-actions button {
  min-height: 44px;
  padding: 6px 8px;
  font: 12px/1.35 sans-serif;
  white-space: nowrap;
}
#cx-detail-actions #cx-result-album {
  background: linear-gradient(#d3a262,#9e6a3f);
  color: #fff7db;
}

.home-gift-banner {
  position: absolute; z-index: 2; bottom: 8px; left: 5%; width: 90%;
  display: flex; align-items: center; padding: 6px 8px;
  color: #fff1c7; background: linear-gradient(#285447,#10382f);
  border: 2px solid #e8c279; border-radius: 15px;
  box-shadow: 0 4px 12px #071a14b3, inset 0 0 0 2px #ffe5a348;
}
.home-gift-banner > img { width: 36px; flex: 0 0 36px; border-radius: 4px; transform: rotate(-6deg); }
.home-gift-copy { flex: 1; margin: 0 6px 0 8px; min-width: 0; }
.home-gift-copy strong,.home-gift-copy span { display: block; }
.home-gift-copy strong { font-size: 16px; }
.home-gift-copy span { font-size: 11px; color: #e2d5ad; margin-top: 3px; }
.home-gift-actions { flex: 0 0 96px; }
.home-gift-actions button {
  display: block; width: 100%; min-height: 36px; padding: 4px;
  border: 1px solid #fff2c6; border-radius: 11px;
  background: linear-gradient(#ffe3a0,#dcac63); color: #4e321b;
  font: bold 13px sans-serif;
}
.home-gift-actions #home-share-game {
  margin-top: 4px; background: #193c32; color: #f3e3b6; border-color: #b9a56d;
}
