@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Noto+Serif+KR:wght@400;600;700;900&display=swap');

:root {
  --ink: #071a17;
  --ink-2: #0c2923;
  --emerald: #0d3d33;
  --emerald-bright: #2b7563;
  --burgundy: #6b202a;
  --gold: #d4b267;
  --gold-pale: #f0daa0;
  --paper: #f4ecd9;
  --paper-deep: #e1d2b3;
  --blue: #5e8b78;
  --text: #f6edd9;
  --muted: #b8b09d;
}

html { color-scheme: dark; }
body, .stApp {
  font-family: "Noto Serif KR", "Batang", Georgia, serif;
  color: var(--text);
}
.stApp {
  background:
    radial-gradient(circle at 50% -10%, rgba(43, 117, 99, .24), transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(107, 32, 42, .12), transparent 35%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 7px),
    #061310;
}
.stApp::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .34;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(240,218,160,.36) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 18%, rgba(135,201,255,.24) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 80%, rgba(240,218,160,.22) 0 1px, transparent 1.5px);
  background-size: 83px 91px, 121px 113px, 157px 139px;
}
header[data-testid="stHeader"], #MainMenu, footer { display: none !important; }
.stAppViewContainer > .main { overflow: visible; }
.block-container {
  position: relative; z-index: 1; max-width: 1080px !important; padding: 1.5rem 2rem 4rem !important;
}
p { line-height: 1.75; }

/* Bank masthead */
.sentinel-nav {
  min-height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 4px 16px; border-bottom: 1px solid rgba(212,178,103,.32); margin-bottom: 22px;
  position: relative;
}
.sentinel-nav::after {
  content: "◆"; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  color: var(--gold); font-size: 11px; background: #071512; padding: 0 10px;
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark {
  width: 39px; height: 39px; display: grid; place-items: center; font-style: normal;
  font: 700 24px/1 "Cormorant Garamond", Georgia, serif; color: var(--gold-pale);
  border: 1px solid var(--gold); transform: rotate(45deg); background: linear-gradient(135deg, #174d41, #091b17);
  box-shadow: inset 0 0 0 3px #0a211c, 0 0 18px rgba(212,178,103,.15);
}
.brand-mark::first-letter { transform: rotate(-45deg); }
.brand span { display: flex; flex-direction: column; letter-spacing: .08em; }
.brand b { font: 700 18px/1.15 "Cormorant Garamond", Georgia, serif; letter-spacing: .12em; color: var(--paper); }
.brand small, .nav-ledger { font: 600 8px/1.6 Arial, sans-serif; letter-spacing: .19em; color: #8fa89e; }
.nav-note { display: flex; align-items: center; gap: 14px; font: 600 9px Arial, sans-serif; letter-spacing: .2em; color: var(--gold); }
.nav-note i { width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.nav-note i:last-child { transform: rotate(180deg); }
.nav-ledger { text-align: right; }

/* Opening ceremony */
.landing-shell {
  position: relative; min-height: 560px; display: grid; grid-template-columns: 52% 48%; align-items: center;
  padding: 38px 44px 48px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(212,178,103,.58); border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(4,18,15,.95), rgba(8,31,26,.78)),
    repeating-radial-gradient(circle at 100% 50%, transparent 0 22px, rgba(212,178,103,.04) 23px 24px);
  box-shadow: inset 0 0 0 5px #071d18, inset 0 0 0 6px rgba(212,178,103,.26), 0 26px 90px rgba(0,0,0,.42);
}
.landing-shell::before {
  content: ""; position: absolute; inset: 15px; z-index: -1; border: 1px solid rgba(212,178,103,.14); pointer-events: none;
  background:
    linear-gradient(135deg, rgba(212,178,103,.08) 25%, transparent 25%) 0 0/18px 18px,
    linear-gradient(315deg, rgba(212,178,103,.05) 25%, transparent 25%) 0 0/18px 18px;
  mask: linear-gradient(90deg, #000, transparent 45%);
}
.landing-shell::after {
  content: "SECURE TODAY · TRUST TOMORROW"; position: absolute; right: -117px; top: 50%; transform: rotate(90deg);
  color: rgba(212,178,103,.25); letter-spacing: .35em; font: 600 9px Arial, sans-serif;
}
.corner { position: absolute; width: 43px; height: 43px; border-color: var(--gold); opacity: .65; }
.corner::after { content: "◆"; position: absolute; color: var(--gold); font-size: 10px; }
.corner-nw { left: 9px; top: 9px; border-left: 1px solid; border-top: 1px solid; }
.corner-nw::after { left: 5px; top: 3px; }
.corner-ne { right: 9px; top: 9px; border-right: 1px solid; border-top: 1px solid; }
.corner-ne::after { right: 5px; top: 3px; }
.corner-sw { left: 9px; bottom: 9px; border-left: 1px solid; border-bottom: 1px solid; }
.corner-sw::after { left: 5px; bottom: 3px; }
.corner-se { right: 9px; bottom: 9px; border-right: 1px solid; border-bottom: 1px solid; }
.corner-se::after { right: 5px; bottom: 3px; }
.landing-copy { position: relative; z-index: 4; align-self: center; }
.hero-kicker { color: var(--gold); font: 600 9px Arial, sans-serif; letter-spacing: .26em; margin-bottom: 31px; }
.hero-kicker span { padding: 0 8px; }
.hero-overline { color: #8db0a4; font: 600 10px Arial, sans-serif; letter-spacing: .22em; margin-bottom: 10px; }
.landing-copy h1 {
  margin: 0; color: var(--paper); font-size: clamp(49px, 5.4vw, 73px); line-height: 1.12; letter-spacing: -.055em;
  font-weight: 900; text-shadow: 0 5px 30px rgba(0,0,0,.36);
}
.landing-copy h1 em { color: var(--gold-pale); font-style: normal; position: relative; }
.landing-copy h1 em::after { content: ""; position: absolute; height: 1px; left: 4%; right: -4%; bottom: -8px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.landing-copy > p { margin: 30px 0 28px; color: #d1cab9; font-size: 14px; line-height: 1.9; }
.hero-oath { max-width: 440px; display: flex; flex-wrap: wrap; gap: 7px 10px; padding: 16px 18px; border: 1px solid rgba(212,178,103,.22); background: rgba(0,0,0,.17); }
.hero-oath b { width: 100%; color: var(--gold); letter-spacing: .14em; font-size: 10px; margin-bottom: 3px; }
.hero-oath span { color: #aca694; font-size: 10px; }
.hero-oath i { color: var(--gold); font-size: 7px; font-style: normal; }
.landing-foot { position: absolute; left: 44px; bottom: 23px; display: flex; gap: 14px; align-items: center; font: 600 8px Arial, sans-serif; letter-spacing: .2em; color: #687d75; }
.landing-foot i { color: var(--gold); font-size: 6px; }

.card-stage { height: 450px; position: relative; display: grid; place-items: center; perspective: 1200px; z-index: 2; }
.vault-halo { position: absolute; width: 390px; height: 390px; border-radius: 50%; border: 1px solid rgba(212,178,103,.2); box-shadow: 0 0 75px rgba(59,152,128,.13), inset 0 0 60px rgba(0,0,0,.6); }
.vault-halo::before, .vault-halo::after { content: ""; position: absolute; border-radius: 50%; inset: 20px; border: 1px dashed rgba(212,178,103,.18); animation: vault-spin 35s linear infinite; }
.vault-halo::after { inset: 57px; border-style: solid; border-color: rgba(212,178,103,.12); animation-direction: reverse; }
.vault-door { position: absolute; width: 284px; height: 284px; border-radius: 50%; border: 10px solid #0a2922; background: radial-gradient(circle, #123f35 0 21%, #071b17 22% 33%, #173c34 34% 36%, #071512 37% 62%, #173f35 63% 67%, #071613 68%); box-shadow: 0 0 0 2px rgba(212,178,103,.36), inset 0 0 45px #000, 0 20px 70px #020806; opacity: .8; }
.vault-door i { position: absolute; left: 50%; top: 50%; width: 230px; height: 2px; transform-origin: left center; background: linear-gradient(90deg, rgba(212,178,103,.55), transparent); }
.vault-door i:nth-child(2) { transform: rotate(45deg); }.vault-door i:nth-child(3) { transform: rotate(90deg); }.vault-door i:nth-child(4) { transform: rotate(135deg); }
.vault-door b { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: 55px; height: 55px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font: 700 30px "Cormorant Garamond", serif; background: #09221d; }
.card-face-preview { position: absolute; width: 220px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.card-face-preview img { display: block; width: 100%; border-radius: 5px; image-rendering: auto; box-shadow: 0 35px 60px rgba(0,0,0,.62), 0 0 0 1px rgba(255,255,255,.23); }
.card-face-preview span { padding: 4px 8px; color: #8fa89e; background: rgba(4,18,15,.78); font: 700 6px Arial,sans-serif; letter-spacing: .18em; white-space: nowrap; }
.card-back { transform: translate(58px,-4px) rotate(9deg); filter: brightness(.72) saturate(.82); }
.card-front { transform: translate(-35px,-22px) rotate(-4deg); animation: card-float 4s ease-in-out infinite; z-index: 2; }
.card-stage:hover .card-back { transform: translate(82px,-4px) rotate(11deg); filter: brightness(.9) saturate(.92); }
.card-face-preview { transition: transform .45s ease, filter .45s ease; }
.card-shadow { position: absolute; width: 200px; height: 50px; border-radius: 50%; bottom: 46px; background: rgba(0,0,0,.56); filter: blur(18px); animation: shadow-pulse 4s ease-in-out infinite; }
.spark { position: absolute; color: var(--gold-pale); font-style: normal; text-shadow: 0 0 16px var(--gold); animation: twinkle 2.3s ease-in-out infinite; z-index: 3; }
.spark-one { left: 48px; top: 92px; font-size: 24px; }.spark-two { right: 32px; top: 165px; animation-delay: -.8s; }.spark-three { left: 73px; bottom: 103px; animation-delay: -1.5s; }
.card-caption { position: absolute; bottom: 10px; display: flex; flex-direction: column; text-align: center; }
.card-caption span { font: 600 7px Arial, sans-serif; letter-spacing: .25em; color: #6e9185; }.card-caption b { font: 600 12px "Cormorant Garamond", serif; letter-spacing: .16em; color: var(--gold); }

/* Streamlit controls */
.stButton { margin-top: 10px; }
.stButton > button {
  min-height: 54px; border-radius: 2px !important; border: 1px solid rgba(212,178,103,.58) !important;
  background: linear-gradient(180deg, #123e34, #09261f) !important; color: var(--gold-pale) !important;
  font-family: "Noto Serif KR", Georgia, serif !important; font-weight: 700 !important; letter-spacing: .08em !important;
  box-shadow: inset 0 0 0 3px #09251f, inset 0 0 0 4px rgba(212,178,103,.16), 0 10px 28px rgba(0,0,0,.28) !important;
  transition: transform .22s ease, border-color .22s ease, filter .22s ease !important;
}
.stButton > button:hover { transform: translateY(-2px); border-color: var(--gold-pale) !important; filter: brightness(1.15); }
.stButton > button:disabled { filter: grayscale(.8); opacity: .42; transform: none; }
.st-key-enter_security_office .stButton > button { transition: none !important; }
.st-key-enter_security_office .stButton > button:disabled {
  opacity: 1 !important; filter: none !important; transform: none !important;
}
div[class*="st-key-submit_"] .stButton > button,
.st-key-next_mission .stButton > button {
  border-color: rgba(99,187,255,.72) !important;
  color: #e2f4ff !important;
  background: linear-gradient(180deg, #164e73, #0a2945) !important;
  box-shadow: inset 0 0 0 3px #0a2945, inset 0 0 0 4px rgba(117,202,255,.22), 0 0 16px rgba(61,157,224,.14), 0 10px 28px rgba(0,0,0,.28) !important;
}
div[class*="st-key-submit_"] .stButton > button p,
.st-key-next_mission .stButton > button p { color: #e2f4ff !important; text-shadow: 0 0 9px rgba(114,201,255,.3); }
div[class*="st-key-submit_"] .stButton > button:hover,
.st-key-next_mission .stButton > button:hover { border-color: #a9ddff !important; box-shadow: inset 0 0 0 3px #0a2945, inset 0 0 0 4px rgba(157,220,255,.32), 0 0 22px rgba(75,174,238,.3), 0 10px 28px rgba(0,0,0,.3) !important; }
div[role="radiogroup"] { display: grid !important; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 10px; margin: 6px 0 14px; }
div[data-testid="stRadio"] div[role="radiogroup"] > label[data-baseweb="radio"] {
  position: relative; min-height: 76px; margin: 0 !important; padding: 14px 15px !important; overflow: hidden;
  border: 1px solid #947649; border-radius: 3px;
  background:
    radial-gradient(circle at 12% 16%, rgba(117,73,35,.12) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 74%, rgba(107,32,42,.08), transparent 28%),
    repeating-linear-gradient(2deg, rgba(91,62,35,.035) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, #f2e8cf, #dfcfaa) !important;
  box-shadow: inset 0 0 0 3px rgba(255,250,231,.48), inset 0 0 18px rgba(95,61,29,.11), 0 7px 16px rgba(0,0,0,.2);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, filter .2s ease;
}
div[data-testid="stRadio"] div[role="radiogroup"] > label[data-baseweb="radio"]::before {
  content: ""; position: absolute; inset: 5px; pointer-events: none;
  border: 1px solid rgba(111,76,39,.18);
}
div[data-testid="stRadio"] div[role="radiogroup"] > label[data-baseweb="radio"]:hover { border-color: #d4b267; transform: translateY(-2px) rotate(-.25deg); filter: brightness(1.04); }
div[data-testid="stRadio"] div[role="radiogroup"] > label[data-baseweb="radio"]:has(input:checked) {
  border-color: var(--gold-pale);
  background:
    radial-gradient(circle at 82% 30%, rgba(107,32,42,.14), transparent 27%),
    repeating-linear-gradient(-2deg, rgba(91,62,35,.04) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, #fff4d9, #e6d09e) !important;
  box-shadow: inset 0 0 0 3px rgba(107,32,42,.17), inset 0 0 20px rgba(95,61,29,.1), 0 0 0 2px rgba(212,178,103,.2), 0 10px 22px rgba(0,0,0,.25);
}
div[data-testid="stRadio"] div[role="radiogroup"] > label[data-baseweb="radio"]:has(input:checked)::after {
  content: "◆"; position: absolute; right: 10px; bottom: 7px; color: var(--burgundy); font-size: 10px;
}
div[data-testid="stRadio"] div[role="radiogroup"] > label[data-baseweb="radio"] > div:first-child { margin-top: 0 !important; }
div[data-testid="stRadio"] div[role="radiogroup"] > label[data-baseweb="radio"] p,
div[data-testid="stRadio"] div[role="radiogroup"] > label[data-baseweb="radio"] span,
div[data-testid="stRadio"] div[role="radiogroup"] > label[data-baseweb="radio"] div { color: #33271d !important; font-family: "Noto Serif KR", serif !important; font-weight: 700 !important; text-shadow: 0 1px rgba(255,255,255,.35); }
div[data-testid="stRadio"] div[role="radiogroup"] > label[data-baseweb="radio"]:has(input:checked) p,
div[data-testid="stRadio"] div[role="radiogroup"] > label[data-baseweb="radio"]:has(input:checked) span,
div[data-testid="stRadio"] div[role="radiogroup"] > label[data-baseweb="radio"]:has(input:checked) div { color: #5f1d27 !important; }
div[data-testid="stRadio"] > label p { color: var(--gold); font-size: 10px; letter-spacing: .15em; }
.choice-group-label { margin: 5px 0 10px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
div[class*="st-key-choice_"] { margin: 0 0 9px; }
div[class*="st-key-choice_"] .stButton { margin: 0; }
div[class*="st-key-choice_"] .stButton > button {
  position: relative; min-height: 62px; padding: 13px 22px !important; overflow: hidden;
  justify-content: flex-start !important; text-align: left !important;
  border: 1px solid rgba(85,217,178,.52) !important; border-radius: 2px !important;
  color: #d9fff3 !important;
  background:
    linear-gradient(90deg, rgba(30,117,93,.14), transparent 42%),
    linear-gradient(135deg, #0a241e, #061713) !important;
  clip-path: none;
  box-shadow: inset 3px 0 0 #45d7ad, inset 0 0 20px rgba(45,190,148,.08), 0 0 12px rgba(45,190,148,.09), 0 8px 18px rgba(0,0,0,.25) !important;
  font-family: "Noto Serif KR", serif !important; font-weight: 800 !important;
  text-shadow: 0 0 9px rgba(114,255,214,.28);
}
div[class*="st-key-choice_"] .stButton > button::before {
  content: ""; position: absolute; right: -35px; top: 50%; width: 78px; height: 1px;
  background: linear-gradient(90deg, transparent, #63e7c0); transform: translateY(-50%) rotate(-45deg);
  box-shadow: 0 0 8px rgba(99,231,192,.55);
}
div[class*="st-key-choice_"] .stButton > button p,
div[class*="st-key-choice_"] .stButton > button div,
div[class*="st-key-choice_"] .stButton > button span { color: #d9fff3 !important; font-weight: 800 !important; letter-spacing: .045em; text-align: left !important; }
div[class*="st-key-choice_"] .stButton > button p { width: 100%; margin: 0; text-align: left !important; }
div[class*="st-key-choice_"] .stButton > button:hover {
  transform: translateX(3px); border-color: #80f5d2 !important; filter: brightness(1.12);
  box-shadow: inset 4px 0 0 #80f5d2, inset 0 0 28px rgba(69,215,173,.13), 0 0 18px rgba(69,215,173,.2), 0 10px 22px rgba(0,0,0,.3) !important;
}
div[class*="st-key-choice_"] .stButton > button[kind="primary"] {
  border-color: var(--gold-pale) !important; color: #fff0bd !important;
  background: linear-gradient(90deg, rgba(212,178,103,.2), transparent 48%), linear-gradient(135deg, #17382f, #091c17) !important;
  box-shadow: inset 4px 0 0 var(--gold), inset 0 0 28px rgba(212,178,103,.12), 0 0 17px rgba(212,178,103,.22), 0 10px 22px rgba(0,0,0,.3) !important;
}
div[class*="st-key-choice_"] .stButton > button[kind="primary"] p { color: #fff0bd !important; text-shadow: 0 0 10px rgba(240,218,160,.35); }
div[class*="st-key-choice_"] .stButton > button[kind="primary"]::before { background: linear-gradient(90deg, transparent, var(--gold-pale)); box-shadow: 0 0 9px rgba(240,218,160,.65); }
div[data-testid="stExpander"] { border: 1px solid rgba(212,178,103,.18); border-radius: 2px; background: rgba(6,24,20,.66); }
div[data-testid="stExpander"] details summary p { color: var(--gold-pale); font-size: 18px; font-weight: 700; }
div[data-testid="stExpander"] details div p, div[data-testid="stExpander"] details li { color: #c8c0ae; font-size: 12px; }

/* Progress and mission headings */
.stepper { display: grid; grid-template-columns: repeat(5,1fr); margin: 26px 0 55px; position: relative; }
.stepper::before { content: ""; position: absolute; left: 10%; right: 10%; top: 17px; height: 1px; background: rgba(212,178,103,.22); }
.step-pill { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1; color: #687a73; font-size: 9px; letter-spacing: .12em; }
.step-pill i { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #345149; background: #071713; color: #748b82; font: 600 8px Arial, sans-serif; font-style: normal; }
.step-pill.active { color: var(--gold-pale); }.step-pill.active i { color: #0a221c; background: var(--gold); border-color: var(--gold-pale); box-shadow: 0 0 0 5px rgba(212,178,103,.08), 0 0 25px rgba(212,178,103,.24); }
.step-pill.done { color: #74a493; }.step-pill.done i { color: var(--gold); border-color: #3f7665; background: #0a2b23; }
.section-head { text-align: center; margin: 0 auto 32px; max-width: 780px; }
.eyebrow { color: var(--gold); font: 700 9px Arial, sans-serif; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow span { margin: 0 8px; }.section-head h2 { margin: 13px 0 8px; color: var(--paper); font-size: clamp(30px,4vw,45px); letter-spacing: -.035em; }.section-head p { margin: 0; color: #a9aaa0; font-size: 13px; }
.ornament { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 19px; color: var(--gold); font-size: 7px; }.ornament i { width: 70px; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,178,103,.56)); }.ornament i:last-child { transform: rotate(180deg); }

/* Shared bank-paper surfaces */
.concept-card { display: grid; grid-template-columns: 60px 1fr; gap: 18px; align-items: center; margin: 0 0 20px; padding: 18px 21px; border: 1px solid rgba(212,178,103,.28); background: linear-gradient(105deg, rgba(17,58,49,.83), rgba(7,25,21,.93)); position: relative; overflow: hidden; }
.concept-card::after { content: ""; position: absolute; width: 140px; height: 140px; border: 1px solid rgba(212,178,103,.07); border-radius: 50%; right: -55px; top: -70px; }
.concept-sigil { width: 45px; height: 45px; display: grid; place-items: center; border: 1px solid rgba(212,178,103,.45); transform: rotate(45deg); color: var(--gold); background: #09251f; }
.concept-sigil::first-letter { transform: rotate(-45deg); }.concept-card > div:last-child { display: flex; flex-direction: column; }.concept-card small { font: 700 9px Arial,sans-serif; color: #6d9588; letter-spacing: .2em; }.concept-card strong { color: var(--gold-pale); font-size: 16px; margin: 4px 0; }.concept-card p { color: #aaa99f; font-size: 13px; margin: 0; line-height: 1.7; }
.model-method { position: relative; display: grid; grid-template-columns: 112px 1fr; align-items: baseline; gap: 12px; padding: 7px 0 7px 16px; border-bottom: 1px solid rgba(212,178,103,.1); }
.model-method:last-child { border-bottom: 0; padding-bottom: 2px; }
.model-method::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.model-method b { color: var(--gold-pale); font: 700 15px "Cormorant Garamond",serif; letter-spacing: .03em; }
.model-method em { color: #c7c2b5; font-size: 14px; font-style: normal; line-height: 1.65; }
.attack-concept small { font-size: 10px; }.attack-concept strong { font-size: 18px; margin: 5px 0; }
.privacy-concept small { font-size: 10px; }.privacy-concept strong { font-size: 18px; margin: 5px 0; }.privacy-concept p { font-size: 15px; line-height: 1.75; }
.attack-method { position: relative; display: grid; grid-template-columns: 140px 1fr; align-items: baseline; gap: 12px; padding: 7px 0 7px 16px; border-bottom: 1px solid rgba(212,178,103,.1); }
.attack-method:last-child { border-bottom: 0; padding-bottom: 2px; }.attack-method::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.attack-method b { color: var(--gold-pale); font: 700 15px "Cormorant Garamond",serif; letter-spacing: .02em; }.attack-method em { color: #c7c2b5; font-size: 14px; font-style: normal; line-height: 1.65; }

.transaction-card { position: relative; overflow: hidden; padding: 75px 28px 27px; margin-bottom: 23px; color: #2a2118; border: 1px solid #a68a58; background:
    radial-gradient(circle at 50% 45%, transparent 0 90px, rgba(99,64,35,.045) 91px 92px, transparent 93px 118px, rgba(99,64,35,.04) 119px 120px, transparent 121px),
    repeating-linear-gradient(0deg, rgba(84,59,36,.024) 0 1px, transparent 1px 5px), #eee4cc;
  box-shadow: inset 0 0 0 6px #e8dcc1, inset 0 0 0 7px rgba(107,32,42,.25), 0 20px 50px rgba(0,0,0,.25);
}
.ledger-ribbon { position: absolute; left: -1px; right: -1px; top: 14px; min-height: 42px; display: flex; justify-content: space-between; align-items: center; padding: 0 27px; color: #f2dfba; background: #173c32; border-top: 1px solid #aa8a4a; border-bottom: 1px solid #aa8a4a; }
.ledger-ribbon span { font: 600 8px Arial,sans-serif; letter-spacing: .23em; }.ledger-ribbon b { font: 700 11px Arial,sans-serif; letter-spacing: .1em; }
.amount-hero { display: flex; flex-direction: column; align-items: center; padding: 18px 0 23px; border-bottom: 1px double rgba(74,49,30,.28); }.amount-hero small { color: #715e45; font: 700 8px Arial,sans-serif; letter-spacing: .2em; }.amount-hero b { color: #15382f; font-size: 36px; margin: 3px 0; }.amount-hero span { color: #865a43; font-size: 10px; letter-spacing: .12em; }
.transaction-grid { display: grid; grid-template-columns: repeat(2,1fr); }.datum { display: flex; justify-content: space-between; align-items: center; padding: 15px 11px; border-bottom: 1px solid rgba(78,50,29,.14); }.datum:nth-child(odd) { border-right: 1px solid rgba(78,50,29,.14); }.datum.wide { grid-column: 1/-1; border-right: 0; }.datum span { color: #786850; font-size: 10px; }.datum b { color: #2f2b22; font-size: 12px; }.ledger-stamp { position: absolute; right: 21px; bottom: 13px; transform: rotate(-9deg); border: 2px solid rgba(107,32,42,.22); color: rgba(107,32,42,.25); padding: 3px 7px; font: 800 12px Arial,sans-serif; letter-spacing: .1em; }
.question { text-align: center; margin: 30px 0 15px; }.question small { display: block; color: var(--gold); font: 700 8px Arial,sans-serif; letter-spacing: .22em; margin-bottom: 5px; }.question b { color: var(--paper); font-size: 14px; }

.result-card { position: relative; padding: 28px 28px 25px 95px; margin: 24px 0 15px; border: 1px solid rgba(212,178,103,.36); background: linear-gradient(125deg, rgba(14,56,47,.94), rgba(7,24,20,.97)); overflow: hidden; }
.result-card::after { content: ""; position: absolute; right: -60px; bottom: -95px; width: 220px; height: 220px; border: 1px solid rgba(212,178,103,.08); border-radius: 50%; box-shadow: 0 0 0 20px rgba(212,178,103,.025), 0 0 0 45px rgba(212,178,103,.02); }
.result-card.danger { background: linear-gradient(125deg, rgba(73,25,30,.95), rgba(25,10,12,.97)); border-color: rgba(187,83,90,.5); }.result-card h3 { margin: 7px 0 9px; font-size: 22px; color: var(--paper); }.result-card p { color: #bcb6a8; font-size: 12px; margin: 4px 0; }.result-seal { position: absolute; left: 24px; top: 28px; width: 48px; height: 48px; display: grid; place-items: center; color: var(--gold-pale); border: 1px solid var(--gold); border-radius: 50%; background: #0b2d25; box-shadow: inset 0 0 0 4px #09241e, 0 0 0 1px rgba(212,178,103,.17); font: 700 19px "Cormorant Garamond",serif; }
.attack-result .eyebrow { font-size: 11px; }.attack-result h3 { font-size: 27px; margin: 9px 0 12px; }.attack-result > p { font-size: 15px; line-height: 1.8; }.attack-result .agent-action { margin-top: 18px; padding: 15px 17px; }.attack-result .agent-action small { font-size: 9px; }.attack-result .agent-action b { font-size: 13px; line-height: 1.7; }
.reason-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }.reason-list span { color: #d1c7b1; border: 1px solid rgba(212,178,103,.18); padding: 5px 9px; font-size: 9px; background: rgba(0,0,0,.12); }.reason-list span::before { content: "✦"; color: var(--gold); margin-right: 5px; }
.agent-action { display: flex; flex-direction: column; margin-top: 15px; padding: 12px 14px; border-left: 2px solid var(--gold); background: rgba(0,0,0,.15); }.agent-action small { color: var(--gold); font: 700 7px Arial,sans-serif; letter-spacing: .2em; }.agent-action b { color: #d7cebb; font-size: 10px; margin-top: 4px; }
.score-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 18px; }.score-chip { padding: 15px 12px; display: flex; flex-direction: column; border: 1px solid rgba(212,178,103,.18); background: rgba(0,0,0,.14); }.score-chip.best { border-color: rgba(212,178,103,.58); background: rgba(212,178,103,.09); }.score-chip span { color: #9d9e95; font-size: 9px; }.score-chip b { color: var(--paper); font: 700 24px "Cormorant Garamond",serif; }.score-chip small { color: #63887d; font: 700 6px Arial,sans-serif; letter-spacing: .15em; }
.model-fit-list { display: grid; gap: 8px; margin-top: 18px; }
.model-fit-row { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid rgba(212,178,103,.18); background: rgba(0,0,0,.14); }
.model-fit-row.best { border-color: rgba(212,178,103,.58); background: rgba(212,178,103,.09); box-shadow: inset 3px 0 0 var(--gold); }
.model-fit-row > span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; min-width: 0; }
.model-fit-row > span b { color: var(--paper); font: 700 15px "Cormorant Garamond",serif; white-space: nowrap; }
.model-fit-row > span em { color: #aeb8b1; font: 600 11px "Noto Serif KR",serif; font-style: normal; }
.model-fit-row > small { flex: none; padding: 4px 7px; color: #82978f; border: 1px solid rgba(130,151,143,.25); font: 700 8px Arial,sans-serif; letter-spacing: .08em; }
.model-fit-row.best > small { color: var(--gold-pale); border-color: rgba(212,178,103,.48); background: rgba(212,178,103,.08); }

/* Mission-specific diagrams */
.model-scenario { margin: 0 0 16px; padding: 22px 25px; border-left: 3px solid var(--gold); background: linear-gradient(100deg, rgba(107,32,42,.32), rgba(8,31,26,.82) 62%); }
.model-scenario > small { color: var(--gold); font: 700 10px Arial,sans-serif; letter-spacing: .2em; }.model-scenario h3 { margin: 6px 0 8px; color: var(--paper); font-size: 22px; }.model-scenario p { margin: 0; color: #c3bcae; font-size: 15px; }.model-scenario > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }.model-scenario span { padding: 6px 10px; border: 1px solid rgba(212,178,103,.22); color: #d9cba9; background: rgba(0,0,0,.14); font-size: 11px; }
.bank-network { min-height: 245px; padding: 32px 36px 23px; overflow: hidden; border: 1px solid rgba(212,178,103,.24); background: radial-gradient(circle at 50% 46%, rgba(36,117,94,.2), transparent 45%), rgba(3,16,13,.62); margin-bottom: 24px; }
.bank-row { position: relative; display: grid; grid-template-columns: repeat(3,1fr); gap: 38px; align-items: end; }
.bank-row::before { content: ""; position: absolute; z-index: 0; left: 16.66%; right: 16.66%; top: 76px; height: 1px; background: linear-gradient(90deg, rgba(86,196,163,.25), #58d8b1 20%, #d4b267 50%, #58d8b1 80%, rgba(86,196,163,.25)); box-shadow: 0 0 8px rgba(80,219,177,.35); }
.bank-row::after { content: ""; position: absolute; z-index: 3; left: 16.66%; top: 72px; width: 9px; height: 9px; border: 1px solid #f5dfa3; border-radius: 50%; background: #7dffd8; box-shadow: 0 0 6px #7dffd8, 0 0 16px #45d7ad, 0 0 28px rgba(69,215,173,.8); animation: bank-signal 3.6s ease-in-out infinite; }
.bank-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.bank-node > b { color: var(--paper); font: 700 11px Arial,sans-serif; letter-spacing: .13em; margin-top: 10px; }
.bank-node > small { color: #82978f; font-size: 9px; margin-top: 3px; }
.bank-building { position: relative; width: 104px; height: 75px; padding-top: 24px; filter: drop-shadow(0 10px 15px rgba(0,0,0,.35)); animation: bank-consider 3.6s ease-in-out infinite; }
.bank-node:nth-child(2) .bank-building { animation-delay: -2.4s; }.bank-node:nth-child(3) .bank-building { animation-delay: -1.2s; }
.bank-building::before { content: ""; position: absolute; left: 4px; right: 4px; top: 0; height: 27px; clip-path: polygon(50% 0,100% 82%,100% 100%,0 100%,0 82%); background: linear-gradient(135deg, #d6b66c, #876b39); }
.bank-building::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; border-top: 2px solid #d4b267; border-bottom: 2px solid #735b35; background: #153d33; }
.bank-building span { display: block; height: 44px; margin: 0 9px; border: 1px solid #816a41; background: repeating-linear-gradient(90deg, #153d33 0 9px, #c7a75e 9px 12px, #071b17 12px 22px); }
.bank-building i { position: absolute; left: 50%; top: 9px; z-index: 2; transform: translateX(-50%); color: #0b2c24; font: 800 10px Arial,sans-serif; font-style: normal; }
.network-search { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; color: #72a797; }
.network-search span { width: 52px; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,178,103,.45)); }.network-search span:last-child { transform: rotate(180deg); }
.network-search b { font: 700 8px Arial,sans-serif; letter-spacing: .2em; }
.attack-ledger { display: grid; grid-template-columns: 58px 1.5fr repeat(3,1fr); align-items: center; gap: 15px; padding: 25px; margin-bottom: 24px; border: 1px solid rgba(186,70,77,.48); background: linear-gradient(120deg, rgba(78,23,29,.82), rgba(18,13,13,.94)); }.alert-sigil { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #c27176; transform: rotate(45deg); color: #f0b2ad; font-size: 23px; }.attack-ledger > div:nth-child(2) { display: flex; flex-direction: column; }.attack-ledger > div:nth-child(2) small { color: #cf8587; font: 700 9px Arial,sans-serif; letter-spacing: .17em; }.attack-ledger > div:nth-child(2) b { color: #f0d9c8; font-size: 17px; margin: 5px 0; }.attack-ledger > div:nth-child(2) span { color: #bd9992; font-size: 11px; }.attack-metric { display: flex; flex-direction: column; padding-left: 13px; border-left: 1px solid rgba(202,113,117,.2); }.attack-metric span { color: #bc7d7f; font: 700 9px Arial,sans-serif; letter-spacing: .11em; }.attack-metric b { color: #f0d5bf; font-size: 20px; }.attack-metric small { color: #a1837e; font-size: 10px; }
.privacy-scale { position: relative; display: grid; grid-template-columns: 1fr 1.5fr 1fr; align-items: center; min-height: 235px; padding: 28px 42px; margin-bottom: 23px; border: 1px solid rgba(212,178,103,.32); background: repeating-linear-gradient(90deg, transparent 0 23px, rgba(212,178,103,.025) 24px 25px), radial-gradient(circle at 50% 55%, rgba(50,145,116,.25), transparent 42%), rgba(4,20,16,.68); text-align: center; overflow: hidden; }
.privacy-scale::before { content: ""; position: absolute; inset: 8px; pointer-events: none; border: 1px solid rgba(212,178,103,.12); box-shadow: inset 0 0 28px rgba(212,178,103,.035); }
.scale-copy { display: flex; flex-direction: column; }.scale-copy small { color: #76a99a; font: 700 9px Arial,sans-serif; letter-spacing: .17em; }.scale-copy b { color: var(--paper); font-size: 15px; }
.balance-scale { position: relative; width: 230px; height: 175px; margin: 0 auto; filter: drop-shadow(0 0 15px rgba(212,178,103,.28)); }
.balance-scale::before { content: ""; position: absolute; left: 50%; top: 5px; width: 168px; height: 112px; transform: translateX(-50%); border: 1px solid rgba(212,178,103,.16); border-bottom: 0; border-radius: 52% 52% 0 0; box-shadow: 0 -5px 22px rgba(212,178,103,.07); }
.balance-scale::after { content: "✦  ❦  ✦"; position: absolute; left: 50%; top: 1px; transform: translateX(-50%); color: rgba(240,218,160,.72); font-size: 11px; letter-spacing: .32em; text-shadow: 0 0 10px rgba(212,178,103,.55); white-space: nowrap; }
.balance-stand { position: absolute; inset: 0; }.balance-stand::before { content: ""; position: absolute; left: 50%; top: 45px; width: 42px; height: 10px; transform: translateX(-50%); border: 1px solid #c29a50; border-radius: 50% 50% 20% 20%; background: linear-gradient(#d7b66c,#6f542e); box-shadow: 0 0 12px rgba(212,178,103,.38); }.balance-stand::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 116px; height: 15px; transform: translateX(-50%); clip-path: polygon(12% 0,88% 0,100% 100%,0 100%); border: 1px solid #c29a50; background: linear-gradient(90deg,#173b31,#b18c49 18%,#23483c 50%,#b18c49 82%,#173b31); box-shadow: 0 0 13px rgba(212,178,103,.3); }.balance-stand i { position: absolute; left: 50%; top: 50px; width: 7px; height: 96px; transform: translateX(-50%); border-left: 1px solid #6d522c; border-right: 1px solid #6d522c; background: linear-gradient(90deg, #806333, var(--gold-pale) 48%, #806333); box-shadow: 0 0 10px rgba(212,178,103,.42); }.balance-stand span { position: absolute; left: 50%; bottom: 20px; width: 92px; height: 9px; transform: translateX(-50%); border: 1px solid #c29a50; border-radius: 50%; background: #183d33; box-shadow: 0 0 13px rgba(212,178,103,.25); }
.balance-beam { position: absolute; left: 50%; top: 47px; width: 194px; height: 4px; transform-origin: center; border-radius: 50%; background: linear-gradient(90deg, var(--gold), var(--gold-pale), var(--gold)); box-shadow: 0 0 7px var(--gold), 0 0 16px rgba(212,178,103,.55); animation: balance-sway 4.2s ease-in-out infinite; }
.balance-beam::before, .balance-beam::after { content: "◆"; position: absolute; top: 50%; transform: translateY(-50%) rotate(45deg); color: var(--gold-pale); font-size: 13px; text-shadow: 0 0 9px var(--gold); }.balance-beam::before { left: -7px; }.balance-beam::after { right: -7px; }
.balance-beam > b { position: absolute; left: 50%; top: 50%; width: 23px; height: 23px; display: grid; place-items: center; transform: translate(-50%,-50%) rotate(45deg); color: var(--gold-pale); border: 1px solid var(--gold); background: #0b3027; box-shadow: 0 0 14px rgba(212,178,103,.65); font-size: 8px; }
.balance-pan { position: absolute; top: 0; width: 70px; height: 68px; transform-origin: 50% 0; animation: balance-pan-level 4.2s ease-in-out infinite; }.pan-left { left: -34px; }.pan-right { right: -34px; }
.balance-pan i::before, .balance-pan i::after { content: ""; position: absolute; top: 3px; left: 50%; width: 1px; height: 43px; transform-origin: top; background: linear-gradient(var(--gold), rgba(212,178,103,.35)); }.balance-pan i::before { transform: rotate(18deg); }.balance-pan i::after { transform: rotate(-18deg); }
.balance-pan span { position: absolute; left: 50%; top: 39px; width: 66px; height: 18px; transform: translateX(-50%); border: 1px solid var(--gold); border-top: 0; border-radius: 0 0 50% 50%; background: linear-gradient(rgba(212,178,103,.14), rgba(9,43,35,.75)); box-shadow: 0 5px 12px rgba(0,0,0,.35), 0 0 10px rgba(212,178,103,.18); }

/* The physical back (2.png) stays visible next to its digital result. */
.result-showcase { display: grid; grid-template-columns: minmax(220px,.75fr) 1.4fr; gap: 22px; align-items: stretch; }
.completed-card { min-height: 510px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; padding: 25px; border: 1px solid rgba(212,178,103,.3); background: radial-gradient(circle, rgba(38,106,88,.18), transparent 58%), rgba(4,20,16,.72); }
.completed-card img { display: block; width: min(100%,238px); border-radius: 5px; image-rendering: auto; box-shadow: 0 28px 60px rgba(0,0,0,.48), 0 0 0 1px rgba(240,218,160,.28); }
.completed-card span { color: #8fa89e; font-size: 9px; letter-spacing: .08em; text-align: center; }
.rank-card { position: relative; min-height: 510px; overflow: hidden; border: 1px solid var(--gold); background: #071d18; box-shadow: 0 28px 70px rgba(0,0,0,.42); }
.rank-card::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(240,218,160,.24); pointer-events: none; }.rank-overlay { position: relative; z-index: 2; min-height: 510px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 42px; background: radial-gradient(circle, rgba(20,72,59,.88), rgba(3,18,14,.96) 64%, rgba(35,9,13,.9)); }.rank-overlay > small { color: var(--gold); font: 700 8px Arial,sans-serif; letter-spacing: .25em; }.rank-overlay > span { color: #8aa399; font: 700 9px Arial,sans-serif; letter-spacing: .25em; margin-top: 28px; }.rank-overlay h2 { color: var(--gold-pale); font: 700 clamp(31px,5vw,54px) "Cormorant Garamond",serif; letter-spacing: .04em; margin: 4px 0 22px; text-shadow: 0 5px 25px #000; }.rank-body { width: min(440px,90%); padding: 18px 0; border-top: 1px solid rgba(212,178,103,.28); border-bottom: 1px solid rgba(212,178,103,.28); }.rank-line { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; gap: 15px; }.rank-line span { color: #bdbaa9; font-size: 11px; }.rank-line b { color: var(--gold); letter-spacing: .12em; white-space: nowrap; }.rank-score { display: flex; align-items: baseline; gap: 6px; margin-top: 20px; }.rank-score b { color: var(--paper); font: 700 35px "Cormorant Garamond",serif; }.rank-score span { color: #779188; font: 700 8px Arial,sans-serif; letter-spacing: .16em; }
.takeaway-card { margin: 18px 0; padding: 28px 32px; border: 1px solid rgba(212,178,103,.28); background: linear-gradient(125deg, rgba(14,56,47,.84), rgba(6,23,19,.94)); }.takeaway-card > small { color: var(--gold); font: 700 10px Arial,sans-serif; letter-spacing: .2em; }.takeaway-card h3 { margin: 7px 0 20px; color: var(--paper); font-size: 25px; }.takeaway-card ol { margin: 0; padding: 0; list-style: none; counter-reset: takeaway; }.takeaway-card li { counter-increment: takeaway; display: grid; grid-template-columns: 34px 165px 1fr; align-items: baseline; gap: 11px; padding: 11px 0; border-bottom: 1px solid rgba(212,178,103,.1); }.takeaway-card li:last-child { border-bottom: 0; }.takeaway-card li::before { content: "0" counter(takeaway); color: var(--gold); font: 700 14px Arial,sans-serif; }.takeaway-card li b { color: var(--gold-pale); font-size: 15px; }.takeaway-card li span { color: #c3beb1; font-size: 14px; line-height: 1.7; }
.operator-note { text-align: center; color: #435d54; font: 700 7px Arial,sans-serif; letter-spacing: .23em; margin: 38px 0 0; }

/* Card issuance: vault opens, card floats, then moves toward the visitor/camera */
.deal-overlay { position: fixed; inset: 0; z-index: 999999; pointer-events: none; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at center, #164f40 0, #071c17 38%, #020806 78%); animation: overlay-exit 2.65s ease-in-out forwards; }
.deal-rays { position: absolute; width: 90vmin; height: 90vmin; border-radius: 50%; opacity: .35; background: repeating-conic-gradient(from 0deg, transparent 0 7deg, rgba(212,178,103,.13) 8deg 9deg, transparent 10deg 16deg); animation: vault-spin 18s linear infinite; }
.deal-copy { position: absolute; left: 50%; top: 9%; transform: translateX(-50%); display: flex; flex-direction: column; text-align: center; }.deal-copy small { color: var(--gold); font: 700 8px Arial,sans-serif; letter-spacing: .25em; }.deal-copy b { color: var(--paper); font-size: 22px; margin: 7px 0 3px; white-space: nowrap; }.deal-copy span { color: #8fa89e; font-size: 11px; }.deal-particles { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 520px; text-align: center; color: var(--gold-pale); text-shadow: 0 0 20px var(--gold); letter-spacing: 1.2em; }
.issued-card { position: absolute; left: 50%; top: 51%; width: 205px; aspect-ratio: 238/333; perspective: 1100px; opacity: 1; animation: card-issued 2.45s cubic-bezier(.22,.7,.24,1) forwards; }
.issued-card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: issued-card-flip 2.45s cubic-bezier(.45,.05,.22,1) forwards; }
.issued-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 5px; backface-visibility: hidden; box-shadow: 0 25px 75px rgba(0,0,0,.72), 0 0 38px rgba(212,178,103,.35); }
.issued-back { transform: rotateY(180deg); }
.deal-overlay .deal-copy { opacity: 1; animation: issued-copy 2.5s ease-in-out forwards; }
.deal-overlay .deal-particles { opacity: .25; animation: issued-particles 2.4s ease-in-out forwards; }

@keyframes card-float { 0%,100% { transform: translate(-35px,-22px) rotate(-4deg); } 50% { transform: translate(-35px,-34px) rotate(-2.5deg); } }
@keyframes bank-signal { 0%,8% { left: 16.66%; opacity: .65; } 46%,54% { left: 50%; opacity: 1; } 92%,100% { left: 83.33%; opacity: .65; } }
@keyframes bank-consider { 0%,20%,100% { filter: drop-shadow(0 10px 15px rgba(0,0,0,.35)); } 10% { filter: drop-shadow(0 0 13px rgba(99,231,192,.6)) drop-shadow(0 10px 15px rgba(0,0,0,.35)); } }
@keyframes balance-sway { 0%,100% { transform: translateX(-50%) rotate(-5deg); } 50% { transform: translateX(-50%) rotate(5deg); } }
@keyframes balance-pan-level { 0%,100% { transform: rotate(5deg); } 50% { transform: rotate(-5deg); } }
@keyframes shadow-pulse { 0%,100% { transform: scale(.9); opacity: .55; } 50% { transform: scale(.72); opacity: .32; } }
@keyframes twinkle { 0%,100% { transform: scale(.55) rotate(0); opacity: .25; } 50% { transform: scale(1.2) rotate(45deg); opacity: 1; } }
@keyframes vault-spin { to { transform: rotate(360deg); } }
@keyframes card-issued { 0% { opacity: 1; transform: translate(-50%,-48%) scale(.92); } 14% { opacity: 1; transform: translate(-50%,-51%) scale(1.03); } 72% { opacity: 1; transform: translate(-50%,-53%) scale(1); } 88% { opacity: 1; transform: translate(-50%,-56%) scale(1); } 100% { opacity: 0; transform: translate(-50%,-65%) scale(.98); } }
@keyframes issued-card-flip { 0%,20% { transform: rotateY(180deg); } 58%,100% { transform: rotateY(0); } }
@keyframes issued-copy { 0%,76% { opacity: 1; transform: translate(-50%,0); } 100% { opacity: 0; transform: translate(-50%,-6px); } }
@keyframes issued-particles { 0% { opacity: .25; transform: translate(-50%,-50%) scale(.8); } 38% { opacity: .68; } 80% { opacity: .18; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.35) rotate(5deg); } }
@keyframes overlay-exit { 0%,84% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }

@media (max-width: 820px) {
  .block-container { padding: 1rem 1rem 3rem !important; }
  .sentinel-nav { grid-template-columns: 1fr auto; }.nav-note { display: none; }
  .landing-shell { min-height: 820px; grid-template-columns: 1fr; padding: 36px 26px 48px; text-align: center; }.landing-copy { padding-top: 8px; }.landing-copy > p br { display: none; }.hero-oath { justify-content: center; margin-inline: auto; }.card-stage { height: 420px; }.landing-foot { left: 50%; transform: translateX(-50%); width: 90%; justify-content: center; }.landing-foot span:nth-of-type(2), .landing-foot i:nth-of-type(2) { display: none; }
  .attack-ledger { grid-template-columns: 58px 1fr; }.attack-metric { grid-column: 1/-1; border-left: 0; border-top: 1px solid rgba(202,113,117,.2); padding: 8px 0 0; }
  .result-showcase { grid-template-columns: 1fr; }.completed-card { min-height: auto; padding: 30px; }.completed-card img { width: min(72%,238px); }
}

@media (max-width: 560px) {
  .brand small, .nav-ledger { display: none; }.sentinel-nav { grid-template-columns: 1fr; }.landing-shell { min-height: 730px; padding-bottom: 30px; }.landing-copy h1 { font-size: 44px; }.card-stage { height: 370px; }.card-face-preview { width: 180px; }.card-back { transform: translate(43px,-4px) rotate(8deg); }.card-front { transform: translate(-28px,-20px) rotate(-4deg); }.card-stage:hover .card-back { transform: translate(54px,-4px) rotate(10deg); }.vault-halo { width: 310px; height: 310px; }.vault-door { width: 230px; height: 230px; }.landing-foot { display: none; }
  .stepper { margin-bottom: 38px; }.step-pill span { display: none; }.section-head h2 { font-size: 30px; }
  .concept-card { grid-template-columns: 44px 1fr; padding: 16px; }.concept-sigil { width: 35px; height: 35px; }
  .model-method, .attack-method { grid-template-columns: 1fr; gap: 1px; padding-block: 8px; }.model-method b, .attack-method b { font-size: 14px; }.model-method em, .attack-method em { font-size: 13px; }
  .model-scenario { padding: 19px 17px; }.model-scenario h3 { font-size: 20px; }.model-scenario p { font-size: 14px; }.model-scenario span { font-size: 10px; }
  .bank-network { min-height: auto; padding: 24px 14px; }.bank-row { gap: 8px; }.bank-row::before { top: 63px; }.bank-row::after { top: 59px; }.bank-building { width: 78px; height: 62px; padding-top: 20px; }.bank-building::before { height: 23px; }.bank-building span { height: 36px; margin-inline: 7px; }.bank-node > b { font-size: 9px; }.bank-node > small { font-size: 7px; }.network-search { margin-top: 25px; }.network-search span { width: 22px; }.network-search b { font-size: 7px; letter-spacing: .1em; }
  .transaction-card { padding-inline: 16px; }.transaction-grid { grid-template-columns: 1fr; }.datum:nth-child(odd) { border-right: 0; }.datum.wide { grid-column: auto; }.ledger-ribbon { padding-inline: 15px; }.amount-hero b { font-size: 28px; }
  div[role="radiogroup"] { grid-template-columns: 1fr 1fr; }.result-card { padding: 84px 19px 22px; }.result-seal { top: 20px; left: 19px; }.score-row { grid-template-columns: 1fr; }
  .privacy-scale { grid-template-columns: 1fr; gap: 6px; padding: 24px; }.balance-scale { width: 210px; height: 150px; }.scale-copy:first-child { order: 1; }.balance-scale { order: 2; }.scale-copy:last-child { order: 3; }
  .rank-card, .rank-overlay { min-height: 500px; }.rank-overlay { padding: 30px 20px; }.takeaway-card { padding: 22px 18px; }.takeaway-card li { grid-template-columns: 25px 1fr; gap: 8px; }.takeaway-card li span { grid-column: 2; }
  .deal-copy b { font-size: 17px; }.issued-card { width: 175px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .deal-overlay { display: none; }
}
