/* shared-ui.base.css — Core · ชั้นสไตล์พื้นฐาน (แยกจาก style.css เดิม)
   ลำดับ <link> ใน index.html มีผลต่อการทับกันของกฎ — ไฟล์ชั้นเดียวกันเรียงตามเลขส่วน */
:root {
  --card: #fbf7ec;
  --blk: #1b1b1b;
  --red: #c0282d;
  --edge: #cfc7b0;
  --b1: #7a1f2b;
  --b2: #5d1520;
  --bg: #1f7a4a;
  --bg2: #145a36;
  --gold: #f2b84b;
  --ink: #fff;
  --mut: #b9c3e6;
  --panel: #16224d;
  --line: #34498f;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  background: linear-gradient(180deg, #2b2160 0%, #7a3b78 55%, #d9774f 100%) fixed;
  color: var(--ink);
  font-family: Sarabun, 'Noto Sans Thai', system-ui, sans-serif;
  font-size: 15px;
}
#app {
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin: auto;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
button {
  font-family: inherit;
}
button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.pill {
  background: #0008;
  border: 2px solid var(--gold);
  border-radius: 99px;
  padding: 2px 12px;
  font-weight: 700;
  font-size: 14px;
}
.o {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: var(--mut);
  text-align: center;
}
.o b {
  color: #fff;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.m {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  margin-bottom: 5px;
  background: #0003;
  border-radius: 12px;
  overflow-x: auto;
  cursor: pointer;
}
.m i {
  font-style: normal;
  font-size: 12px;
  color: #e8f2ea;
  width: 56px;
  flex: none;
  overflow: hidden;
  text-overflow: ellipsis;
}
.empty {
  color: #cfe8d6;
  text-align: center;
  padding: 16px 0;
}
.back {
  width: 46px;
  height: 64px;
  border-radius: 7px;
  background: repeating-linear-gradient(45deg, var(--b1), var(--b1) 4px, var(--b2) 4px, var(--b2) 8px);
  border: 3px solid #fff;
  color: #fff;
  font: 700 15px Sarabun;
  cursor: pointer;
  box-shadow: 0 3px 0 #0005;
}
