* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #1a1412; color: #f1e6d8;
  font-family: "Malgun Gothic", "Segoe UI", system-ui, sans-serif; }
.hidden { display: none !important; }
.screen { min-height: 100vh; }

.btn { background: #c98a4b; color: #20140c; border: 0; border-radius: 14px; padding: 12px 26px; font-size: 18px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background .15s, transform .1s; }
.btn:hover { background: #e0a05f; }
.btn:active { transform: scale(.97); }
.btn.small { padding: 6px 14px; font-size: 14px; border-radius: 10px; }
.error { color: #ff9b86; }
.note { color: #cdbba5; font-size: 14px; }

/* home */
#home { display: flex; align-items: center; justify-content: center; padding: 20px; }
.card { background: #2a211c; border-radius: 22px; padding: 36px 48px; box-shadow: 0 12px 40px rgba(0,0,0,.45); text-align: center; min-width: 380px; }
.card h1 { font-size: 40px; margin: 0 0 10px; letter-spacing: 2px; color: #f6d9a8; }
.stage { color: #cdbba5; font-size: 16px; margin: 6px 0 18px; }
.packs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.btn.place { display: flex; justify-content: space-between; gap: 30px; font-size: 22px; }
.btn.place .visits { font-size: 14px; font-weight: 400; align-self: center; }
.practice { display: block; color: #cdbba5; font-size: 14px; margin: 8px 0; }
.settings { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 12px 0; }
.slider { color: #cdbba5; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.btn.quit { background: #5c4636; color: #f1e6d8; margin-top: 8px; }

/* phone (home screen) */
#home { flex-direction: column; gap: 16px; }
.phone { position: relative; width: 100%; max-width: 420px; min-height: 640px; background: #140e0b; border: 6px solid #3d3027;
  border-radius: 36px; padding: 18px 16px 22px; box-shadow: 0 12px 40px rgba(0,0,0,.55); overflow: hidden; }
.phone.busy { pointer-events: none; opacity: .6; }
.card.gamebar { width: 100%; max-width: 420px; min-width: 0; padding: 18px 20px; }
.gamebar .settings { flex-wrap: wrap; gap: 10px 18px; }
.ph-status { display: flex; justify-content: space-between; font-size: 15px; color: #cdbba5; padding: 0 8px 10px; }
.ph-lab { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; }
.ph-en { font-size: 11px; font-weight: 400; color: #a8998a; }
.ph-notes { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ph-note { display: flex; flex-direction: column; text-align: left; background: #2a211c; color: #f1e6d8; border: 0; border-radius: 14px;
  padding: 8px 14px; cursor: pointer; font-family: inherit; }
.ph-note:hover { background: #34281f; }
.ph-note-title { font-weight: 700; font-size: 14px; }
.ph-note-preview { font-size: 13px; color: #cdbba5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 8px; justify-items: center; padding-top: 10px; }
.ph-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0;
  color: #f1e6d8; cursor: pointer; font-family: inherit; font-size: 14px; }
.ph-icon { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 18px; background: #3d3027; font-size: 30px; }
.ph-tile:hover .ph-icon { background: #5c4636; }
.ph-badge { position: absolute; top: -4px; right: 2px; min-width: 22px; height: 22px; border-radius: 11px; background: #e04b3a; color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.ph-apphead { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid #3d3027; margin-bottom: 8px; }
#phtitle { font-size: 18px; font-weight: 700; }
#phbody { max-height: 520px; overflow-y: auto; }
.ph-row { padding: 10px 4px; border-bottom: 1px solid #3d3027; }
.ph-row.unread { border-left: 3px solid #c98a4b; padding-left: 8px; }
.ph-rowhead { display: flex; justify-content: space-between; font-size: 13px; color: #a8998a; margin-bottom: 4px; }
.ph-from { font-weight: 700; color: #f1e6d8; }
.ph-text .kotext { font-size: 17px; }
.ph-tools { margin-top: 4px; }
.ph-meaning { color: #b9a58f; font-size: 14px; margin-top: 4px; }
.ph-go { margin-top: 6px; }
.ph-empty, .ph-callstate { color: #a8998a; font-size: 14px; padding: 8px 0; }
.ph-section { margin-top: 14px; padding: 6px 4px; color: #f6d9a8; font-weight: 700; border-bottom: 1px solid #5c4636; }
.ph-bank { padding: 10px 4px 14px; text-align: center; }
.ph-bankname { font-size: 16px; color: #cdbba5; }
.ph-balance { font-size: 26px; font-weight: 700; color: #f6d9a8; margin-top: 4px; }
.ph-cash { font-size: 16px; color: #cdbba5; margin-top: 2px; }
.ph-bank .ph-lab { flex-direction: row; gap: 6px; }
.ph-bankrow { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.ph-bankrow .ph-memo { flex: 1; }
.ph-bankrow .ph-amt { font-weight: 700; }
.ph-when { font-size: 12px; color: #a8998a; }
.ph-place { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; background: #2a211c; color: #f1e6d8;
  border: 0; border-radius: 14px; padding: 10px 14px; margin-bottom: 8px; cursor: pointer; font-family: inherit; }
.ph-place:hover { background: #34281f; }
.ph-place.closed { opacity: .5; cursor: default; }
.ph-place-name { font-size: 18px; font-weight: 700; }
.ph-place-info, .ph-place-hours { font-size: 13px; color: #cdbba5; }
.ph-place-info .ph-lab { flex-direction: row; gap: 6px; }
.ph-place-why { font-size: 13px; color: #ff9b86; }
.ph-sheet { padding: 10px 4px; }
.ph-sheet-name { font-size: 22px; font-weight: 700; color: #f6d9a8; margin-bottom: 8px; }
.ph-sheet-lines { color: #cdbba5; font-size: 14px; display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.ph-skip { display: block; color: #cdbba5; font-size: 14px; margin: 10px 0; }
.ph-gobig, .ph-clockbtn { display: block; width: 100%; margin-top: 10px; }
.ph-gobig:disabled { opacity: .5; cursor: default; }
.ph-map { position: relative; height: 500px; overflow: hidden; border-radius: 14px; background: #e9dcc3; touch-action: none; user-select: none; cursor: grab; }
.ph-map-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.ph-map-img { display: block; width: 100%; height: 100%; pointer-events: none; }
.ph-map-label { position: absolute; transform: translate(-50%, -50%) scale(var(--inv, 1)); pointer-events: none; white-space: nowrap; text-align: center;
  font-size: 13px; font-weight: 700; color: #4a2f1a; text-shadow: 0 0 3px #fff8ea, 0 0 3px #fff8ea, 0 0 6px #fff8ea; }
.ph-map-label .ph-en { font-size: 9px; font-weight: 400; color: #5c4633; }
.ph-map-label.k-water { color: #1f5d6b; font-style: italic; }
.ph-map-label.k-road { color: #7a6a58; font-size: 11px; }
.ph-pin { position: absolute; display: flex; flex-direction: column; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
  transform: translate(-50%, -100%) scale(var(--inv, 1)); transform-origin: 50% 100%; z-index: 2; }
.ph-pin::after { content: ""; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid #7a4a22; margin-top: -1px; }
.ph-pin-icon { width: 34px; height: 34px; border-radius: 50%; background: #fff8ea; border: 2px solid #7a4a22; display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.ph-pin-name { position: absolute; top: 100%; margin-top: 2px; white-space: nowrap; font-size: 12px; font-weight: 700; color: #3a2413;
  background: rgba(255,248,234,.9); border-radius: 8px; padding: 1px 6px; }
.ph-pin-name .ph-lab { align-items: center; } .ph-pin-name .ph-en { font-size: 9px; color: #5c4633; }
.ph-pin.home { cursor: default; z-index: 1; } .ph-pin.home .ph-pin-icon { width: 38px; height: 38px; background: #f6d9a8; }
.ph-pin.closed .ph-pin-icon { filter: grayscale(1); opacity: .65; }
.ph-pin.sel { z-index: 3; } .ph-pin.sel .ph-pin-icon { border-color: #c9432b; box-shadow: 0 0 0 4px rgba(201,67,43,.3); }
.ph-pin.far { flex-direction: row; gap: 4px; background: #fff8ea; border: 2px solid #7a4a22; border-radius: 18px; padding: 3px 9px; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.ph-pin.far::after { display: none; }
.ph-pin.far .ph-pin-icon { width: auto; height: auto; border: 0; background: none; box-shadow: none; font-size: 15px; }
.ph-pin.far .ph-pin-name { position: static; margin: 0; background: none; padding: 0; } .ph-pin-arrow { font-weight: 700; color: #7a4a22; }
.ph-pin.far-left { transform: translate(0, -50%) scale(var(--inv, 1)); transform-origin: 0 50%; }
.ph-pin.far-right { transform: translate(-100%, -50%) scale(var(--inv, 1)); transform-origin: 100% 50%; }
.ph-pin.far-up { transform: translate(-50%, 0) scale(var(--inv, 1)); transform-origin: 50% 0; }
.ph-pin.far-down { transform: translate(-50%, -100%) scale(var(--inv, 1)); transform-origin: 50% 100%; }
.ph-map-zoom { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 4; }
.ph-map-zoom button { width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(20,14,11,.82); color: #f6d9a8; font-size: 20px; cursor: pointer; }
.ph-sheet.over { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 5; background: rgba(29,21,18,.95); border-radius: 16px; padding: 12px 14px; box-shadow: 0 4px 16px rgba(0,0,0,.5); cursor: default; }
.ph-sheet-x { position: absolute; right: 8px; top: 6px; background: none; border: 0; color: #cdbba5; font-size: 22px; cursor: pointer; }
.ph-map-rest { margin-top: 8px; color: #cdbba5; font-size: 13px; } .ph-chip { margin: 4px 6px 0 0; background: #2a211c; color: #f1e6d8; border: 0; border-radius: 12px; padding: 6px 12px; cursor: pointer; font-family: inherit; }
.ph-chip.closed { opacity: .5; }
.ph-map-free { position: absolute; transform: translate(-50%, -50%) scale(var(--inv, 1)); background: #d100d1; color: #fff; font-size: 10px; border-radius: 8px; padding: 0 4px; pointer-events: none; }
.ph-map-debug { position: absolute; left: 8px; bottom: 8px; z-index: 6; background: #000c; color: #fff; font: 12px monospace; padding: 2px 6px; border-radius: 6px; }
.ph-bigclock { font-size: 64px; font-weight: 700; text-align: center; color: #f6d9a8; margin-top: 14px; }
.ph-bigday { text-align: center; color: #cdbba5; margin-bottom: 18px; }
.ph-ring { position: absolute; inset: 0; z-index: 10; background: #140e0bf2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.ph-ring-from { font-size: 36px; font-weight: 700; color: #f6d9a8; }
.ph-ring-label { color: #cdbba5; font-size: 18px; }
.ph-ring-btns { display: flex; gap: 20px; margin-top: 20px; }
.ph-accept { background: #4f9a5b; color: #fff; }
.ph-accept:hover { background: #63b370; }
.ph-decline { background: #b5483a; color: #fff; }
.ph-decline:hover { background: #d05a4a; }

/* phone stage (a call) */
.pc-root { background: #120d0a; display: flex; align-items: center; justify-content: center; }
.pc-box { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pc-caller { font-size: 48px; font-weight: 700; color: #f6d9a8; }
.pc-label { font-size: 16px; color: #cdbba5; }
.pc-timer { font-size: 22px; color: #cdbba5; font-variant-numeric: tabular-nums; }
.pc-pulse { width: 120px; height: 120px; border-radius: 50%; margin-top: 24px; background: #3d3027; --lvl: 0; }
.pc-pulse.talking { box-shadow: 0 0 calc(18px + var(--lvl) * 40px) calc(4px + var(--lvl) * 10px) rgba(246,217,168,.45); background: #5c4636; }

/* scene */
#scene { position: relative; display: flex; flex-direction: column; height: 100vh; }
.stageroot { position: relative; flex: 1; overflow: hidden; background-color: #231913; }
.pl-root { background-image: none; }
.pl-panels { position: absolute; top: 5%; left: 4%; display: flex; gap: 20px; }
.pl-panel { width: 300px; background: #1d2a26; border: 8px solid #6b4a30; border-radius: 12px; padding: 14px 20px; box-shadow: 0 8px 22px rgba(0,0,0,.5); }
.pl-panel-title { text-align: center; color: #9bb5aa; letter-spacing: 6px; font-size: 12px; margin-bottom: 8px; }
.pl-row { display: flex; justify-content: space-between; font-size: 22px; color: #f4f0e4; padding: 6px 8px; border-radius: 8px; }
.pl-row.pointable, .pl-card.pointable, .pl-thing.pointable { cursor: pointer; outline: 2px dashed rgba(246,217,168,.6); }
.pl-row.pointable:hover, .pl-thing.pointable:hover { background: rgba(255,255,255,.12); }
.pl-figures { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); display: flex; gap: 40px; }
.pl-figure { position: relative; width: 220px; height: 300px; border-radius: 110px 110px 0 0; --lvl: 0; }
.pl-head { position: absolute; left: 60px; top: 0; width: 100px; height: 118px; border-radius: 50% 50% 46% 46%;
  background: #e6c3a1; box-shadow: inset 0 22px 0 #2a1b14; }
.pl-shoulders { position: absolute; left: 0; top: 130px; width: 220px; height: 170px; border-radius: 110px 110px 0 0; background: #8a5a3a; }
.pl-figure.talking { box-shadow: 0 0 calc(18px + var(--lvl) * 40px) calc(4px + var(--lvl) * 10px) rgba(246,217,168,.45); }
.pl-props { position: absolute; right: 6%; bottom: 10%; display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.pl-card { position: relative; width: 140px; height: 88px; border-radius: 10px; background: linear-gradient(135deg, #2f5d8a, #1d3550);
  box-shadow: 0 6px 12px rgba(0,0,0,.45); transform: rotate(-6deg); }
.pl-chip { position: absolute; left: 14px; top: 22px; width: 24px; height: 18px; border-radius: 4px; background: #d9b867; }
.pl-thing { background: #3d3027; border-radius: 10px; padding: 10px 16px; font-size: 20px; }
.pl-spots { position: absolute; left: 4%; bottom: 4%; display: flex; gap: 10px; flex-wrap: wrap; max-width: 60%; z-index: 3; }
.pl-spotbtn { background: #3d3027; color: #f1e6d8; border: 2px solid #5c4636; border-radius: 12px; padding: 8px 16px; font-size: 18px; cursor: pointer; font-family: inherit; }
.pl-spotbtn:hover { border-color: #c98a4b; background: #4a3a2f; }
.pl-spotbtn.here { border-color: #f6d9a8; background: #5c4636; cursor: default; }
.rm-root canvas { display: block; width: 100%; height: 100%; }
.rm-tag { position: absolute; transform: translate(-50%, -50%); z-index: 3; background: rgba(35,25,19,.85); color: #f1e6d8; border-radius: 999px; padding: 3px 12px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.rm-tag.far { opacity: .6; }
.rm-tip { position: absolute; z-index: 3; pointer-events: none; background: rgba(35,25,19,.9); color: #f1e6d8; border-radius: 6px; padding: 3px 8px; font-size: 13px; white-space: nowrap; }
.rm-loose { position: absolute; top: 4%; left: 4%; z-index: 3; display: flex; flex-wrap: wrap; gap: 10px; max-width: 60%; }
.pl-spotname { position: absolute; left: 4%; bottom: calc(4% + 54px); font-size: 13px; color: #cdbba5; z-index: 3; }
.pl-thing.pl-usable { cursor: pointer; outline: 2px dashed rgba(246,217,168,.6); }
.pl-hint { animation: pl-pulse 0.8s ease-in-out 5; outline: 3px solid #f6d9a8; }
.pl-mark { outline: 3px solid #f6d9a8; background: rgba(246,217,168,.2); }
@keyframes pl-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(246,217,168,0); } 50% { box-shadow: 0 0 14px 6px rgba(246,217,168,.8); } }
.tray { display: flex; gap: 12px; align-items: center; padding: 8px 20px; background: #1d1511; border-top: 1px solid #3d3027; flex-wrap: wrap; }
.tray-item { display: flex; align-items: center; gap: 8px; background: #3d3027; color: #f1e6d8; border: 2px solid #5c4636; border-radius: 10px;
  padding: 6px 14px; font-size: 16px; font-family: inherit; cursor: pointer; }
.tray-item:hover:not(:disabled) { border-color: #c98a4b; }
.tray-item:disabled { opacity: .55; cursor: default; }
.tray-item.pl-hint { border-color: #f6d9a8; }
.tray-card .pl-chip { position: static; display: inline-block; }
.lookbox { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 7; width: min(520px, 88vw); background: #f3f1ec; color: #1b1b1b;
  border-radius: 14px; padding: 22px 28px; box-shadow: 0 10px 40px rgba(0,0,0,.6); cursor: pointer; }
.lk-title { text-align: center; letter-spacing: 6px; font-size: 14px; color: #555; margin-bottom: 12px; }
.lk-row { display: flex; justify-content: space-between; gap: 20px; font-size: 28px; padding: 4px 0; }
.lk-en { font-size: 14px; color: #666; margin: -2px 0 6px; }
.pointmenu { bottom: 76px; width: min(480px, 90vw); z-index: 6; }
.thinking { position: absolute; top: 40%; left: 50%; transform: translateX(-50%); background: #2a211c; border-radius: 14px; padding: 2px 18px; font-size: 28px; color: #cdbba5; z-index: 4; }
.banner { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); background: #5a2a22; border-radius: 14px; padding: 10px 20px; font-size: 16px; z-index: 6; display: flex; gap: 12px; align-items: center; }
#bannerbtns { display: flex; gap: 8px; }
.leave { position: absolute; top: 12px; right: 14px; z-index: 5; background: #5c4636; color: #f1e6d8; }
.skip { position: absolute; top: 56px; right: 14px; z-index: 5; }
.choices { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); width: min(640px, 92vw); z-index: 5;
  display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; }
.partbar { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 5; display: flex; gap: 10px; align-items: center; }
.btn.part { background: #e3c9a8; color: #3a2616; border-radius: 999px; }
.choice { display: flex; gap: 12px; text-align: left; background: #2a211c; color: #f1e6d8; border: 2px solid #5c4636; border-radius: 12px;
  padding: 9px 14px; font-size: 19px; cursor: pointer; font-family: inherit; }
.choice:hover { border-color: #c98a4b; background: #34281f; }
.choice .n { color: #c98a4b; font-weight: 700; min-width: 18px; }
.choice.nothing { color: #a8998a; }
.choice.leave { color: #a8998a; border-color: #4a3a2e; }
.choicehead { font-size: 13px; color: #a8998a; margin: 8px 0 0 4px; pointer-events: none; }
.talkmark { text-align: center; color: #a8998a; font-size: 14px; }
#talkline { color: #cdbba5; font-size: 14px; }
.typebox { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); width: min(520px, 80vw); z-index: 6; }
.typebox input { width: 100%; font-size: 22px; padding: 12px 18px; border-radius: 14px; border: 2px solid #c98a4b; background: #2a211c; color: #f1e6d8; font-family: inherit; outline: none; }
.controls { min-height: 64px; display: flex; align-items: center; gap: 16px; padding: 8px 20px; background: #140e0b; flex-wrap: wrap; }
.mic { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #5c4636; cursor: pointer; position: relative; flex: none; }
.mic::after { content: ""; position: absolute; left: 14px; top: 8px; width: 12px; height: 18px; border-radius: 7px; background: #f1e6d8; }
.mic.rec { background: #e04b3a; box-shadow: 0 0 0 6px rgba(224,75,58,.35), 0 0 22px 6px rgba(224,75,58,.7); }
.hints { color: #a8998a; font-size: 14px; flex: 1; }
.slider.right { margin-left: auto; }

/* replay */
#replay { display: flex; justify-content: center; padding: 30px 14px 60px; }
.endwrap { width: min(760px, 100%); display: flex; flex-direction: column; gap: 18px; }
.got { background: #2a211c; border-radius: 18px; padding: 16px 20px; font-size: 18px; text-align: center; color: #f6d9a8; }
.replay { background: #2a211c; border-radius: 18px; padding: 10px 18px; }
.turn { padding: 10px 0; border-bottom: 1px solid #3d3027; }
.turn:last-child { border-bottom: 0; }
.turn.player { padding-left: 28px; color: #d6e6c9; }
.barline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kotext { font-size: 19px; line-height: 1.6; }
.w { cursor: pointer; border-bottom: 1px dotted #7a6a58; }
.w:hover { background: rgba(255,255,255,.12); }
.role { font-size: 12px; color: #a8998a; }
.play { background: #5c4636; border: 0; color: #f1e6d8; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; flex: none; }
.play:hover { background: #7a5d47; }
.tag { font-size: 12px; background: #8a3b2e; border-radius: 8px; padding: 1px 8px; }
.linetools { display: flex; gap: 8px; margin-top: 4px; padding-left: 40px; }
.mini { background: #3d3027; color: #cdbba5; border: 0; border-radius: 8px; padding: 2px 10px; font-size: 12px; cursor: pointer; font-family: inherit; }
.mini:hover { background: #5c4636; }
.mini.on { background: #8a3b2e; color: #f1e6d8; }
.mini:disabled { cursor: default; opacity: .7; }
.en { color: #b9a58f; font-size: 14px; margin-top: 4px; padding-left: 40px; }
.understood { color: #a8998a; font-size: 13px; margin-top: 3px; }
.myway { margin-top: 4px; display: flex; gap: 8px; align-items: center; }
.myinput { font-size: 14px; padding: 3px 8px; border-radius: 8px; border: 1px solid #5c4636; background: #1a1412; color: #f1e6d8; font-family: inherit; width: 260px; }
.saved { font-size: 12px; color: #9bc79b; }
.pointcard { margin-top: 4px; }
.lookrows { margin-top: 4px; padding-left: 14px; border-left: 2px solid #5c4636; }
.lookrow { display: flex; justify-content: space-between; gap: 20px; font-size: 16px; }
.endbuttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.explain { background: #2a211c; border-radius: 18px; padding: 16px 20px; white-space: pre-wrap; line-height: 1.55; font-size: 15px; }
.wordcard { position: absolute; z-index: 20; background: #f3f1ec; color: #1b1b1b; border-radius: 12px; padding: 10px 14px; max-width: 280px;
  box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.wc-base { font-size: 20px; font-weight: 700; }
.wc-en { font-size: 15px; margin-top: 2px; }
.wc-note { font-size: 13px; color: #555; margin-top: 4px; }
