/* Seneca the Younger lesson. All rules scoped under .snc-* */

.snc-sc { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.snc-q { width: 100%; max-width: 340px; padding: 10px 14px; border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 14px 14px 0; }
.snc-q p { margin: 0; font: 500 16px/1.35 var(--serif); color: var(--text); }
.snc-q small { display: block; margin-top: 4px; font-size: 12px; color: var(--dim); }

.snc-loans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 300px; }
.snc-loan { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 14px; border: 1.5px solid var(--gold); color: var(--gold); font-weight: 800; font-size: 15px; background: rgba(252, 192, 80, .08); }
.snc-loan i { font-style: normal; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #ff9a8a; border: 2px solid #ff9a8a; border-radius: 6px; padding: 0 6px; transform: rotate(-8deg) scale(1.6); opacity: 0; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; }
.snc-loan.stamp i { opacity: 1; transform: rotate(-8deg) scale(1); }

/* Lyon */
.snc-cue { min-height: 30px; font: 900 26px var(--mono); color: var(--gold); text-align: center; }
.snc-city { width: 100%; max-width: 330px; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #1b2140; cursor: pointer; touch-action: manipulation; transition: background .1s; }
.snc-city svg { display: block; width: 100%; }
.snc-hill { fill: #2a3354; }
.snc-town rect, .snc-town path { fill: #8d93b8; }
.snc-river { fill: none; stroke: #3f78d8; stroke-width: 6; }
.snc-fire { opacity: 0; }
.snc-fire path { fill: #ff7a3c; }
.snc-city.burn { background: #5a1a14; }
.snc-city.burn .snc-fire { opacity: 1; }
.snc-city.burn .snc-town rect, .snc-city.burn .snc-town path { fill: #2a1410; }
.snc-city.burn .snc-hill { fill: #3a1a14; }
.snc-city:disabled { cursor: default; }
.snc-read { display: flex; gap: 10px; }
.snc-read span { padding: 6px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--dim); }
.snc-read b { font-family: var(--mono); color: var(--text); margin-left: 4px; }

/* the tablet */
.snc-tab { display: flex; width: 100%; max-width: 300px; height: 150px; gap: 6px; padding: 10px; border-radius: 12px; background: #7a5234; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.snc-tl, .snc-tr { flex: 1; border-radius: 6px; background: #2c2a26; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 8px; }
.snc-tw { font: italic 600 17px/1.25 var(--serif); color: #e8d8b0; text-align: center; opacity: 0; transition: opacity 1s; }
.snc-writ .snc-tw { opacity: 1; }

.snc-scroll { width: 100%; max-width: 330px; padding: 14px 18px; border-radius: 14px; background: #f1e7d3; color: #2a1f14; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); display: flex; flex-direction: column; gap: 8px; }
.snc-scroll p { margin: 0; font: 500 16px/1.3 var(--serif); }
.snc-sig { min-height: 16px; font-size: 13px; font-weight: 800; color: #8a3a2a; text-align: right; }

@media (max-height: 700px) {
  .snc-q p { font-size: 15px; }
  .snc-loan { padding: 8px 6px; }
  .snc-tab { height: 120px; }
  .snc-scroll { padding: 10px 14px; gap: 6px; }
  .snc-scroll p { font-size: 15px; }
  .snc-city { max-width: 290px; }
}
