/* BeeLogic · Imkerei Strategie – Arcade-Bühne im Honigrahmen */
.sg-wrap { padding-block: 8px 64px; }
.sg-wrap [hidden] { display: none !important; }

/* goldener Rahmen + dunkle Bühne mit Wabenmuster */
.sg-frame { padding: 3px; border-radius: 30px; background: var(--honey); box-shadow: var(--shadow-lg), 0 0 0 6px rgba(227,162,26,.12); }
.sg-stage {
  position: relative; border-radius: 27px; padding: clamp(16px, 3vw, 30px); color: #E9DFC6;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97'%3E%3Cpath d='M28 2l26 15v30L28 62 2 47V17zM28 64v31M2 80l26-15 26 15' fill='none' stroke='%23FFD76A' stroke-opacity='.07' stroke-width='1.5'/%3E%3C/svg%3E"),
    radial-gradient(900px 420px at 80% -10%, rgba(255,215,106,.14), transparent 60%),
    radial-gradient(circle at 50% 30%, #2A2114, #0B0905 78%);
  overflow: hidden;
}
.sg-stage::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 2px, transparent 2px 4px); pointer-events: none; }
.sg-stage > * { position: relative; z-index: 1; }

.sg-turn { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.sg-turn-badge { font: 600 .9rem var(--font-display); color: #CFC3A4; }
.sg-turn-badge b { color: #fff; font-size: 1.05rem; }
.sg-season { font: 700 .85rem var(--font-display); padding: 6px 14px; border-radius: 999px; border: 1px solid transparent; }
.sg-season.s-fruehling { background: #E8F5E6; color: #1F5A2A; }
.sg-season.s-sommer { background: #FFF2D1; color: #7A4F00; }
.sg-season.s-herbst { background: #FBE6DC; color: #8A3416; }
.sg-season.s-winter { background: #E7F1FB; color: #164E80; }

/* HUD */
.sg-hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.sg-stat { background: rgba(255,255,255,.05); border: 1px solid var(--night-line); border-radius: 16px; padding: 10px 14px; }
.sg-stat-label { font: 600 .75rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: #BFB38F; margin-bottom: 2px; }
.sg-stat-val { font: 800 1.55rem/1.15 var(--font-display); color: var(--gold-light); }
.sg-stat-val small { font: 500 .78rem var(--font-body); color: #BFB38F; margin-left: 3px; }
.sg-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.sg-meta .chip { background: rgba(255,255,255,.06); border-color: var(--night-line); color: #E9DFC6; box-shadow: none; font-size: .82rem; padding: 6px 12px; }
.sg-meta .chip strong { color: var(--gold-light); }

.sg-title { font: 700 .8rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 10px; }

/* Projekte */
.sg-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 20px; }
.sg-project { background: rgba(255,255,255,.05); border: 1px solid var(--night-line); border-radius: 14px; padding: 10px 14px; }
.sg-project-name { font: 700 .85rem var(--font-display); color: #fff; }
.sg-project-prog { font-size: .78rem; color: #BFB38F; margin: 2px 0 6px; }
.sg-bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.sg-bar-fill { height: 100%; border-radius: 99px; background: var(--honey); transition: width .4s ease; }

/* Aktionskarten */
.sg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.sg-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  padding: 14px; border-radius: 18px; cursor: pointer; font: inherit; color: #CFC3A4;
  background: rgba(255,255,255,.04); border: 1.5px solid var(--night-line);
  transition: transform .15s, border-color .15s, background .15s, box-shadow .15s;
}
.sg-card:hover:not(.is-disabled) { transform: translateY(-2px); border-color: rgba(255,215,106,.55); background: rgba(255,215,106,.07); }
.sg-card.is-selected { border-color: var(--gold-light); background: rgba(255,215,106,.13); box-shadow: 0 0 0 3px rgba(227,162,26,.28), 0 10px 26px rgba(0,0,0,.35); }
.sg-card.is-disabled { opacity: .42; cursor: not-allowed; }
.sg-card:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 18px; }
.sg-card-key { position: absolute; top: 10px; right: 12px; font: 700 .72rem var(--font-display); color: #8F8468; border: 1px solid var(--night-line); border-radius: 6px; padding: 0 6px; }
.sg-card-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,215,106,.12); color: var(--gold-light); }
.sg-card-icon svg { width: 22px; height: 22px; }
.sg-card-name { font: 700 1rem/1.25 var(--font-display); color: #fff; }
.sg-card-desc { font-size: .82rem; line-height: 1.45; flex: 1; }
.sg-card-cost { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.sg-cost { font: 700 .72rem var(--font-display); padding: 3px 8px; border-radius: 999px; }
.sg-cost.time { background: #E7F1FB; color: #164E80; }
.sg-cost.money { background: #E8F5E6; color: #1F5A2A; }
.sg-cost.honey { background: #FFF2D1; color: #7A4F00; }
.sg-na { font-size: .72rem; color: #BFB38F; }

/* Aktionsleiste */
.sg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.sg-actions .btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.sg-actions .btn-on-dark { color: #fff; border-color: var(--night-line); background: transparent; }
.sg-actions .btn-on-dark:hover { color: #14110C; background: var(--gold-light); border-color: var(--gold-light); }
.sg-tip { margin: 0 0 20px; padding: 12px 16px; border-radius: 14px; background: rgba(255,215,106,.1); border: 1px dashed rgba(255,215,106,.4); color: var(--gold-light); font-weight: 600; }

/* Log */
.sg-log { background: rgba(0,0,0,.35); border: 1px solid var(--night-line); border-radius: 16px; padding: 10px 14px; max-height: 190px; overflow-y: auto; }
.sg-log-entry { font-size: .85rem; line-height: 1.5; padding: 5px 0; border-bottom: 1px solid rgba(255,215,106,.1); color: #CFC3A4; }
.sg-log-entry:last-child { border-bottom: 0; }
.sg-log-entry.good { color: #8FD79A; }
.sg-log-entry.bad { color: #FF9C94; }
.sg-log-entry.info { color: #9CC8F2; }

/* Dialog */
.sg-dialog { border: 0; padding: 0; background: transparent; max-width: min(92vw, 420px); width: 100%; color: #E9DFC6; }
.sg-dialog::backdrop { background: rgba(10,8,4,.72); backdrop-filter: blur(3px); }
.sg-dialog-box { padding: 26px; border-radius: 24px; background: radial-gradient(circle at 50% 0%, #2A2114, #0B0905 80%); border: 2px solid var(--gold); box-shadow: var(--shadow-lg); }
.sg-dialog h2 { color: var(--gold-light); font-size: 1.4rem; margin: 0 0 10px; }
.sg-dialog p { white-space: pre-line; line-height: 1.65; margin: 0 0 18px; }

@media (max-width: 760px) {
  .sg-hud { grid-template-columns: repeat(2, 1fr); }
  .sg-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .sg-cards { grid-template-columns: 1fr; }
  .sg-actions .btn-primary, .sg-actions .btn-secondary { flex: 1 1 100%; }
  .sg-card-key { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-card, .sg-bar-fill { transition: none; }
  .sg-card:hover:not(.is-disabled) { transform: none; }
}
