:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#f2f0e9;background:#081522}*{box-sizing:border-box}body{margin:0;background:linear-gradient(#06121e,#152f3f);min-height:100vh}header{border-bottom:1px solid #8e794e;display:flex;justify-content:space-between;align-items:center;padding:13px max(20px,calc((100vw - 1200px)/2));color:#d5bb7e;font-size:11px;letter-spacing:2px}.mark{font: bold 27px Georgia,serif;letter-spacing:3px}main{max-width:1200px;margin:25px auto;padding:0 18px}.welcome{display:grid;grid-template-columns:1.2fr 1fr;gap:25px}.poster{min-height:525px;border:1px solid #987947;border-radius:12px;background:linear-gradient(0deg,#071623 0%,transparent 65%),url('/cover.png') center/cover;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;text-align:center;padding:25px}.poster h1{font: bold 70px Georgia,serif;letter-spacing:10px;color:#ffe4a3;margin:0}.poster p{letter-spacing:4px}.poster h2{font:16px Georgia,serif;letter-spacing:2px}.panel{background:#132536;border:1px solid #556472;border-radius:12px;padding:20px;margin-bottom:18px;box-shadow:0 12px 28px #0003}.panel h2{font:normal 25px Georgia,serif;color:#f2d18d;margin:0 0 13px}.panel small{font:13px Arial;color:#9bb4c7}p{line-height:1.5;color:#cedbe2}label{display:block;margin:22px 0;color:#e0c996}input,select{display:block;width:100%;background:#071b2b;color:white;border:1px solid #82909e;border-radius:6px;font-size:16px;padding:12px;margin-top:7px}button{background:#d5aa5b;border:1px solid #f1d69c;color:#101a22;font-weight:750;border-radius:7px;padding:12px 18px;cursor:pointer;margin:5px 6px 5px 0}button:hover{filter:brightness(1.1)}button.secondary{background:#2e4353;color:#fff;border-color:#597080}button:disabled{opacity:.5;cursor:not-allowed}.mini{font-size:12px;padding:8px}.error{color:#ffa4a4;min-height:18px}.topline{display:flex;justify-content:space-between;align-items:center;gap:15px}.topline h1{font: bold 49px Georgia,serif;color:#f2cf81;margin:0}.topline p{margin:5px 0 20px}.code{font-size:23px;color:#f7d79c;font-weight:bold;letter-spacing:4px}.columns{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:18px}.cards{display:flex;gap:8px;flex-wrap:wrap}.playing{width:67px;height:99px;display:flex;flex-direction:column;justify-content:space-between;border:2px solid #d8c6a3;background:#fdf9ed;color:#171b23;border-radius:9px;padding:6px;cursor:pointer;box-shadow:0 5px 8px #0004;text-align:left;font-weight:800}.playing.red{color:#ad2635}.playing.selected{outline:3px solid #dfb552;transform:translateY(-4px)}.playing .suit{font-size:30px;text-align:center}.playing .industry{font-size:9px;line-height:1;color:#59626e;text-align:center}.hint{font-size:13px;color:#afbfce}.log{font-size:13px;color:#c5d8e0;max-height:250px;overflow:auto}.log div{border-bottom:1px solid #3b5161;padding:7px 0}.industryRow{display:flex;justify-content:space-between;border-bottom:1px solid #304658;padding:7px 0;font-size:13px}.pill{background:#31485d;border-radius:5px;padding:4px 7px;display:inline-block;margin:4px}.win{font:26px Georgia,serif;color:#f2d18d}.actionsRow{margin:12px 0;padding:8px;border-top:1px solid #34495a}.step{font-size:15px;color:#ecd196}.selectBlock{margin:10px 0}.note{font-size:12px;color:#aabcca}@media(max-width:760px){.welcome,.columns{grid-template-columns:1fr}.poster{min-height:300px}.poster h1{font-size:45px}.topline{display:block}.playing{width:60px;height:91px}}
[hidden]{display:none!important}

.scenario-art { display: block; width: 100%; height: auto; max-height: 220px; object-fit: cover; border-radius: 8px; }

.worldBar {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #0b1b28;
  border: 1px solid #8e794e;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  color: #f2d18d;
  box-shadow: 0 6px 15px #0006;
}
#industryList { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin-top: 5px; }
#industryList span { color: #f0f2f3; font-size: 12px; }
#industryList b { color: #afbfce; display: block; }
.activeStep { border-color: #e7ba61; box-shadow: 0 0 14px #e7ba6140; }
.guide { background: #3e3222; color: #ffe4a3; padding: 8px 10px; border-radius: 6px; }
.playing.received { outline: 2px solid #e7ba61; box-shadow: 0 0 14px #f9cb69; }
.playing.received.selected { outline: 3px solid #39c7df; }
.receipt { color: #f5d582; font-size: 13px; }
.receipt:empty { display: none; }
#scenarioGuide dt { color: #f2d18d; font-weight: bold; margin-top: 12px; }
#scenarioGuide dd { margin: 4px 0 0; color: #cedbe2; }
#chat div { overflow-wrap: anywhere; }
.code { font-size: 14px; letter-spacing: 1px; overflow-wrap: anywhere; }
@media(max-width:760px) {
  #industryList { grid-template-columns: repeat(4, 1fr); }
}
.transaction { display: flex; align-items: center; gap: 10px; border: 1px solid #8e794e; border-radius: 8px; padding: 8px; margin: 8px 0; }
.transaction img { border-radius: 5px; object-fit: cover; }
.transaction span { flex: 1; }
