/* Stage 3: navigation — Today · Calendar · (+) · Garden · Me (spec §5) */
#fab { display: none !important; }
.tabbar { align-items: end; overflow: visible; }
.tabbar button[aria-current="page"] { background: var(--accent-soft); box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--pine) 30%, transparent); }
.tabbar .tab-plus {
  justify-self: center; align-self: start; width: 64px; height: 64px; min-height: 64px; margin-top: -26px; padding: 0; border-radius: 22px;
  background: linear-gradient(#FFD969, var(--yellow)); color: #3D2A00; border: 3px solid var(--ink-outline);
  box-shadow: 0 5px 0 var(--ink-outline), 0 10px 18px rgba(0, 0, 0, .2); transform: rotate(-3deg);
}
.tabbar .tab-plus .ic { width: 32px; height: 32px; stroke-width: 3; }
.tabbar .tab-plus:active { transform: rotate(-3deg) translateY(4px); box-shadow: 0 1px 0 var(--ink-outline); }
.v122-back { display: inline-flex; align-items: center; gap: .2rem; min-height: 44px; padding: 0 .6rem 0 .2rem; margin: 0 0 .2rem -.2rem; border: 0; background: none; color: var(--pine); font: inherit; font-weight: 800; cursor: pointer; }
/* Garden: the game zone */
#view-garden > h2 { font: var(--t-game); font-size: 1.9rem; }
#view-garden .v122-intro { color: var(--muted); margin: -.3rem 0 .8rem; }
/* Me: tiles become rows grouped like phone settings */
#view-more .v112-grid { display: flex !important; flex-direction: column; gap: 0; background: var(--surface); border-radius: var(--r-m); box-shadow: var(--sh-card); overflow: hidden; }
#view-more .v112-grid > .v112-tile { display: flex !important; flex-direction: row !important; align-items: center; justify-content: flex-start !important; gap: .8rem; min-height: 56px; width: 100%; padding: .45rem 1rem !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; text-align: left; transform: none !important; }
#view-more .v112-grid > .v112-tile + .v112-tile { border-top: 1px solid var(--line) !important; }
#view-more .v112-grid > .v112-tile .stk { width: 34px; height: 34px; flex: 0 0 auto; margin: 0 !important; }
#view-more .v112-grid > .v112-tile .v112-label { font-size: 1.02rem; font-weight: 750; }
#view-more .v112-grid > .v112-tile::after { content: "›"; order: 3; margin-left: .5rem; color: var(--muted); font-size: 1.4rem; font-weight: 800; }
#view-more .v112-grid > .v112-tile .v112-badge { position: static; order: 2; margin-left: auto; }
#view-more .v112-grid > .v112-tile .v112-badge[hidden] ~ * , #view-more .v112-grid > .v112-tile .v112-label { order: 1; }
#view-more .v112-grid > .v112-tile .stk { order: 0; }
#view-more .v112-grid > .v112-tile:has(.v112-badge[hidden])::after, #view-more .v112-grid > .v112-tile:not(:has(.v112-badge))::after { margin-left: auto; }
#view-more .v112-grid > .v112-tile[hidden] { display: none !important; }
/* sheet «New» */
#v122-new { width: min(100%, 30rem); padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); border: 0; background: var(--surface); color: var(--ink); }
#v122-new::backdrop { background: rgba(0, 0, 0, .35); }
#v122-new h2 { margin: 0 0 .6rem; font: var(--t-title); }
#v122-new .v122-new-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: .6rem; }
#v122-new .v122-big { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .8rem .3rem; border-radius: var(--r-m); border: 0; background: var(--surface-2); color: var(--ink); font-weight: 800; cursor: pointer; }
#v122-new .v122-big .stk { width: 48px; height: 48px; }
#v122-new .v122-big:active { transform: scale(.96); }
@media (max-width: 600px) { #v122-new[open] { margin: auto auto 0; } }
@media (prefers-reduced-motion: reduce) { .tabbar .tab-plus:active, #v122-new .v122-big:active { transform: rotate(-3deg); } #v122-new .v122-big:active { transform: none; } }
html.less-motion .tabbar .tab-plus:active { transform: rotate(-3deg); }

/* Stage 4: calm Today */
.v122-slot-off { display: none !important; }
#view-today .day-title { display: inline-block; margin-right: .4rem; }
#v122-search { float: right; margin-top: -.2rem; }
#view-today #companion { position: relative; padding-right: 6.2rem; }
.v122-to-garden { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 .8rem; border: 0; border-radius: var(--r-full); background: var(--accent-soft); color: var(--pine); font-weight: 800; cursor: pointer; }
#relief { background: none !important; border: 0 !important; box-shadow: none !important; color: var(--muted); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
/* Stage 5: Garden as a game zone */
#view-garden { background: linear-gradient(180deg, var(--game-bg-1), var(--game-bg-2)); border-radius: var(--r-m); padding: var(--s4) var(--s3) var(--s5); color: #fff; }
#view-garden > h2 { color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); margin-top: 0; }
#view-garden > .v122-back { color: #fff; }
#view-garden .v122-intro { color: rgba(255, 255, 255, .8); }
#view-garden #world { margin-bottom: var(--s4); border-radius: var(--r-m); overflow: hidden; }
#view-garden .v112-group-title { color: var(--ink); }
#view-shop > h2, #view-badges > h2, #view-season > h2, #view-challenge > h2 { font: var(--t-game); }
/* Stage 7: motion */
@keyframes v122-pop { 0% { transform: scale(.9); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.tabbar button.v122-pop:not(#tab-plus) .stk-tab { animation: v122-pop var(--dur-mid, 320ms) var(--ease-spring, ease-out); }
#v122-new[open] { animation: v122-sheet var(--dur-mid, 320ms) var(--ease-out, ease-out); }
@keyframes v122-sheet { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tabbar button.v122-pop .stk-tab, #v122-new[open] { animation: none !important; } }
html.less-motion .tabbar button.v122-pop .stk-tab, html.less-motion #v122-new[open] { animation: none !important; }

/* v12.2 icon set: calm, same-colour boards so the garden icons carry the meaning */
:is(#view-more .v112-grid, #v122-new, .tabbar) .stk svg > rect:nth-of-type(1) { fill: #BFDCCB; }
:is(#view-more .v112-grid, #v122-new, .tabbar) .stk svg > rect:nth-of-type(2) { fill: #EEF8F2; }
html[data-theme="dark"] :is(#view-more .v112-grid, #v122-new, .tabbar) .stk svg > rect:nth-of-type(1) { fill: #0E241B; }
html[data-theme="dark"] :is(#view-more .v112-grid, #v122-new, .tabbar) .stk svg > rect:nth-of-type(2) { fill: #234536; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) :is(#view-more .v112-grid, #v122-new, .tabbar) .stk svg > rect:nth-of-type(1) { fill: #0E241B; }
  html:not([data-theme="light"]) :is(#view-more .v112-grid, #v122-new, .tabbar) .stk svg > rect:nth-of-type(2) { fill: #234536; }
}

/* Header: neutral bar with the multi-colour Hodion wordmark (shop themes no longer paint it) */
.site-header { --header-bg: var(--surface); --header-ink: var(--ink); background: var(--surface); border-bottom: 1px solid var(--line); }
.brand .wordmark { font-size: 1.45rem; font-weight: 900; letter-spacing: .01em; line-height: 1; }
.wordmark b { font-weight: 900; }
.wordmark .w1 { color: #0F6B52; } .wordmark .w2 { color: #B57A00; } .wordmark .w3 { color: #1C6FB8; }
.wordmark .w4 { color: #C2306E; } .wordmark .w5 { color: #C75A12; } .wordmark .w6 { color: #1F8A57; }
html[data-theme="dark"] .wordmark .w1 { color: #4FD69E; } html[data-theme="dark"] .wordmark .w2 { color: #FFC83D; } html[data-theme="dark"] .wordmark .w3 { color: #6BBEF5; }
html[data-theme="dark"] .wordmark .w4 { color: #F583B5; } html[data-theme="dark"] .wordmark .w5 { color: #FFA466; } html[data-theme="dark"] .wordmark .w6 { color: #7FE0A8; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .wordmark .w1 { color: #4FD69E; } html:not([data-theme="light"]) .wordmark .w2 { color: #FFC83D; } html:not([data-theme="light"]) .wordmark .w3 { color: #6BBEF5; }
  html:not([data-theme="light"]) .wordmark .w4 { color: #F583B5; } html:not([data-theme="light"]) .wordmark .w5 { color: #FFA466; } html:not([data-theme="light"]) .wordmark .w6 { color: #7FE0A8; }
}


/* v12.3: visible mode subtitles; empty-day action; no clipping at 360px */
.v11-modes { display: flex; flex-wrap: wrap; overflow-x: hidden; width: 100%; max-width: 100%; box-sizing: border-box; }
.v120-adv-body, #v120-advice { min-width: 0; max-width: 100%; }
.v11-chip.v11-mode { flex-direction: column; align-items: flex-start; justify-content: center; white-space: normal; height: auto; gap: 0.08rem; padding: 0.32rem 0.7rem; line-height: 1.15; max-width: 100%; }
.v11-mode-name { font-weight: 800; }
.v11-mode-sub { font-size: 0.72em; font-weight: 650; opacity: 0.8; line-height: 1.2; white-space: normal; }
.day-empty { flex-wrap: wrap; }
.day-empty-add { border: 0; background: none; color: var(--pine); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; padding: 0 0.2rem; }


/* v12.4: empty day-parts keep their name and a drop target, without a repeated sentence */
.pro-part.is-empty { min-height: 2.6rem; }
