/* Projects · /projects — the field */

:root {
  --field-bg: #0B0912;
  --tomb-1: #5A5468; --tomb-2: #4A4458; --tomb-3: #3E384C; --tomb-text: #E3D8FF;
  --tomb-card: #CBC4D6; --tomb-stripe-1: #B4ACC2; --tomb-stripe-2: #A69DB6;
  --fork-1: #A98BFF; --fork-2: #9479E6; --fork-3: #7E68C9; --fork-ink: #141018; --fork-card: #CDB8FF;
  --insp-edge: rgba(169, 139, 255, 0.55);
  --halo: rgba(169, 139, 255, 0.45);
}

.t-a2 { color: var(--a2-text); } .t-a3 { color: var(--a3-text); } .t-a4 { color: var(--a4-text); } .t-gold { color: var(--gold); } .t-cute { color: var(--cute); }

.field-wall { position: relative; min-height: 100vh; background: var(--field-bg); color: var(--on-panel); overflow: hidden; }
.field-wall .rain-layer { opacity: 0.16; }
.field-inner { position: relative; }
.field-inner .marquee-bar { position: relative; z-index: 2; background: var(--panel); border-bottom: 1px solid color-mix(in srgb, var(--a4-text) 30%, transparent); }
.field-inner .sitebar { position: relative; z-index: 2; border-top: none; color: var(--on-band); }
.field-inner .shellbar { z-index: 2; border-bottom: 1px solid color-mix(in srgb, var(--a2-text) 30%, transparent); }
.hud { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.hud b { font-weight: 400; }

.field-main { max-width: 1400px; margin: 0 auto; padding: 22px clamp(12px, 3vw, 32px) 10px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; }

/* ---------- inspector ---------- */
.insp { position: relative; z-index: 2; flex: 1 1 300px; max-width: 380px; min-width: 0; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 18px; background: var(--panel-3); border: 1.5px solid var(--insp-edge); border-radius: 14px; box-shadow: 0 0 0 4px var(--field-bg), 0 0 0 5px color-mix(in srgb, var(--a2-text) 25%, transparent); }
@media (max-width: 1009px) { .insp { order: 2; } }
.insp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--f-term); font-size: 21px; }
.insp-top h2 { font-size: 21px; font-weight: 400; color: var(--a2-text); }
.insp-path { color: var(--muted); }
.insp-card-wrap { display: flex; justify-content: center; padding: 6px 0; }
.insp-card { width: 190px; }
.insp-text { display: flex; flex-direction: column; gap: 8px; }
.insp-where { font-family: var(--f-term); font-size: 19px; color: var(--muted); }
.insp-name { font-family: var(--f-display); font-size: 23px; line-height: 1.2; }
.insp-type { font-family: var(--f-term); font-size: 21px; color: var(--a3-text); }
.insp-status { align-self: flex-start; padding: 2px 10px; background: var(--a2); color: var(--on-a2); font-size: 16px; }
.insp-status [lang="ar"] { font-size: 15px; }
.insp-summary { font-size: 17px; line-height: 1.6; color: color-mix(in srgb, var(--on-panel) 88%, transparent); }
.insp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.insp-tags span { padding: 1px 8px; border: 1px solid color-mix(in srgb, var(--a2-text) 50%, transparent); color: var(--a2-soft); font-size: 15px; }
.open-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 10px 14px; background: var(--a2); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--a1); color: var(--on-a2); text-decoration: none; font-family: var(--f-term); font-size: 22px; transition: transform 0.12s ease, background 0.12s ease; }
.open-btn:hover { transform: translate(-2px, -2px); background: var(--hover); color: var(--on-hover); }
.insp-note { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; border: 2px dashed var(--insp-edge); color: var(--a3-text); font-family: var(--f-term); font-size: 21px; }
.insp-hint { font-family: var(--f-term); font-size: 19px; color: var(--muted); }

/* big inspector cards */
.big { display: flex; flex-direction: column; gap: 6px; aspect-ratio: 63 / 88; padding: 8px; border: 2px solid var(--ink); border-radius: 10px; color: var(--ink); }
.big .c-title { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px 8px; background: var(--paper-hi); border: 1.5px solid var(--ink); border-radius: 4px; font-size: 16px; }
.big .c-art { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); }
.big .c-art span { padding: 1px 6px; background: var(--paper-hi); font-size: 14px; }
.big .c-type { padding: 2px 6px; background: var(--paper-hi); border: 1.5px solid var(--ink); border-radius: 4px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.big .c-foot { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.big .c-foot b { padding: 0 6px; background: var(--ink); color: var(--paper-hi); font-weight: 400; }
.big.sealed-big { align-items: center; justify-content: center; gap: 10px; background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--gold) 18%, transparent) 0 2px, transparent 2px 10px), var(--ink); border: 3px solid var(--gold); box-shadow: inset 0 0 0 3px var(--ink), 0 0 34px var(--halo); }
.big.sealed-big .hiero { font-size: 64px; line-height: 1; color: var(--gold); }
.big.sealed-big .tag { padding: 1px 10px; background: var(--a4); color: var(--on-a4); font-size: 16px; }
.big.env-big { background: linear-gradient(160deg, var(--a3), var(--a2)); box-shadow: 0 0 34px var(--halo); }
.big.env-big .c-art { background: var(--ink); }
.big.env-big svg { width: 74%; height: auto; stroke: var(--a3-text); }

/* ---------- the board ---------- */
.field-sec { position: relative; flex: 999 1 620px; min-width: 0; }
.persp { perspective: 1500px; perspective-origin: 50% 0%; }
.mat { position: relative; max-width: 980px; margin: 0 auto; transform: rotateX(24deg); transform-origin: 50% 80%; transform-style: preserve-3d; padding: clamp(14px, 2.4vw, 28px); border: 2px solid var(--mat-edge); border-radius: 26px; background-color: var(--mat); background-image: linear-gradient(var(--mat-line) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line) 1px, transparent 1px); background-size: 40px 40px; box-shadow: 0 0 0 6px var(--field-bg), 0 0 0 7px var(--halo), 0 50px 90px rgba(0, 0, 0, 0.7); }
.circle { position: absolute; left: 50%; top: 50%; width: min(1040px, 116%); height: auto; transform: translate(-50%, -50%); opacity: 0.55; pointer-events: none; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--circle) 80%, transparent)); }
.circle-lines { stroke: var(--circle); }
.circle-text { fill: var(--circle-text); }
.spin { animation: spin 90s linear infinite; transform-box: view-box; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.grid { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: clamp(8px, 1.5vw, 18px); transform-style: preserve-3d; }

.zone { display: flex; flex-direction: column; align-items: center; transform-style: preserve-3d; }
.slot { position: relative; width: 100%; aspect-ratio: 63 / 88; border-radius: 9px; transform-style: preserve-3d; }
.slot-env { border: 1.5px dashed color-mix(in srgb, var(--a3) 60%, transparent); }
.slot-up { border: 1.5px solid color-mix(in srgb, var(--a2-text) 45%, transparent); animation: zg 2.6s ease-in-out infinite; }
@keyframes zg { 50% { border-color: color-mix(in srgb, var(--a4-text) 75%, transparent); } }
.slot-up i { position: absolute; width: 12px; height: 12px; border-color: var(--a2-text); border-style: solid; border-width: 0; }
.slot-up i:nth-child(1) { top: -5px; left: -5px; border-top-width: 2px; border-left-width: 2px; }
.slot-up i:nth-child(2) { top: -5px; right: -5px; border-top-width: 2px; border-right-width: 2px; }
.slot-up i:nth-child(3) { bottom: -5px; left: -5px; border-bottom-width: 2px; border-left-width: 2px; }
.slot-up i:nth-child(4) { bottom: -5px; right: -5px; border-bottom-width: 2px; border-right-width: 2px; }
.slot-down { border: 1.5px dashed color-mix(in srgb, var(--a3) 50%, transparent); }

/* small field cards */
.fcard { position: absolute; inset: 4px; display: flex; flex-direction: column; gap: 3px; padding: 4px; border: 2px solid var(--ink); border-radius: 6px; color: var(--ink); text-decoration: none; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1.1), box-shadow 0.2s ease; transform-origin: 50% 100%; }
.zone:hover .fcard, .fcard:focus-visible { transform: translateZ(70px) rotateX(-24deg) scale(1.28); }
.fcard .c-title { display: block; padding: 1px 4px; background: var(--paper-hi); border: 1px solid var(--ink); border-radius: 3px; font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard .c-art { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--ink); }
.fcard .c-art span { padding: 0 4px; background: var(--paper-hi); font-family: var(--f-term); font-size: 16px; }
.fcard .c-status { display: block; padding: 0 4px; background: var(--ink); color: var(--paper-hi); font-size: 12px; line-height: 1.5; text-align: center; white-space: nowrap; overflow: hidden; }
.env-card { background: linear-gradient(160deg, var(--a3), var(--a2)); }
.env-card .c-title { font-size: 16px; }
.env-art { background: var(--ink); }
.env-art svg { width: 76%; height: auto; stroke: var(--a3-text); }
.sel { box-shadow: 0 0 0 3px var(--a4-text), 0 0 26px color-mix(in srgb, var(--a4-text) 55%, transparent) !important; }

/* face-down cards */
.bcard { position: absolute; inset: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--gold) 18%, transparent) 0 2px, transparent 2px 9px), var(--ink); border: 2px solid var(--gold); border-radius: 6px; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.2s ease; transform-origin: 50% 100%; }
.bzone:hover .bcard, .bcard:focus-visible { transform: translateZ(40px) rotateX(-24deg) scale(1.14); }
.bcard .hiero { font-size: 26px; line-height: 1; color: var(--gold); }
.bcard .tag { padding: 0 5px; background: var(--a4); color: var(--on-a4); font-size: 13px; }

/* piles: tomb, forks, deck */
.pile-cell { display: flex; flex-direction: column; align-items: center; }
.pile { position: relative; width: 100%; aspect-ratio: 63 / 88; padding: 0; background: transparent; border: none; cursor: pointer; transition: transform 0.2s ease; }
.pile:hover { transform: translateY(-5px); }
.pile-back { position: absolute; left: 0; top: 0; width: calc(100% - 8px); height: 100%; border-radius: 7px; border: 1px solid var(--ink); }
.pile-top { position: absolute; left: 0; top: 0; width: calc(100% - 8px); height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px solid var(--ink); border-radius: 7px; font-family: var(--f-term); font-size: 18px; transition: box-shadow 0.2s ease; }
.pile:hover .pile-top, .pile:focus-visible .pile-top, .pile[aria-expanded="true"] .pile-top { box-shadow: 0 0 0 2px var(--a4-text), 0 0 22px color-mix(in srgb, var(--a4-text) 50%, transparent); }
.pile-chip { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); padding: 0 5px; background: var(--ink); color: var(--tomb-text); font-family: var(--f-term); font-size: clamp(11px, 1.3vw, 16px); line-height: 1.25; white-space: nowrap; }
.pile-tomb .b2 { left: 7px; top: -7px; background: var(--tomb-3); transform: rotate(7deg); }
.pile-tomb .b1 { left: 3px; top: -3px; background: var(--tomb-2); transform: rotate(-5deg); }
.pile-tomb .pile-top { background: var(--tomb-1); color: var(--tomb-text); }
.rip-glyph { font-size: 24px; line-height: 1; opacity: 0.85; }
.pile-forks .b2 { left: 6px; top: -6px; background: var(--fork-3); }
.pile-forks .b1 { left: 3px; top: -3px; background: var(--fork-2); }
.pile-forks .pile-top { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 9px), var(--fork-1); color: var(--fork-ink); }
.pile-forks svg { width: 40%; height: auto; stroke: var(--fork-ink); }
.pile-chip .chip-short { display: none; } /* "XPERIMENTZ n" outgrows the pile on phones: swap in the short label there */
@media (max-width: 479px) { .pile-chip .chip-long { display: none; } .pile-chip .chip-short { display: inline; } }
.pile-deck .b3 { left: 12px; top: -12px; background: var(--lapis); border-color: var(--gold); transform: rotate(5deg); }
.pile-deck .b2 { left: 8px; top: -8px; background: color-mix(in srgb, var(--lapis) 75%, var(--ink)); border-color: var(--gold); transform: rotate(-4deg); }
.pile-deck .b1 { left: 4px; top: -4px; background: var(--lapis); border-color: var(--gold); }
.pile-deck .pile-top { background: radial-gradient(color-mix(in srgb, var(--gold) 55%, transparent) 1px, transparent 1.8px) 0 0 / 12px 12px, var(--lapis); border-color: var(--gold); color: var(--paper-hi); }
.pile-deck .pile-chip { background: var(--gold); color: var(--ink); }
.deck-glyph { font-size: clamp(26px, 4.2vw, 56px); line-height: 1; color: var(--gold); }
.deck-word { font-size: clamp(13px, 1.5vw, 19px); line-height: 1; }

/* hovering a pile turns its top card over to say what's inside */
.pile-reveal { display: none; }
@media (hover: hover) and (min-width: 760px) {
  .pile-reveal { position: absolute; inset: 30px 8px 8px; display: flex; align-items: center; justify-content: center; padding: 6px; background: var(--ink); border: 1.5px solid currentColor; border-radius: 5px; font-family: var(--f-cute); font-size: 13px; line-height: 1.35; text-align: center; opacity: 0; transition: opacity 0.18s ease; }
  .pile:hover .pile-reveal, .pile:focus-visible .pile-reveal { opacity: 1; }
  .pile-deck .pile-reveal { color: var(--a4-soft); }
  .pile-tomb .pile-reveal { color: var(--tomb-text); }
  .pile-forks .pile-reveal { color: var(--fork-card); }
}

/* a pile's top card, up close in the inspector */
.big.pile-big { padding: 0; border: none; background: none; }
.pb-face { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 2px solid var(--ink); border-radius: 10px; font-family: var(--f-term); font-size: 26px; box-shadow: 0 0 34px var(--halo); }
.pb-face .pile-reveal { display: none; }
.pb-face .pile-chip { top: 10px; font-size: 20px; }
.pb-face .pile-chip .chip-long { display: inline; } .pb-face .pile-chip .chip-short { display: none; } /* the inspector card has room for the full label */
.pb-tomb .pb-face { background: var(--tomb-1); color: var(--tomb-text); }
.pb-tomb .rip-glyph { font-size: 64px; }
.pb-forks .pb-face { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 9px), var(--fork-1); color: var(--fork-ink); }
.pb-forks svg { width: 46%; height: auto; stroke: var(--fork-ink); }
.pb-deck .pb-face { background: radial-gradient(color-mix(in srgb, var(--gold) 55%, transparent) 1px, transparent 1.8px) 0 0 / 12px 12px, var(--lapis); border: 3px solid var(--gold); color: var(--paper-hi); }
.pb-deck .deck-glyph { font-size: 96px; }
.pb-deck .deck-word { font-size: 28px; }

/* card art patterns .art-1 … .art-6 and the frame colours --card-1 … --card-7 live in site.css */

/* ---------- your hand ---------- */
.hand { position: relative; z-index: 20; margin: clamp(-56px, -4vw, -16px) 0 0; padding: 0 max(6%, 44px) 22px; display: flex; justify-content: center; align-items: flex-start; }
.hand li { position: relative; flex: 0 1 150px; min-width: 0; margin: 0 min(-1.4%, -14px); transform-origin: 50% 150%; transition: transform 0.25s ease; }
.hand li:hover { z-index: 30 !important; }
.hcard { display: flex; flex-direction: column; gap: 4px; aspect-ratio: 63 / 88; padding: 6px; border: 2px solid var(--ink); border-radius: 9px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.65); color: var(--ink); text-decoration: none; transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1.2), box-shadow 0.2s ease; }
.hand li:hover .hcard, .hcard:focus-visible { transform: translateY(-36px) scale(1.12); }
.hcard .c-title { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 2px 6px; background: var(--paper-hi); border: 1.5px solid var(--ink); border-radius: 4px; font-size: 14px; }
.hcard .c-title > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard .c-art { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); }
.hcard .c-art span { padding: 1px 5px; background: var(--paper-hi); font-family: var(--f-term); font-size: 17px; }
.hcard .c-type { padding: 1px 5px; background: var(--paper-hi); border: 1.5px solid var(--ink); border-radius: 4px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard .c-foot { display: flex; justify-content: space-between; align-items: center; gap: 4px; font-size: 13px; }
.hcard .c-foot b { padding: 0 5px; background: var(--ink); color: var(--paper-hi); font-weight: 400; white-space: nowrap; overflow: hidden; }

/* ---------- tomb / forks / deck window ---------- */
.fwin { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 60; width: min(860px, 96%); background: var(--paper); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--a1), 0 30px 80px rgba(0, 0, 0, 0.75); color: var(--ink); animation: winIn 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
@keyframes winIn { from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.94); } to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }
.fwin-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 4px 4px 12px; background: var(--ink); color: var(--a4-text); }
.fwin-bar h2 { font-size: 17px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.close-btn { flex: 0 0 auto; width: 44px; height: 36px; padding: 0; background: var(--a1); border: 2px solid var(--paper); color: var(--on-a1); font-family: var(--f-term); font-size: 26px; line-height: 1; cursor: pointer; }
.close-btn:hover { background: var(--hover); color: var(--on-hover); }
.fwin-body { padding: 14px 16px 16px; }
.fwin-cmd { margin: 0 0 12px; font-family: var(--f-term); font-size: 21px; color: var(--muted-ink); overflow-wrap: anywhere; }
.fwin-hint { margin-top: 6px; font-size: 16px; color: var(--muted-ink); }
.scroller { display: flex; gap: 16px; overflow-x: auto; padding: 8px 4px 18px; scroll-snap-type: x mandatory; }
.tcard { flex: 0 0 168px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 5px; aspect-ratio: 63 / 88; padding: 6px; border: 2px solid var(--ink); border-radius: 8px; box-shadow: 4px 4px 0 var(--ink); color: var(--ink); text-decoration: none; transition: transform 0.2s ease; }
.tcard:hover { transform: translateY(-6px) rotate(-1deg); }
.tcard.grave { background: var(--tomb-card); }
.tcard.fork { background: var(--fork-card); }
.tcard .c-title { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 2px 6px; background: var(--paper-hi); border: 1.5px solid var(--ink); border-radius: 4px; font-size: 14px; }
.tcard .c-title > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard .c-art { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); }
.grave .c-art { background: repeating-linear-gradient(135deg, var(--tomb-stripe-1) 0 6px, var(--tomb-stripe-2) 6px 12px); }
.grave .c-art span { padding: 0 6px; background: var(--paper-hi); font-family: var(--f-term); font-size: 23px; }
.fork .c-art { background: var(--ink); }
.fork .c-art svg { width: 46%; height: auto; stroke: var(--a2-text); }
.tcard .years { font-family: var(--f-term); font-size: 18px; text-align: center; }
.tcard .note { min-height: 46px; padding: 3px 6px; background: var(--paper-hi); border: 1.5px solid var(--ink); border-radius: 4px; font-family: var(--f-cute); font-size: 13px; line-height: 1.35; }
.tcard .note b { display: block; font-family: var(--f-body); font-weight: 400; font-size: 12px; color: var(--muted-ink); }
.tcard .note b [lang="ar"] { font-size: 12px; }
.tcard .c-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.tcard .c-foot b { padding: 0 5px; background: var(--ink); color: var(--paper-hi); font-weight: 400; }
.st-live { color: var(--a2-text); } .st-wip { color: var(--a4-text); } .st-kept { color: var(--gold); } .st-sealed { color: var(--a3-text); }

.guardian { flex: 0 0 250px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px 6px; background: radial-gradient(circle at 50% 40%, var(--a4-soft), var(--paper) 70%); border: 2px dashed var(--ink); border-radius: 8px; }
.guardian svg { width: 100%; height: auto; }
.g-cap { padding: 0 8px; background: var(--ink); color: var(--a4-text); font-family: var(--f-term); font-size: 18px; }

.fwin[data-kind="deck"] { box-shadow: 8px 8px 0 var(--lapis), 0 30px 80px rgba(0, 0, 0, 0.75); }
.deck-scroll { max-height: min(560px, 62vh); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 6px 12px 16px 4px; scroll-snap-type: y proximity; overscroll-behavior: contain; }
.idea-card { --frame: var(--card-1); flex: 0 0 auto; scroll-snap-align: start; display: flex; gap: 12px; padding: 8px; background: var(--frame); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--ink); transition: transform 0.2s ease; }
@media (hover: hover) { .idea-card:hover { transform: translateX(4px) rotate(-0.4deg); } }
.ic-art { flex: 0 0 118px; min-height: 118px; display: flex; align-items: center; justify-content: center; padding: 6px; background: radial-gradient(var(--paper-hi) 1.5px, transparent 2px) 0 0 / 8px 8px, var(--a3-soft); border: 2px solid var(--ink); border-radius: 5px; }
.ic-art .hiero { font-size: 76px; line-height: 1; color: var(--a1-deep); }
.ic-art svg { width: 100%; height: 100%; max-height: 132px; }
.ica-pixel_pet { background: var(--ink); }
.ica-pixel_pet svg { width: 84px; height: 84px; image-rendering: pixelated; }
.ic-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 6px 10px 8px; background: var(--paper-hi); border: 2px solid var(--ink); border-radius: 5px; }
.ic-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--f-term); font-size: 18px; line-height: 1.1; }
.ic-no { padding: 0 6px; background: var(--ink); color: var(--paper-hi); }
.ic-spark { color: #8A5E00; letter-spacing: 2px; }
.ic-name { font-family: var(--f-display); font-size: 18px; font-weight: 400; line-height: 1.3; overflow-wrap: anywhere; }
.ic-note { font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.ic-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-family: var(--f-term); font-size: 18px; color: var(--muted-ink); }
.ic-state { padding: 0 6px; background: var(--a4); color: var(--on-a4); }
.ic-tag { color: var(--a1-deep); }
@media (max-width: 520px) {
  .idea-card { gap: 8px; padding: 6px; }
  .ic-art { flex-basis: 74px; min-height: 74px; }
  .ic-art .hiero { font-size: 50px; }
  .ica-pixel_pet svg { width: 56px; height: 56px; }
  .ic-name { font-size: 16px; }
  .ic-note { font-size: 16px; }
}

/* ---------- log + legend ---------- */
.field-log { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; padding: 0 clamp(12px, 3vw, 32px) 28px; }
.log-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 20px; }
.log-row .log-box { flex: 999 1 420px; min-width: 0; }
.log-cleo { flex: 1 1 220px; max-width: 300px; margin: 0 auto; }
.log-cleo svg { width: 100%; height: auto; }
.log-box { padding: 12px 16px; background: var(--panel-3); border: 1.5px solid color-mix(in srgb, var(--a2-text) 35%, transparent); border-radius: 10px; font-size: 21px; line-height: 1.4; }
.log-box [data-log] > div { white-space: pre-wrap; overflow-wrap: anywhere; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 16px; }
.legend b { font-weight: 400; }
.noscript { padding: 16px; color: var(--on-panel); font-size: 18px; }
.noscript-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-family: var(--f-term); font-size: 20px; }
.noscript-list a { color: var(--a2-text); }
.field-wall .site-footer { border-top: 1px solid color-mix(in srgb, var(--a1) 40%, transparent); background: var(--panel); }
.fcard:hover, .hcard:hover, .tcard:hover { color: var(--ink); }
