/* ==========================================================================
   FERN -- Greenhouse Hub (gh-*)
   Combined plant showcase + nursery -- the main game hub screen
   Layout: hero zone (top) + scrollable details panel + fixed filmstrip
   ========================================================================== */

.gh-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0 -12px;
    width: calc(100% + 24px);
    overflow: hidden;
}

.gh-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* -- Tabs ----------------------------------------------------------------- */

.gh-tabs {
    display: flex;
    flex-shrink: 0;
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid var(--border-dark);
    z-index: 10;
    position: relative;
}

.gh-tab {
    flex: 1;
    font-family: var(--font-pixel);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    background: transparent;
    border: none;
    padding: 12px;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
    min-height: 44px;
}

.gh-tab:hover { color: var(--text-dim); }

.gh-tab.active { color: var(--text-bright); }

.gh-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(208,160,48,0.4);
}

.gh-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    margin-left: 6px;
    font-family: var(--font-pixel);
    font-size: 8px;
    color: #fff;
    background: var(--green);
    border-radius: 8px;
    line-height: 1;
    vertical-align: middle;
    box-shadow: 0 0 6px rgba(104,168,88,0.4);
    animation: badge-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes badge-pulse {
    from { box-shadow: 0 0 4px rgba(104,168,88,0.3); }
    to { box-shadow: 0 0 10px rgba(104,168,88,0.6); }
}

/* ==========================================================================
   SHOWCASE -- Full layout container
   ========================================================================== */

.gh-showcase {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg-darkest);
}

/* ==========================================================================
   HERO ZONE -- Full screen, plant is the scene
   ========================================================================== */

.gh-hero-wrap {
    position: absolute;
    inset: 0;
    bottom: 56px;
}

.gh-hero {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 110px;
}

/* -- Ambient background --------------------------------------------------- */

.gh-ambient {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.rarity-ambient-common {
    background:
        radial-gradient(ellipse at 50% 40%, rgba(138,120,96,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 80%, rgba(60,48,30,0.06) 0%, transparent 50%);
}
.rarity-ambient-uncommon {
    background:
        radial-gradient(ellipse at 50% 40%, rgba(104,168,88,0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 75%, rgba(58,104,48,0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 25% 30%, rgba(104,168,88,0.04) 0%, transparent 40%);
}
.rarity-ambient-rare {
    background:
        radial-gradient(ellipse at 50% 40%, rgba(64,112,160,0.14) 0%, transparent 55%),
        radial-gradient(ellipse at 30% 70%, rgba(40,80,130,0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 75% 25%, rgba(64,112,160,0.05) 0%, transparent 40%);
}
.rarity-ambient-epic {
    background:
        radial-gradient(ellipse at 50% 40%, rgba(112,80,160,0.16) 0%, transparent 55%),
        radial-gradient(ellipse at 25% 65%, rgba(90,60,140,0.1) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 30%, rgba(130,100,180,0.06) 0%, transparent 40%);
}
.rarity-ambient-legendary {
    background:
        radial-gradient(ellipse at 50% 40%, rgba(208,160,48,0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(180,130,30,0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 75% 25%, rgba(232,192,64,0.06) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 90%, rgba(208,160,48,0.05) 0%, transparent 30%);
    animation: legendary-ambient 4s ease-in-out infinite alternate;
}

@keyframes legendary-ambient {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

.gh-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
    pointer-events: none;
}

.gh-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

.rarity-particles-legendary {
    background-image:
        radial-gradient(1.5px 1.5px at 20% 30%, rgba(232,192,64,0.6) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 60% 20%, rgba(232,192,64,0.4) 0%, transparent 100%),
        radial-gradient(2px 2px at 80% 50%, rgba(232,192,64,0.5) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 40% 70%, rgba(232,192,64,0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 15% 60%, rgba(232,192,64,0.4) 0%, transparent 100%),
        radial-gradient(2px 2px at 90% 35%, rgba(232,192,64,0.3) 0%, transparent 100%);
    animation: particle-drift 8s ease-in-out infinite alternate;
}
.rarity-particles-epic {
    background-image:
        radial-gradient(1.5px 1.5px at 25% 35%, rgba(130,100,180,0.5) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 70% 25%, rgba(130,100,180,0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 50% 65%, rgba(130,100,180,0.4) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 85% 55%, rgba(130,100,180,0.3) 0%, transparent 100%);
    animation: particle-drift 10s ease-in-out infinite alternate;
}
.rarity-particles-rare {
    background-image:
        radial-gradient(1.5px 1.5px at 30% 40%, rgba(80,130,180,0.4) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 65% 30%, rgba(80,130,180,0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 45% 60%, rgba(80,130,180,0.3) 0%, transparent 100%);
    animation: particle-drift 12s ease-in-out infinite alternate;
}

@keyframes particle-drift {
    from { transform: translateY(0) translateX(0); }
    to { transform: translateY(-8px) translateX(4px); }
}

/* -- Rarity badge: top-left ----------------------------------------------- */

.gh-rarity-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    padding: 6px 14px;
    font-family: var(--font-pixel);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.rarity-color-common    { color: var(--rarity-common); border-color: rgba(138,120,96,0.4); }
.rarity-color-uncommon  { color: var(--rarity-uncommon); border-color: rgba(104,168,88,0.4); text-shadow: 0 0 8px rgba(104,168,88,0.3); }
.rarity-color-rare      { color: var(--rarity-rare); border-color: rgba(64,112,160,0.4); text-shadow: 0 0 8px rgba(64,112,160,0.3); }
.rarity-color-epic      { color: var(--rarity-epic); border-color: rgba(112,80,160,0.4); text-shadow: 0 0 8px rgba(112,80,160,0.3); }
.rarity-color-legendary {
    color: var(--rarity-legendary);
    border-color: rgba(208,160,48,0.5);
    text-shadow: 0 0 10px rgba(208,160,48,0.4);
    box-shadow: 0 0 12px rgba(208,160,48,0.15);
}

/* -- Gen badge: top right ------------------------------------------------- */

.gh-gen-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    font-family: var(--font-pixel);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.06);
}

/* -- Daily bonus badge: top center ---------------------------------------- */

.gh-bonus-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    font-family: var(--font-pixel);
    font-size: 8px;
    color: var(--gold-light);
    background: rgba(208,160,48,0.1);
    border-left: 1px solid var(--border-dark);
    cursor: pointer;
    animation: bonus-pulse 2s ease-in-out infinite alternate;
}
.gh-bonus-badge svg { width: 14px; height: 14px; color: var(--gold); }

@keyframes bonus-pulse {
    from { box-shadow: 0 0 6px rgba(208,160,48,0.2); }
    to { box-shadow: 0 0 14px rgba(208,160,48,0.5); }
}

/* -- Sprite stage: container for aura + sprite ---------------------------- */

.gh-sprite-stage {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.gh-sprite-stage .gh-effect-canvas {
    position: absolute !important;
    bottom: auto !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 240px !important;
    height: 320px !important;
    pointer-events: none;
    image-rendering: pixelated;
}

/* Effect aura: radial glow behind the plant */
.gh-aura {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    z-index: 0;
}

.gh-aura-buff {
    opacity: 1;
    animation: aura-pulse 3s ease-in-out infinite alternate;
}
.gh-aura-debuff {
    opacity: 1;
    animation: aura-pulse-debuff 3s ease-in-out infinite alternate;
}

.gh-aura-common    { background: radial-gradient(circle, rgba(138,120,96,0.1) 0%, transparent 70%); }
.gh-aura-uncommon  { background: radial-gradient(circle, rgba(104,168,88,0.2) 0%, rgba(104,168,88,0.06) 40%, transparent 70%); }
.gh-aura-rare      { background: radial-gradient(circle, rgba(64,112,160,0.25) 0%, rgba(64,112,160,0.08) 40%, transparent 70%); }
.gh-aura-epic      { background: radial-gradient(circle, rgba(112,80,160,0.28) 0%, rgba(112,80,160,0.1) 40%, transparent 70%); }
.gh-aura-legendary { background: radial-gradient(circle, rgba(208,160,48,0.3) 0%, rgba(208,160,48,0.1) 40%, transparent 65%); }

.gh-aura-ring {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1.5px dashed transparent;
    pointer-events: none;
    z-index: 0;
    animation: aura-ring-spin 12s linear infinite;
}

.gh-aura-ring-uncommon  { border-color: rgba(104,168,88,0.18); box-shadow: 0 0 24px rgba(104,168,88,0.1); }
.gh-aura-ring-rare      { border-color: rgba(64,112,160,0.22); box-shadow: 0 0 24px rgba(64,112,160,0.12); }
.gh-aura-ring-epic      { border-color: rgba(112,80,160,0.22); box-shadow: 0 0 28px rgba(112,80,160,0.12); }
.gh-aura-ring-legendary { border-color: rgba(208,160,48,0.28); box-shadow: 0 0 36px rgba(208,160,48,0.15), inset 0 0 24px rgba(208,160,48,0.06); }

@keyframes aura-pulse {
    0% { transform: scale(0.95); opacity: 0.6; }
    100% { transform: scale(1.08); opacity: 1; }
}

@keyframes aura-pulse-debuff {
    0% { transform: scale(0.95); opacity: 0.5; }
    100% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes aura-ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* -- Plant sprite --------------------------------------------------------- */

.gh-plant-sprite {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hero-float 5s ease-in-out infinite;
}

.gh-plant-sprite .plant-sprite-frame {
    width: 180px !important;
    height: 180px !important;
}
.gh-plant-sprite .plant-sprite-frame img {
    image-rendering: pixelated;
}

.rarity-glow-common    { filter: drop-shadow(0 6px 20px rgba(0,0,0,0.6)); }
.rarity-glow-uncommon  { filter: drop-shadow(0 0 20px rgba(104,168,88,0.25)) drop-shadow(0 6px 20px rgba(0,0,0,0.5)); }
.rarity-glow-rare      { filter: drop-shadow(0 0 24px rgba(64,112,160,0.3)) drop-shadow(0 6px 20px rgba(0,0,0,0.5)); }
.rarity-glow-epic      { filter: drop-shadow(0 0 28px rgba(112,80,160,0.35)) drop-shadow(0 6px 20px rgba(0,0,0,0.5)); }
.rarity-glow-legendary { filter: drop-shadow(0 0 32px rgba(208,160,48,0.4)) drop-shadow(0 0 60px rgba(208,160,48,0.15)) drop-shadow(0 6px 20px rgba(0,0,0,0.5)); }

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.gh-ground-shadow {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 12px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.4) 0%, transparent 70%);
    z-index: 1;
    animation: shadow-pulse 5s ease-in-out infinite;
}

@keyframes shadow-pulse {
    0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 1; }
    50% { transform: translateX(-50%) scaleX(0.85); opacity: 0.7; }
}

/* -- Nameplate: below sprite ---------------------------------------------- */

.gh-nameplate {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    white-space: nowrap;
}

.gh-plant-name {
    display: block;
    font-family: var(--font-pixel);
    font-size: 14px;
    color: var(--text-bright);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0,0,0,0.8), 0 2px 4px rgba(0,0,0,0.6);
    margin-bottom: 6px;
}

.rarity-name-legendary .gh-plant-name {
    color: var(--gold-light);
    text-shadow: 0 0 20px rgba(208,160,48,0.4), 0 0 40px rgba(208,160,48,0.15), 0 2px 4px rgba(0,0,0,0.6);
}
.rarity-name-epic .gh-plant-name {
    color: #c0a0e8;
    text-shadow: 0 0 16px rgba(112,80,160,0.35), 0 2px 4px rgba(0,0,0,0.6);
}
.rarity-name-rare .gh-plant-name {
    color: #80b8e0;
    text-shadow: 0 0 14px rgba(64,112,160,0.3), 0 2px 4px rgba(0,0,0,0.6);
}

.gh-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.gh-stars svg {
    width: 16px;
    height: 16px;
    color: var(--gold);
    filter: drop-shadow(0 0 4px rgba(208,160,48,0.5));
}

/* -- Edge navigation arrows ----------------------------------------------- */

.gh-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.gh-nav-prev { left: 0; border-right: 1px solid rgba(255,255,255,0.06); }
.gh-nav-next { right: 0; border-left: 1px solid rgba(255,255,255,0.06); }
.gh-nav-arrow:hover:not(:disabled) { background: rgba(0,0,0,0.5); color: var(--text-bright); }
.gh-nav-arrow:active:not(:disabled) { background: rgba(0,0,0,0.6); }
.gh-nav-arrow:disabled { opacity: 0.15; cursor: default; }
.gh-nav-arrow svg { width: 28px; height: 28px; }

/* ==========================================================================
   HUD OVERLAY -- Compact stats bar at bottom of hero
   ========================================================================== */

/* --- HUD base --- */
.gh-hud {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.72) 100%);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.gh-hud-top {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px;
}
.gh-hud-common    { border-top-color: rgba(138,120,96,0.15); }
.gh-hud-uncommon  { border-top-color: rgba(104,168,88,0.2); background: linear-gradient(180deg, rgba(104,168,88,0.06) 0%, rgba(0,0,0,0.65) 40%); }
.gh-hud-rare      { border-top-color: rgba(64,112,160,0.25); background: linear-gradient(180deg, rgba(64,112,160,0.06) 0%, rgba(0,0,0,0.65) 40%); }
.gh-hud-epic      { border-top-color: rgba(112,80,160,0.25); background: linear-gradient(180deg, rgba(112,80,160,0.06) 0%, rgba(0,0,0,0.65) 40%); }
.gh-hud-legendary { border-top-color: rgba(208,160,48,0.3); background: linear-gradient(180deg, rgba(208,160,48,0.08) 0%, rgba(0,0,0,0.65) 40%); }

/* --- VA stat block --- */
.gh-hud-va {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-right: 14px;
}

.gh-hud-va-num {
    font-family: var(--font-pixel);
    font-size: 28px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* Rarity-colored VA numbers */
.rarity-text-common    { color: var(--text-dim); text-shadow: 0 0 6px rgba(138,120,96,0.2); }
.rarity-text-uncommon  { color: var(--green-light); text-shadow: 0 0 10px rgba(104,168,88,0.35); }
.rarity-text-rare      { color: #80b8e0; text-shadow: 0 0 10px rgba(64,112,160,0.35); }
.rarity-text-epic      { color: #c0a0e8; text-shadow: 0 0 12px rgba(112,80,160,0.35); }
.rarity-text-legendary { color: var(--gold-light); text-shadow: 0 0 14px rgba(208,160,48,0.4), 0 0 4px rgba(208,160,48,0.2); }

.gh-hud-va-sub {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 50px;
}

.gh-hud-va-label {
    font-family: var(--font-pixel);
    font-size: 7px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Gauge bar --- */
.gh-gauge {
    height: 5px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}
.gh-hud .gh-gauge { height: 4px; }

.gh-gauge-fill {
    height: 100%;
    transition: width 0.8s ease-out;
}
.rarity-gauge-common    { background: linear-gradient(90deg, var(--rarity-common), var(--text-dim)); }
.rarity-gauge-uncommon  { background: linear-gradient(90deg, var(--green-dark), var(--green-light)); box-shadow: 0 0 6px rgba(104,168,88,0.3); }
.rarity-gauge-rare      { background: linear-gradient(90deg, var(--blue), #80b8e0); box-shadow: 0 0 6px rgba(64,112,160,0.3); }
.rarity-gauge-epic      { background: linear-gradient(90deg, var(--purple), #c0a0e8); box-shadow: 0 0 6px rgba(112,80,160,0.3); }
.rarity-gauge-legendary { background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); box-shadow: 0 0 8px rgba(208,160,48,0.4); }

/* --- Divider --- */
.gh-hud-divider {
    width: 1px;
    align-self: stretch;
    margin: 2px 0;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.12), transparent);
    flex-shrink: 0;
}

/* --- Info block (type, rarity, effects) --- */
.gh-hud-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 14px;
    justify-content: center;
}

.gh-hud-info-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-pixel);
    font-size: 8px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
}

.gh-meta-icon {
    display: flex;
    align-items: center;
    opacity: 0.7;
}
.gh-meta-icon svg { width: 14px; height: 14px; }

/* --- Rarity pill --- */
.gh-hud-rarity-pill {
    font-family: var(--font-pixel);
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 2px 8px;
    border-radius: 3px;
}
.rarity-pill-common    { color: var(--text-dim); background: rgba(138,120,96,0.15); border: 1px solid rgba(138,120,96,0.2); }
.rarity-pill-uncommon  { color: var(--green-light); background: rgba(104,168,88,0.12); border: 1px solid rgba(104,168,88,0.25); }
.rarity-pill-rare      { color: #80b8e0; background: rgba(64,112,160,0.12); border: 1px solid rgba(64,112,160,0.25); }
.rarity-pill-epic      { color: #c0a0e8; background: rgba(112,80,160,0.12); border: 1px solid rgba(112,80,160,0.25); }
.rarity-pill-legendary { color: var(--gold-light); background: rgba(208,160,48,0.12); border: 1px solid rgba(208,160,48,0.3); box-shadow: 0 0 6px rgba(208,160,48,0.1); }

/* --- Effect pill chips (full-width bottom row) --- */
.gh-hud > .gh-hud-fx-row {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding: 7px 16px 8px;
}

.gh-hud-fx-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.gh-hud-fx-pill {
    font-family: var(--font-pixel);
    font-size: 7px;
    letter-spacing: 0.3px;
    padding: 3px 8px;
    border-radius: 3px;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gh-fx-pill-buff {
    color: #b8e8a0;
    background: rgba(104,168,88,0.15);
    border: 1px solid rgba(104,168,88,0.3);
    box-shadow: 0 0 4px rgba(104,168,88,0.1);
}
.gh-fx-pill-debuff {
    color: #e8a0a0;
    background: rgba(180,60,60,0.15);
    border: 1px solid rgba(180,60,60,0.3);
    box-shadow: 0 0 4px rgba(180,60,60,0.1);
}
.gh-fx-pill-empty {
    color: var(--text-muted);
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.1);
}

/* --- HUD action buttons --- */
.gh-hud-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
    padding-left: 10px;
    align-items: center;
}

.gh-hud-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
}
.gh-hud-btn:hover { color: var(--text-bright); border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.08); }
.gh-hud-btn:active { transform: scale(0.93); }
.gh-hud-btn svg { width: 14px; height: 14px; }

.gh-hud-btn-detail {
    padding: 7px 14px;
    border-radius: 4px;
    font-family: var(--font-pixel);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gh-hud-btn-label {
    line-height: 1;
}

/* Rarity-themed detail buttons */
.gh-hud-btn-common    { color: var(--text-dim); border-color: rgba(138,120,96,0.25); background: rgba(138,120,96,0.08); }
.gh-hud-btn-uncommon  { color: var(--green-light); border-color: rgba(104,168,88,0.3); background: rgba(104,168,88,0.1); }
.gh-hud-btn-rare      { color: #80b8e0; border-color: rgba(64,112,160,0.3); background: rgba(64,112,160,0.1); }
.gh-hud-btn-epic      { color: #c0a0e8; border-color: rgba(112,80,160,0.3); background: rgba(112,80,160,0.1); }
.gh-hud-btn-legendary { color: var(--gold-light); border-color: rgba(208,160,48,0.35); background: rgba(208,160,48,0.1); box-shadow: 0 0 8px rgba(208,160,48,0.1); }

.gh-hud-btn-common:hover    { background: rgba(138,120,96,0.15); border-color: rgba(138,120,96,0.4); }
.gh-hud-btn-uncommon:hover  { background: rgba(104,168,88,0.18); border-color: rgba(104,168,88,0.45); box-shadow: 0 0 6px rgba(104,168,88,0.15); }
.gh-hud-btn-rare:hover      { background: rgba(64,112,160,0.18); border-color: rgba(64,112,160,0.45); box-shadow: 0 0 6px rgba(64,112,160,0.15); }
.gh-hud-btn-epic:hover      { background: rgba(112,80,160,0.18); border-color: rgba(112,80,160,0.45); box-shadow: 0 0 6px rgba(112,80,160,0.15); }
.gh-hud-btn-legendary:hover { background: rgba(208,160,48,0.18); border-color: rgba(208,160,48,0.5); box-shadow: 0 0 10px rgba(208,160,48,0.2); }

.gh-hud-btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 4px;
}
.gh-hud-btn-icon svg { width: 16px; height: 16px; }

/* ==========================================================================
   DETAIL DRAWER -- Slide-up overlay for effects + actions
   ========================================================================== */

.gh-drawer-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(0,0,0,0);
    transition: background 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gh-drawer-overlay.gh-drawer-open {
    background: rgba(0,0,0,0.5);
}

.gh-drawer-overlay.gh-drawer-closing {
    background: rgba(0,0,0,0);
}

.gh-drawer {
    background: var(--bg-dark);
    border-top: 2px solid var(--border-mid);
    max-height: 75%;
    overflow-y: auto;
    padding: 0 var(--spacing-md) var(--spacing-lg);
    transform: translateY(100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--border-mid) transparent;
}

.gh-drawer-open .gh-drawer {
    transform: translateY(0);
}

.gh-drawer-closing .gh-drawer {
    transform: translateY(100%);
    transition: transform 0.2s ease-in;
}

.gh-drawer-handle {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    margin: 10px auto 14px;
}

.gh-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.gh-drawer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-pixel);
    font-size: 12px;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gh-drawer-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.15s;
}
.gh-drawer-close:hover { color: var(--text-bright); background: rgba(255,255,255,0.08); }

/* Drawer stats grid */
.gh-drawer-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: var(--spacing-lg);
}

.gh-drawer-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.04);
}

.gh-drawer-stat-val {
    font-family: var(--font-pixel);
    font-size: 14px;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.gh-drawer-stat-label {
    font-family: var(--font-pixel);
    font-size: 7px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gh-drawer-stat .gh-gauge {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}

/* Drawer effects & actions */
.gh-drawer-effects {
    margin-bottom: var(--spacing-lg);
}

.gh-drawer-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: var(--spacing-md);
}

/* ==========================================================================
   EFFECTS SECTION -- In the details panel
   ========================================================================== */

.gh-effects-section {
    margin-bottom: var(--spacing-lg);
}

.gh-section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-pixel);
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--spacing-sm);
}
.gh-section-label svg { width: 14px; height: 14px; color: var(--gold); }

.gh-effects-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gh-effect-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 3px solid var(--border-mid);
    padding: 10px 14px;
    min-height: 52px;
}
.gh-effect-buff  { border-left-color: var(--green); }
.gh-effect-debuff { border-left-color: var(--red); }
.gh-effect-empty {
    border-left-color: rgba(255,255,255,0.06);
    opacity: 0.4;
    border-style: dashed;
    border-left-style: solid;
}

.gh-effect-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gh-effect-name {
    font-family: var(--font-pixel);
    font-size: 10px;
    color: var(--text-bright);
}

.gh-effect-pips { display: flex; gap: 3px; flex-shrink: 0; }

.gh-pip {
    width: 7px;
    height: 7px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
}
.gh-pip-on {
    background: var(--green);
    border-color: var(--green-light);
    box-shadow: 0 0 4px rgba(104,168,88,0.5);
}

.gh-effect-desc {
    font-family: var(--font-pixel);
    font-size: 8px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 6px;
}

/* ==========================================================================
   ACTION BUTTONS -- Horizontal row in details panel
   ========================================================================== */

.gh-actions-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.gh-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-family: var(--font-pixel);
    font-size: 9px;
    color: var(--text-dim);
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 44px;
}
.gh-action-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.gh-action-btn:hover { color: var(--text-bright); border-color: rgba(255,255,255,0.15); background: rgba(0,0,0,0.5); }
.gh-action-btn:active { transform: scale(0.96); }

.gh-action-primary {
    color: var(--gold-light);
    border-color: rgba(208,160,48,0.3);
    background: rgba(208,160,48,0.08);
}
.gh-action-primary:hover {
    border-color: rgba(208,160,48,0.5);
    background: rgba(208,160,48,0.15);
    box-shadow: 0 0 10px rgba(208,160,48,0.15);
}

/* ==========================================================================
   NURSERY TAB (nrs-*) -- Full atmospheric garden scene
   ========================================================================== */

.nrs-scene {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: var(--bg-darkest);
    padding: 0 0 var(--spacing-xl);
}

/* -- Header --------------------------------------------------------------- */

.nrs-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-sm);
}

.nrs-title {
    font-family: var(--font-pixel);
    font-size: 14px;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nrs-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nrs-badge {
    font-family: var(--font-pixel);
    font-size: 8px;
    padding: 3px 10px;
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nrs-badge-ready {
    color: var(--green-light);
    border-color: rgba(104,168,88,0.4);
    background: rgba(104,168,88,0.1);
    animation: nrs-ready-badge 1.5s ease-in-out infinite alternate;
}
.nrs-badge-growing {
    color: var(--text-dim);
    border-color: rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}
.nrs-badge-seeds {
    color: var(--gold);
    border-color: rgba(208,160,48,0.3);
    background: rgba(208,160,48,0.06);
}

@keyframes nrs-ready-badge {
    from { box-shadow: 0 0 4px rgba(104,168,88,0.2); }
    to { box-shadow: 0 0 10px rgba(104,168,88,0.5); }
}

/* -- Slots container ------------------------------------------------------ */

.nrs-slots {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-md);
}

/* -- Individual plot ------------------------------------------------------- */

.nrs-plot {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid var(--border-dark);
    background: rgba(0,0,0,0.25);
    min-height: 80px;
}
.nrs-plot:hover { border-color: var(--border-mid); }
.nrs-plot:active { transform: scale(0.98); }

.nrs-plot-ambient {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.nrs-plot-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
}

/* -- Empty / Locked plots ------------------------------------------------- */

.nrs-plot-empty {
    border-style: dashed;
    border-color: rgba(255,255,255,0.1);
}
.nrs-plot-empty:hover { border-color: rgba(255,255,255,0.2); }

.nrs-plot-empty .nrs-plot-inner,
.nrs-plot-locked .nrs-plot-inner {
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    padding: var(--spacing-lg) var(--spacing-md);
}

.nrs-plot-locked {
    opacity: 0.35;
    border-style: dotted;
    border-color: rgba(255,255,255,0.08);
}

.nrs-plot-icon {
    opacity: 0.4;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nrs-plot-icon svg { color: var(--text-muted); }
.nrs-plot-locked .nrs-plot-icon { opacity: 0.3; }

.nrs-plot-label {
    font-family: var(--font-pixel);
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nrs-plot-cost {
    font-family: var(--font-pixel);
    font-size: 9px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.nrs-plot-cost svg { width: 12px; height: 12px; }

/* -- Growing / Ready plots ------------------------------------------------ */

.nrs-plot-sprite {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hero-float 6s ease-in-out infinite;
}
.nrs-plot-sprite .plant-sprite-frame {
    width: 72px !important;
    height: 72px !important;
}
.nrs-plot-sprite .plant-sprite-frame img { image-rendering: pixelated; }

.nrs-plot-info {
    flex: 1;
    min-width: 0;
}

.nrs-plot-name {
    font-family: var(--font-pixel);
    font-size: 11px;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nrs-plot-rarity {
    font-family: var(--font-pixel);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nrs-plot-progress {
    flex: 1;
    min-width: 0;
}

.nrs-plot-timer {
    font-family: var(--font-pixel);
    font-size: 12px;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
    margin-bottom: 6px;
}

.nrs-plot-bar {
    height: 6px;
    background: rgba(0,0,0,0.4);
    overflow: hidden;
    margin-bottom: 4px;
}
.nrs-plot-bar-fill {
    height: 100%;
    transition: width 1s linear;
}

.nrs-plot-pct {
    font-family: var(--font-pixel);
    font-size: 8px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Rarity borders for growing/ready */
.rarity-border-common    { border-color: rgba(138,120,96,0.3); }
.rarity-border-uncommon  { border-color: rgba(104,168,88,0.35); }
.rarity-border-rare      { border-color: rgba(64,112,160,0.4); }
.rarity-border-epic      { border-color: rgba(112,80,160,0.4); }
.rarity-border-legendary { border-color: rgba(208,160,48,0.5); }

/* Growing animation */
.nrs-plot-growing {
    animation: nrs-grow-pulse 3s ease-in-out infinite;
}

@keyframes nrs-grow-pulse {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: inset 0 0 20px rgba(104,168,88,0.06), 0 0 10px rgba(104,168,88,0.1); }
}

/* Ready glow */
.nrs-plot-ready {
    box-shadow: 0 0 16px rgba(104,168,88,0.35), inset 0 0 12px rgba(104,168,88,0.08);
    animation: nrs-ready-glow 1.5s ease-in-out infinite alternate;
}

.nrs-plot-harvest {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-pixel);
    font-size: 11px;
    color: var(--green-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 8px rgba(104,168,88,0.4);
    animation: nrs-harvest-text 1.5s ease-in-out infinite alternate;
}
.nrs-plot-harvest svg { width: 16px; height: 16px; color: var(--green-light); }

@keyframes nrs-ready-glow {
    from { box-shadow: 0 0 10px rgba(104,168,88,0.25), inset 0 0 8px rgba(104,168,88,0.05); }
    to { box-shadow: 0 0 22px rgba(104,168,88,0.5), inset 0 0 16px rgba(104,168,88,0.12); }
}

@keyframes nrs-harvest-text {
    from { opacity: 0.8; }
    to { opacity: 1; text-shadow: 0 0 12px rgba(104,168,88,0.6); }
}

/* -- Seed hint bar -------------------------------------------------------- */

.nrs-seed-hint {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-pixel);
    font-size: 9px;
    color: var(--text-dim);
    padding: var(--spacing-sm) var(--spacing-md);
    margin: var(--spacing-md) var(--spacing-md) 0;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    justify-content: center;
}
.nrs-seed-hint svg { width: 16px; height: 16px; flex-shrink: 0; }

.nrs-hint-link {
    color: var(--gold);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.nrs-hint-link:hover { color: var(--gold-light); }

/* ==========================================================================
   FILMSTRIP -- Fixed bottom thumbnail carousel
   ========================================================================== */

.gh-filmstrip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 70%, transparent 100%);
    overflow-x: auto;
    scrollbar-width: none;
    z-index: 8;
}
.gh-filmstrip::-webkit-scrollbar { display: none; }

.gh-strip-count {
    font-family: var(--font-pixel);
    font-size: 9px;
    color: var(--text-muted);
    flex-shrink: 0;
    min-width: 44px;
    letter-spacing: 0.5px;
}

.gh-thumb {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: all 0.15s;
    overflow: hidden;
    opacity: 0.6;
}
.gh-thumb:hover { opacity: 0.9; border-color: rgba(255,255,255,0.12); }

.gh-thumb.active {
    opacity: 1;
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(208,160,48,0.3);
    background: rgba(208,160,48,0.06);
}

.gh-thumb-uncommon.active  { border-color: var(--rarity-uncommon); box-shadow: 0 0 8px rgba(104,168,88,0.3); background: rgba(104,168,88,0.06); }
.gh-thumb-rare.active      { border-color: var(--rarity-rare); box-shadow: 0 0 8px rgba(64,112,160,0.3); background: rgba(64,112,160,0.06); }
.gh-thumb-epic.active      { border-color: var(--rarity-epic); box-shadow: 0 0 8px rgba(112,80,160,0.3); background: rgba(112,80,160,0.06); }
.gh-thumb-legendary.active { border-color: var(--rarity-legendary); box-shadow: 0 0 10px rgba(208,160,48,0.4); background: rgba(208,160,48,0.08); }

.gh-thumb .plant-sprite-frame {
    width: 36px !important;
    height: 36px !important;
}

/* ==========================================================================
   LIST VIEW
   ========================================================================== */

.list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border-dark);
    min-height: 48px;
}
.list-count {
    font-family: var(--font-pixel);
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.list-header-actions { display: flex; gap: var(--spacing-xs); }

.plant-list-compact {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
}

.list-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 10px var(--spacing-md);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    cursor: pointer;
    transition: background 0.15s;
    border-left: 3px solid transparent;
    min-height: 56px;
}
.list-row:hover { background: rgba(255,255,255,0.02); }

.rarity-row-uncommon  { border-left-color: var(--rarity-uncommon); }
.rarity-row-rare      { border-left-color: var(--rarity-rare); }
.rarity-row-epic      { border-left-color: var(--rarity-epic); }
.rarity-row-legendary { border-left-color: var(--rarity-legendary); }

.list-sprite {
    width: 44px; height: 44px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.list-sprite .plant-sprite-frame { width: 40px !important; height: 40px !important; }

.list-info { flex: 1; min-width: 0; }

.list-name {
    font-family: var(--font-pixel);
    font-size: 10px;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.list-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}

.rarity-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rarity-dot.rarity-color-common    { background: var(--rarity-common); }
.rarity-dot.rarity-color-uncommon  { background: var(--rarity-uncommon); box-shadow: 0 0 4px rgba(104,168,88,0.4); }
.rarity-dot.rarity-color-rare      { background: var(--rarity-rare); box-shadow: 0 0 4px rgba(64,112,160,0.4); }
.rarity-dot.rarity-color-epic      { background: var(--rarity-epic); box-shadow: 0 0 4px rgba(112,80,160,0.4); }
.rarity-dot.rarity-color-legendary { background: var(--rarity-legendary); box-shadow: 0 0 4px rgba(208,160,48,0.4); }

.list-rarity-text {
    font-family: var(--font-pixel);
    font-size: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.list-stars-inline { display: flex; align-items: center; }
.list-stars-inline svg { width: 10px; height: 10px; color: var(--gold); }

.list-stats-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.list-va {
    font-family: var(--font-pixel);
    font-size: 14px;
    color: var(--gold-light);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 6px rgba(208,160,48,0.2);
}

.list-aroma {
    font-family: var(--font-pixel);
    font-size: 12px;
    color: #a8d8a8;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 6px rgba(168,216,168,0.2);
}

/* ==========================================================================
   EMPTY / SCENE STATES
   ========================================================================== */

.gh-empty-scene {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: var(--bg-darkest);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.gh-scene-title {
    font-family: var(--font-pixel);
    font-size: 16px;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.gh-scene-sub {
    font-family: var(--font-pixel);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    line-height: 1.8;
}

.gh-scene-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.gh-empty-hero {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.gh-empty-icon {
    margin-bottom: var(--spacing-md);
    opacity: 0.4;
}
.gh-empty-icon svg { width: 72px; height: 72px; color: var(--green); }

/* ==========================================================================
   ITEMS TAB
   ========================================================================== */

.item-category-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-pixel);
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-dark);
}
.item-category-label svg { width: 14px; height: 14px; }

.item-grid {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-xs) var(--spacing-md);
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.item-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-dark);
    transition: background 0.15s;
}
.item-card:hover { background: rgba(0,0,0,0.35); }

.item-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    flex-shrink: 0;
}
.item-card-icon svg { width: 24px; height: 24px; color: var(--text-dim); }

.item-card-body { flex: 1; min-width: 0; }

.item-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.item-card-name {
    font-family: var(--font-pixel);
    font-size: 9px;
    color: var(--text-bright);
}

.item-card-qty {
    font-family: var(--font-pixel);
    font-size: 9px;
    color: var(--gold);
    flex-shrink: 0;
}

.item-card-desc {
    font-family: var(--font-pixel);
    font-size: 8px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 3px;
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 599px) {
    .gh-plant-sprite .plant-sprite-frame {
        width: 150px !important;
        height: 150px !important;
    }

    .gh-plant-name { font-size: 12px; }

    .gh-nav-arrow { width: 36px; height: 72px; }
    .gh-nav-arrow svg { width: 22px; height: 22px; }

    .gh-thumb { width: 40px; height: 40px; }
    .gh-thumb .plant-sprite-frame { width: 32px !important; height: 32px !important; }

    .gh-hud-va-num { font-size: 22px; }
    .gh-hud-top { padding: 8px 12px; }
    .gh-hud > .gh-hud-fx-row { padding: 6px 12px 7px; }

    .gh-drawer-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
    .gh-rarity-badge { padding: 5px 10px; font-size: 8px; }
    .gh-gen-badge { font-size: 8px; padding: 5px 10px; }
    .gh-effect-desc { display: none; }
    .gh-action-btn { padding: 8px 12px; font-size: 8px; }

    .nrs-plot-sprite { width: 64px; height: 64px; }
    .nrs-plot-sprite .plant-sprite-frame { width: 56px !important; height: 56px !important; }
    .nrs-plot-name { font-size: 10px; }
    .nrs-plot-timer { font-size: 11px; }
}

/* ==========================================================================
   HYBRIDIZE TAB (hyb-*)
   Full-page takeover for plant hybridization
   ========================================================================== */

.hyb-takeover {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: var(--bg-darkest);
    padding: var(--spacing-md) 0 var(--spacing-xl);
}

.hyb-takeover .gh-ambient { z-index: 0; }
.hyb-takeover .gh-vignette { z-index: 1; }

/* -- Parent Selection Row ------------------------------------------------- */

.hyb-parent-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.hyb-parent-slot {
    flex: 1;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: var(--spacing-sm);
    background: var(--bg-mid);
    border: 2px dashed var(--border-mid);
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.hyb-parent-slot:hover {
    border-color: var(--border-light);
    background: var(--bg-surface);
}
.hyb-parent-slot:active { transform: scale(0.99); }

.hyb-parent-slot-filled {
    border-style: solid;
    border-color: var(--border-mid);
    background: var(--bg-surface);
    justify-content: flex-start;
}

.hyb-parent-slot-filled.rarity-border-uncommon  { border-color: var(--green-dark); }
.hyb-parent-slot-filled.rarity-border-rare      { border-color: #3060a0; }
.hyb-parent-slot-filled.rarity-border-epic      { border-color: #5030a0; }
.hyb-parent-slot-filled.rarity-border-legendary { border-color: var(--gold-dark); box-shadow: inset 0 0 20px rgba(208,160,48,0.08); }

.hyb-slot-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.6;
}

.hyb-slot-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hyb-slot-clear {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border: 2px solid var(--border-dark);
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    z-index: 3;
    transition: all 0.15s;
}
.hyb-slot-clear:hover { color: #e88080; border-color: #804040; background: #2a1818; }

.hyb-slot-icon {
    opacity: 0.2;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hyb-slot-pulse 3s ease-in-out infinite;
}
.hyb-slot-icon svg { width: 48px; height: 48px; color: var(--text-muted); }

@keyframes hyb-slot-pulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(1.08); }
}

.hyb-slot-hint {
    font-family: var(--font-pixel);
    font-size: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hyb-slot-sprite {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: hero-float 5s ease-in-out infinite;
}
.hyb-slot-sprite .plant-sprite-frame {
    width: 160px !important;
    height: 160px !important;
}
.hyb-slot-sprite .plant-sprite-frame img { image-rendering: pixelated; }
.hyb-slot-sprite .plant-sprite-frame canvas { image-rendering: pixelated; }

.hyb-slot-info {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
    padding: var(--spacing-xs) 0;
}

.hyb-slot-name {
    font-family: var(--font-pixel);
    font-size: 11px;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hyb-slot-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-pixel);
    font-size: 8px;
}

.hyb-slot-rarity-pill {
    font-size: 7px !important;
    padding: 2px 6px !important;
}

.hyb-slot-stats {
    display: flex;
    gap: 10px;
    font-family: var(--font-pixel);
}

.hyb-slot-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
}

.hyb-slot-stat-val { color: var(--gold-light); font-size: 13px; }
.hyb-slot-stat-label { color: var(--text-muted); font-size: 6px; text-transform: uppercase; letter-spacing: 0.5px; }

.hyb-slot-effects {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 2px;
}

.hyb-slot-fx {
    font-family: var(--font-pixel);
    font-size: 6px;
    color: var(--green-light);
    padding: 2px 5px;
    background: var(--green-dark);
    border: 1px solid #4a7838;
    white-space: nowrap;
}

.hyb-slot-fx-more {
    color: var(--text-muted);
    background: var(--bg-mid);
    border-color: var(--border-dark);
}

/* -- Merge Zone ----------------------------------------------------------- */

.hyb-merge-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    flex-shrink: 0;
    position: relative;
}

.hyb-merge-plus {
    opacity: 0.2;
}
.hyb-merge-plus svg { width: 20px; height: 20px; color: var(--text-muted); }

.hyb-merge-zone-active { width: 44px; }

.hyb-merge-glow {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(208,160,48,0.25) 0%, transparent 70%);
    animation: hyb-merge-glow-pulse 2.5s ease-in-out infinite;
}

@keyframes hyb-merge-glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.hyb-merge-dna-icon {
    position: relative;
    z-index: 2;
}

.hyb-merge-dna-icon svg {
    width: 32px;
    height: 32px;
    color: var(--gold);
    filter: drop-shadow(0 0 10px rgba(208,160,48,0.5));
    animation: hyb-dna-pulse 2s ease-in-out infinite;
}

@keyframes hyb-dna-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(10deg); }
}

/* -- Loading State -------------------------------------------------------- */

.hyb-loading {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: var(--spacing-xl);
}

.hyb-loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(208,160,48,0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: hyb-spin 0.8s linear infinite;
}

@keyframes hyb-spin {
    to { transform: rotate(360deg); }
}

.hyb-loading-text {
    font-family: var(--font-pixel);
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: hyb-loading-fade 1.5s ease-in-out infinite;
}

@keyframes hyb-loading-fade {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* -- Preview Area --------------------------------------------------------- */

.hyb-preview {
    position: relative;
    z-index: 2;
    padding: var(--spacing-md) var(--spacing-sm) 0;
    animation: hyb-preview-in 0.4s ease-out;
}

@keyframes hyb-preview-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -- Gen Bonus Banner ----------------------------------------------------- */

.hyb-gen-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: var(--spacing-lg);
    background: var(--bg-surface);
    border: 2px solid var(--gold-dark);
    position: relative;
}

.hyb-gen-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
    opacity: 0.6;
}

.hyb-gen-badge {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-mid);
    border: 2px solid var(--gold-dark);
    flex-shrink: 0;
    box-shadow: inset 0 0 12px rgba(208,160,48,0.1);
}

.hyb-gen-badge-num {
    font-family: var(--font-pixel);
    font-size: 16px;
    color: var(--gold);
    font-weight: bold;
}

.hyb-gen-banner-text { display: flex; flex-direction: column; gap: 2px; }

.hyb-gen-banner-title {
    font-family: var(--font-pixel);
    font-size: 11px;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hyb-gen-banner-sub {
    font-family: var(--font-pixel);
    font-size: 9px;
    color: var(--gold);
}

/* -- Stat Forecast Cards -------------------------------------------------- */

.hyb-forecast-row {
    display: flex;
    gap: 6px;
    margin-bottom: var(--spacing-lg);
}

.hyb-forecast-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 8px 14px;
    background: var(--bg-surface);
    border: 2px solid var(--border-mid);
    text-align: center;
}

.hyb-forecast-card-sm { max-width: 90px; flex: 0 0 auto; }

.hyb-forecast-icon {
    color: var(--gold);
    margin-bottom: 2px;
}
.hyb-forecast-icon svg { width: 18px; height: 18px; }

.hyb-forecast-range {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.hyb-forecast-big {
    font-family: var(--font-pixel);
    font-size: 22px;
    color: var(--text-bright);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.hyb-forecast-dash {
    font-family: var(--font-pixel);
    font-size: 14px;
    color: var(--text-muted);
}

.hyb-forecast-label {
    font-family: var(--font-pixel);
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hyb-forecast-avg {
    font-family: var(--font-pixel);
    font-size: 8px;
    color: var(--gold);
}

/* -- Card Section (shared) ------------------------------------------------ */

.hyb-card-section {
    margin-bottom: var(--spacing-lg);
}

.hyb-card-section-head {
    font-family: var(--font-pixel);
    font-size: 11px;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hyb-card-section-badge {
    font-size: 9px;
    color: var(--gold);
    padding: 2px 8px;
    background: var(--bg-mid);
    border: 2px solid var(--gold-dark);
    margin-left: auto;
}

/* -- Rarity Outcome Cards ------------------------------------------------- */

.hyb-rarity-cards {
    display: flex;
    gap: 6px;
}

.hyb-rarity-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 8px;
    border: 2px solid var(--border-mid);
    background: var(--bg-surface);
    text-align: center;
}

.hyb-rarity-card-pct {
    font-family: var(--font-pixel);
    font-size: 20px;
    line-height: 1;
    font-weight: bold;
}

.hyb-rarity-card-label {
    font-family: var(--font-pixel);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hyb-rarity-card-arrow {
    font-size: 14px;
    line-height: 1;
    opacity: 0.5;
}

.hyb-rarity-card-up {
    border-color: var(--green-dark);
    background:
        linear-gradient(180deg, rgba(104,168,88,0.08) 0%, transparent 100%),
        var(--bg-surface);
    color: var(--green-light);
}

.hyb-rarity-card-same {
    border-color: var(--border-mid);
    color: var(--text-dim);
}

.hyb-rarity-card-down {
    border-color: #503030;
    background:
        linear-gradient(180deg, rgba(180,60,60,0.06) 0%, transparent 100%),
        var(--bg-surface);
    color: #e8a0a0;
}

/* -- Choose Your Focus ---------------------------------------------------- */

.hyb-focus-group {
    display: flex;
    gap: 6px;
}

.hyb-focus-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px 14px;
    background: var(--bg-surface);
    border: 2px solid var(--border-mid);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.hyb-focus-btn:hover {
    border-color: var(--border-light);
    background: var(--bg-raised);
}

.hyb-focus-btn.active {
    border-color: var(--gold);
    background:
        linear-gradient(180deg, rgba(208,160,48,0.1) 0%, transparent 100%),
        var(--bg-surface);
    box-shadow: 0 0 16px rgba(208,160,48,0.15), inset 0 0 12px rgba(208,160,48,0.05);
}

.hyb-focus-icon {
    color: var(--text-muted);
    transition: color 0.2s;
}
.hyb-focus-icon svg { width: 22px; height: 22px; }
.hyb-focus-btn.active .hyb-focus-icon { color: var(--gold); }

.hyb-focus-label {
    font-family: var(--font-pixel);
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.hyb-focus-btn.active .hyb-focus-label { color: var(--gold-light); }

.hyb-focus-desc {
    font-family: var(--font-pixel);
    font-size: 8px;
    color: var(--text-muted);
}

/* -- Effect Pool (Lock In) ------------------------------------------------ */

.hyb-fx-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hyb-fx-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    min-width: 120px;
    flex: 1;
    background: var(--bg-surface);
    border: 2px solid var(--border-mid);
    cursor: pointer;
    transition: all 0.2s;
}

.hyb-fx-card:hover {
    border-color: var(--border-light);
    background: var(--bg-raised);
}

.hyb-fx-card-shared {
    border-color: #4a7838;
    background:
        linear-gradient(180deg, rgba(104,168,88,0.06) 0%, transparent 100%),
        var(--bg-surface);
}

.hyb-fx-card-selected {
    border-color: var(--green);
    background:
        linear-gradient(180deg, rgba(104,168,88,0.1) 0%, transparent 100%),
        var(--bg-surface);
    box-shadow: 0 0 12px rgba(104,168,88,0.2), inset 0 0 10px rgba(104,168,88,0.05);
}

.hyb-fx-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hyb-fx-card-name {
    font-family: var(--font-pixel);
    font-size: 10px;
    color: var(--text-bright);
    white-space: nowrap;
}

.hyb-fx-card-badge {
    font-family: var(--font-pixel);
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bg-darkest);
    padding: 2px 6px;
    background: var(--green);
}

.hyb-fx-card-bottom {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hyb-fx-card-potency {
    display: flex;
    gap: 3px;
}

.hyb-fx-dot {
    width: 7px;
    height: 7px;
    background: var(--bg-mid);
    border: 1px solid var(--border-dark);
}

.hyb-fx-dot.on {
    background: var(--green);
    border-color: var(--green-dark);
    box-shadow: 0 0 4px rgba(104,168,88,0.5);
}

.hyb-fx-card-potency-label {
    font-family: var(--font-pixel);
    font-size: 8px;
    color: var(--text-muted);
}

.hyb-fx-card-check {
    position: absolute;
    top: 6px;
    right: 8px;
    font-family: var(--font-pixel);
    font-size: 12px;
    color: var(--green-light);
    line-height: 1;
}

/* -- Boost Items ---------------------------------------------------------- */

.hyb-boost-grid {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.hyb-boost-card {
    flex: 1;
    min-width: 130px;
    padding: 14px;
    background: var(--bg-surface);
    border: 2px solid var(--border-mid);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.hyb-boost-card:hover { border-color: var(--border-light); background: var(--bg-raised); }

.hyb-boost-card.selected {
    border-color: #7050b0;
    background:
        linear-gradient(180deg, rgba(112,80,176,0.1) 0%, transparent 100%),
        var(--bg-surface);
    box-shadow: 0 0 12px rgba(112,80,176,0.2), inset 0 0 10px rgba(112,80,176,0.05);
}

.hyb-boost-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.hyb-boost-name {
    font-family: var(--font-pixel);
    font-size: 10px;
    color: var(--text-bright);
}

.hyb-boost-qty {
    font-family: var(--font-pixel);
    font-size: 9px;
    color: var(--text-muted);
}

.hyb-boost-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.hyb-boost-tag {
    font-family: var(--font-pixel);
    font-size: 8px;
    padding: 3px 7px;
    border: 1px solid;
}

.hyb-boost-tag.impact-rarity { color: var(--green-light); background: var(--green-dark); border-color: #4a7838; }
.hyb-boost-tag.impact-effect { color: #d0b8f0; background: #2a1840; border-color: #402860; }
.hyb-boost-tag.impact-mutation { color: var(--gold-light); background: #3a2810; border-color: var(--gold-dark); }
.hyb-boost-tag.impact-priority { color: #a0d0f0; background: #182838; border-color: #284060; }
.hyb-boost-tag.impact-star { color: var(--gold-light); background: #3a2810; border-color: var(--gold-dark); }

.hyb-boost-check {
    position: absolute;
    top: 6px;
    right: 8px;
    font-family: var(--font-pixel);
    font-size: 12px;
    color: #c0a0e8;
    line-height: 1;
}

/* -- Action Bar ----------------------------------------------------------- */

.hyb-action-bar {
    position: relative;
    z-index: 2;
    padding: var(--spacing-md) var(--spacing-sm);
    margin-top: var(--spacing-sm);
    border-top: 2px solid var(--border-dark);
    background: var(--bg-dark);
}

.hyb-consume-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    margin-bottom: 12px;
    background: #201010;
    border: 2px solid #503030;
    font-family: var(--font-pixel);
    font-size: 9px;
    color: #e8a0a0;
}

.hyb-consume-warning svg { width: 16px; height: 16px; flex-shrink: 0; color: #c06060; }

.hyb-action-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.hyb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    font-family: var(--font-pixel);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 52px;
}
.hyb-btn:active { transform: scale(0.97); }
.hyb-btn svg { width: 20px; height: 20px; }

.hyb-btn-primary {
    flex: 2;
    color: #fff;
    border-color: var(--gold);
    background: linear-gradient(180deg, var(--gold-dark) 0%, #5a4018 100%);
    box-shadow: 0 0 16px rgba(208,160,48,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}
.hyb-btn-primary:hover {
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
    box-shadow: 0 0 24px rgba(208,160,48,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.hyb-btn-primary:disabled {
    opacity: 0.3;
    cursor: default;
    box-shadow: none;
}

.hyb-btn-execute {
    font-size: 13px;
    letter-spacing: 2px;
    min-height: 56px;
}
.hyb-btn-execute svg { width: 22px; height: 22px; }

.hyb-btn-ghost {
    flex: 1;
    color: var(--text-dim);
    border-color: var(--border-mid);
    background: var(--bg-mid);
}
.hyb-btn-ghost:hover {
    color: var(--text-bright);
    border-color: var(--border-light);
    background: var(--bg-surface);
}

/* -- Confirmation Modal --------------------------------------------------- */

.hyb-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    transition: background 0.2s;
    padding: var(--spacing-md);
}

.hyb-confirm-overlay.open { background: rgba(0,0,0,0.7); }

.hyb-confirm-modal {
    background: var(--bg-dark);
    border: 2px solid var(--gold-dark);
    max-width: 360px;
    width: 100%;
    padding: var(--spacing-lg);
    position: relative;
    animation: hyb-modal-in 0.25s ease-out;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
}

@keyframes hyb-modal-in {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.hyb-confirm-title {
    font-family: var(--font-pixel);
    font-size: 12px;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.hyb-confirm-body { margin-bottom: var(--spacing-lg); }

.hyb-confirm-parents {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-pixel);
    font-size: 10px;
    color: var(--text-bright);
    margin-bottom: var(--spacing-sm);
}

.hyb-confirm-x {
    color: var(--gold);
    font-size: 14px;
}

.hyb-confirm-warn {
    font-family: var(--font-pixel);
    font-size: 8px;
    color: #e8a0a0;
    text-align: center;
}

.hyb-confirm-boost {
    font-family: var(--font-pixel);
    font-size: 8px;
    color: #c0a0e8;
    text-align: center;
    margin-top: 6px;
}

.hyb-confirm-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* -- Reveal Stage --------------------------------------------------------- */

.hyb-reveal-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 120px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hyb-reveal-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(30,28,24,0.95) 0%, rgba(8,6,4,1) 80%);
    z-index: 0;
}

.hyb-reveal-content {
    position: relative;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    padding: var(--spacing-md);
}

/* -- Reveal Rays ---------------------------------------------------------- */

.hyb-reveal-rays {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.6s;
    pointer-events: none;
}

.hyb-reveal-rays::before {
    content: '';
    position: absolute;
    width: 300vmax;
    height: 300vmax;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255,240,180,0.06) 0%, transparent 55%),
        repeating-conic-gradient(
            from 0deg,
            rgba(255,240,180,0.04) 0deg 8deg,
            transparent 8deg 20deg
        );
    mask-image: radial-gradient(circle, white 15%, transparent 50%);
    -webkit-mask-image: radial-gradient(circle, white 15%, transparent 50%);
}

.hyb-reveal-rays-fire { opacity: 1; }
.hyb-reveal-rays-fire::before { animation: hyb-rays-spin 8s linear infinite; }

.hyb-reveal-rays-epic::before {
    background:
        radial-gradient(circle, rgba(180,140,240,0.08) 0%, transparent 55%),
        repeating-conic-gradient(from 0deg, rgba(180,140,240,0.05) 0deg 8deg, transparent 8deg 20deg);
}

.hyb-reveal-rays-legendary::before {
    background:
        radial-gradient(circle, rgba(255,220,80,0.1) 0%, transparent 50%),
        repeating-conic-gradient(from 0deg, rgba(255,220,80,0.06) 0deg 6deg, transparent 6deg 15deg);
}

@keyframes hyb-rays-spin {
    to { transform: rotate(360deg); }
}

/* -- Reveal Flash --------------------------------------------------------- */

.hyb-reveal-flash {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
}

.hyb-reveal-flash-fire {
    opacity: 1;
    animation: hyb-flash-burst 0.5s ease-out forwards;
}

.hyb-reveal-flash-common,
.hyb-reveal-flash-uncommon { background: radial-gradient(circle at 50% 45%, rgba(255,255,255,0.5) 0%, transparent 60%); }
.hyb-reveal-flash-rare { background: radial-gradient(circle at 50% 45%, rgba(128,184,224,0.6) 0%, transparent 60%); }
.hyb-reveal-flash-epic { background: radial-gradient(circle at 50% 45%, rgba(180,140,240,0.6) 0%, transparent 55%); }
.hyb-reveal-flash-legendary { background: radial-gradient(circle at 50% 45%, rgba(255,220,80,0.7) 0%, transparent 55%); }

@keyframes hyb-flash-burst {
    0% { opacity: 1; transform: scale(0.5); }
    40% { opacity: 0.8; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(2); }
}

/* -- Reveal Particles ----------------------------------------------------- */

.hyb-reveal-particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hyb-reveal-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: hyb-particle-burst 1s ease-out forwards;
}

@keyframes hyb-particle-burst {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    70% { opacity: 0.6; }
    100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.15); }
}

/* -- Reveal DNA Icon ------------------------------------------------------ */

.hyb-reveal-dna {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hyb-dna-enter 0.4s ease-out;
}

.hyb-reveal-dna svg {
    width: 56px;
    height: 56px;
    color: var(--gold);
    position: relative;
    z-index: 2;
}

.hyb-reveal-dna-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(208,160,48,0.3) 0%, transparent 70%);
}

@keyframes hyb-dna-enter {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.hyb-reveal-dna-spin {
    animation: hyb-dna-rotate 0.6s ease-in-out;
}

@keyframes hyb-dna-rotate {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.hyb-reveal-dna-burst {
    animation: hyb-dna-burst-out 0.3s ease-in forwards !important;
}

@keyframes hyb-dna-burst-out {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(2.5); filter: blur(8px); }
}

/* -- Result Reveal -------------------------------------------------------- */

.hyb-result {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md);
    animation: hyb-result-in 0.6s ease-out;
    width: 100%;
}

@keyframes hyb-result-in {
    from { opacity: 0; transform: scale(0.85) translateY(30px); }
    60% { transform: scale(1.03) translateY(-5px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.hyb-result-badge {
    font-family: var(--font-pixel);
    font-size: 16px;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 24px rgba(208,160,48,0.5);
    margin-bottom: var(--spacing-lg);
    animation: hyb-badge-glow 2s ease-in-out infinite alternate;
}

@keyframes hyb-badge-glow {
    from { text-shadow: 0 0 20px rgba(208,160,48,0.3); }
    to { text-shadow: 0 0 30px rgba(208,160,48,0.6); }
}

.hyb-result-sprite {
    position: relative;
    margin-bottom: var(--spacing-lg);
    animation: hero-float 5s ease-in-out infinite;
}
.hyb-result-sprite .plant-sprite-frame {
    width: 200px !important;
    height: 200px !important;
}
.hyb-result-sprite .plant-sprite-frame img { image-rendering: pixelated; }
.hyb-result-sprite .plant-sprite-frame canvas { image-rendering: pixelated; }

.hyb-result-name {
    font-family: var(--font-pixel);
    font-size: 16px;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-align: center;
}

.hyb-result-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--spacing-lg);
}

.hyb-result-gen {
    font-family: var(--font-pixel);
    font-size: 9px;
    color: var(--gold);
}

.hyb-result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 320px;
    margin-bottom: var(--spacing-lg);
}

.hyb-result-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.06);
}

.hyb-result-stat-val {
    font-family: var(--font-pixel);
    font-size: 18px;
    color: var(--gold-light);
}

.hyb-result-stat-label {
    font-family: var(--font-pixel);
    font-size: 7px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hyb-result-effects {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.hyb-result-effect {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-family: var(--font-pixel);
    font-size: 9px;
    border: 1px solid rgba(104,168,88,0.3);
    color: #b8e8a0;
    background: rgba(104,168,88,0.08);
}

.hyb-result-effect-name { white-space: nowrap; }
.hyb-result-effect-pot { color: var(--green); font-size: 10px; }

.hyb-result-actions {
    display: flex;
    gap: var(--spacing-sm);
    width: 100%;
    max-width: 320px;
}

/* -- Plant Picker Drawer -------------------------------------------------- */

.hyb-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(0,0,0,0);
    transition: background 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.hyb-picker-overlay.open { background: rgba(0,0,0,0.6); }

.hyb-picker {
    background: var(--bg-dark);
    border-top: 2px solid var(--border-mid);
    max-height: 85vh;
    overflow-y: auto;
    padding: 0 var(--spacing-md) var(--spacing-lg);
    transform: translateY(100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--border-mid) transparent;
}
.hyb-picker-overlay.open .hyb-picker { transform: translateY(0); }

.hyb-picker-handle {
    width: 40px;
    height: 4px;
    background: var(--border-mid);
    margin: 10px auto 12px;
}

.hyb-picker-title {
    font-family: var(--font-pixel);
    font-size: 12px;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
    text-align: center;
}

.hyb-picker-context {
    font-family: var(--font-pixel);
    font-size: 8px;
    color: var(--gold);
    text-align: center;
    margin-bottom: var(--spacing-md);
    opacity: 0.7;
}

.hyb-picker-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hyb-picker-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 12px var(--spacing-sm);
    border: 2px solid var(--border-dark);
    background: var(--bg-mid);
    cursor: pointer;
    transition: all 0.15s;
    border-left: 3px solid transparent;
    min-height: 80px;
}
.hyb-picker-card:hover { background: var(--bg-surface); border-color: var(--border-mid); }
.hyb-picker-card:active { transform: scale(0.99); }

.hyb-picker-card.rarity-row-uncommon  { border-left-color: var(--rarity-uncommon); }
.hyb-picker-card.rarity-row-rare      { border-left-color: var(--rarity-rare); }
.hyb-picker-card.rarity-row-epic      { border-left-color: var(--rarity-epic); }
.hyb-picker-card.rarity-row-legendary { border-left-color: var(--rarity-legendary); }

.hyb-picker-card-disabled {
    opacity: 0.2;
    pointer-events: none;
}

.hyb-picker-sprite {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hyb-picker-sprite .plant-sprite-frame {
    width: 64px !important;
    height: 64px !important;
}

.hyb-picker-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hyb-picker-name {
    font-family: var(--font-pixel);
    font-size: 11px;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hyb-picker-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-pixel);
    font-size: 8px;
    color: var(--text-muted);
}

.hyb-picker-rarity-pill {
    font-size: 7px !important;
    padding: 1px 5px !important;
}

.hyb-picker-gen {
    color: var(--gold);
    opacity: 0.6;
}

.hyb-picker-effects {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.hyb-picker-fx {
    font-family: var(--font-pixel);
    font-size: 6px;
    color: var(--text-dim);
    padding: 2px 5px;
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    white-space: nowrap;
}

.hyb-picker-fx-shared {
    color: var(--green-light);
    background: var(--green-dark);
    border-color: #4a7838;
}

.hyb-picker-fx-more {
    color: var(--text-muted);
}

.hyb-picker-fx-none {
    color: var(--text-muted);
    opacity: 0.5;
}

.hyb-picker-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    font-family: var(--font-pixel);
    font-variant-numeric: tabular-nums;
}

.hyb-picker-stat {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.hyb-picker-stat-val {
    font-size: 14px;
    color: var(--gold-light);
}

.hyb-picker-stat-label {
    font-size: 7px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.hyb-picker-hybrid-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px 6px;
    background: #2a2010;
    border: 1px solid var(--gold-dark);
    margin-top: 2px;
}

.hyb-picker-hybrid-label {
    font-size: 6px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.hyb-picker-hybrid-val {
    font-size: 8px;
    color: var(--gold-light);
}

.hyb-picker-hybrid-stars {
    font-size: 8px;
    color: var(--gold);
}

/* -- Responsive ----------------------------------------------------------- */

@media (max-width: 480px) {
    .hyb-parent-slot { min-height: 120px; flex-direction: column; }
    .hyb-slot-sprite .plant-sprite-frame { width: 120px !important; height: 120px !important; }
    .hyb-slot-info { align-items: center; text-align: center; }
    .hyb-slot-name { font-size: 9px; }
    .hyb-slot-effects { justify-content: center; }
    .hyb-merge-zone { width: 30px; }
    .hyb-merge-dna-icon svg { width: 24px; height: 24px; }
    .hyb-result-sprite .plant-sprite-frame { width: 160px !important; height: 160px !important; }
    .hyb-parent-row { padding: 0 var(--spacing-xs); }
    .hyb-forecast-row { flex-wrap: wrap; }
    .hyb-forecast-card { min-width: 0; }
    .hyb-forecast-card-sm { flex: 1; max-width: none; }
    .hyb-forecast-big { font-size: 18px; }
    .hyb-focus-btn { padding: 12px 6px; }
    .hyb-focus-label { font-size: 9px; }
    .hyb-fx-card { min-width: 100px; }
    .hyb-rarity-card-pct { font-size: 16px; }
}
