:root {
  --screen: #f5f8f2;
  --surface: #ffffff;
  --soft-green: #e3eae1;
  --line: #d7ddd6;
  --ink: #353b35;
  --muted: #7e8880;
  --pink: #e82972;
  --pink-dark: #c7195c;
  --shadow: 0 2px 16px rgba(45, 64, 50, .08);
  --font: 'Noto Sans Myanmar', 'Myanmar Text', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { background: #dce4dc; }
body { margin: 0; color: var(--ink); background: #dce4dc; font-family: var(--font); line-height: 1.6; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; font: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mobile-app { position: relative; min-height: 100vh; min-height: 100dvh; max-width: 760px; margin: 0 auto; padding-bottom: 82px; background: var(--screen); box-shadow: 0 0 40px rgba(34, 49, 37, .1); overflow: hidden; }
.app-bar { position: sticky; top: 0; z-index: 5; min-height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 12px 28px 10px; background: rgba(231, 239, 229, .95); border-bottom: 1px solid rgba(118, 135, 119, .2); backdrop-filter: blur(12px); }
.app-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.app-brand-title { font-size: clamp(25px, 5vw, 37px); font-weight: 600; letter-spacing: -.06em; }
.app-brand-mark { position: relative; display: inline-block; width: 32px; height: 36px; transform: rotate(-7deg); }
.app-brand-mark span { position: absolute; left: 4px; top: 1px; width: 25px; height: 29px; border: 3px solid var(--ink); border-radius: 14px 5px 14px 5px; }
.app-brand-mark span::after { content: ''; position: absolute; left: 10px; top: 1px; width: 2px; height: 25px; background: var(--ink); transform: rotate(25deg); }
.app-brand-mark i { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 16px; border: 2px solid var(--ink); border-radius: 2px; background: var(--screen); transform: rotate(12deg); }
.icon-button { width: 42px; height: 42px; color: var(--ink); background: transparent; font-size: 30px; line-height: 1; cursor: pointer; }
.tab-layout { position: sticky; top: 78px; z-index: 4; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(205, 215, 205, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.tab-item { position: relative; min-height: 80px; padding: 12px 5px 15px; color: #fff; background: transparent; cursor: pointer; font-size: clamp(17px, 4vw, 25px); font-weight: 600; transition: color .18s ease, background .18s ease; }
.tab-item::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--pink); transform: scaleX(0); transition: transform .2s ease; }
.tab-item[aria-selected='true'] { color: #fff; background: rgba(231, 239, 229, .23); }
.tab-item[aria-selected='true']::after { transform: scaleX(1); }
.screen-pager { min-height: calc(100vh - 158px); min-height: calc(100dvh - 158px); padding: 0 0 38px; outline: none; touch-action: pan-y; }
.category-screen { padding: 20px 0 0; }
.screen-heading { position: relative; padding: 0 30px 20px; }
.screen-kicker { margin: 0 0 11px; color: var(--pink); font-size: clamp(24px, 6vw, 35px); font-weight: 500; line-height: 1.25; }
.screen-heading h1 { margin: 0; color: var(--ink); font-size: clamp(28px, 6vw, 40px); font-weight: 400; line-height: 1.35; letter-spacing: -.045em; }
.screen-count { position: absolute; right: 30px; bottom: 22px; color: var(--muted); font-size: 15px; letter-spacing: .05em; }
.category-content { animation: content-in .25s ease both; }
.category-content.is-switching { animation: content-out .16s ease both; }
@keyframes content-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }
@keyframes content-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-14px); } }
.book-section { margin-top: 8px; }
.section-title { margin: 0; padding: 13px 30px 14px; color: var(--pink); background: linear-gradient(90deg, rgba(205, 215, 205, .78), rgba(216, 226, 216, .35)); font-size: clamp(22px, 5vw, 31px); font-weight: 500; line-height: 1.35; }
.book-list { background: var(--surface); }
.book-row { width: 100%; min-height: 72px; display: grid; grid-template-columns: 40px 1fr 28px; align-items: center; gap: 10px; padding: 10px 24px 10px 30px; color: var(--ink); background: var(--surface); border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; transition: background .18s ease, color .18s ease; }
.book-row:hover, .book-row:focus-visible { color: var(--pink-dark); background: #fff6fa; outline: none; }
.row-number { color: #abb4ac; font-size: 12px; }
.row-title { font-size: clamp(22px, 5vw, 31px); line-height: 1.55; letter-spacing: -.04em; }
.row-arrow { color: #c5cec5; font-family: Georgia, serif; font-size: 30px; font-weight: 300; text-align: right; }
.floating-action { position: fixed; z-index: 8; right: max(20px, calc((100vw - 760px) / 2 + 22px)); bottom: 92px; width: 66px; height: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; border-radius: 50%; color: #fff; background: var(--pink); box-shadow: 0 6px 18px rgba(232, 41, 114, .32); cursor: pointer; font-size: 29px; line-height: 1; }
.floating-action span { margin-top: -2px; font-size: 11px; }
.bottom-nav { position: fixed; z-index: 7; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; min-height: 78px; padding: 9px max(18px, calc((100vw - 760px) / 2 + 18px)) max(9px, env(safe-area-inset-bottom)); background: rgba(241, 247, 239, .96); border-top: 1px solid rgba(126, 145, 128, .25); box-shadow: 0 -5px 20px rgba(50, 67, 53, .08); backdrop-filter: blur(15px); }
.bottom-nav-item { flex: 1; max-width: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: #343a35; background: transparent; cursor: pointer; font-size: 11px; }
.nav-icon { min-height: 27px; display: grid; place-items: center; font-family: Georgia, serif; font-size: 28px; line-height: 1; }
.more-icon { font-size: 24px; letter-spacing: 1px; }
.bottom-nav-item.is-active { color: var(--pink); font-weight: 700; }
.bottom-nav-item:focus-visible, .floating-action:focus-visible, .icon-button:focus-visible { outline: 3px solid rgba(232, 41, 114, .45); outline-offset: 3px; }
@media (min-width: 761px) {
  .bottom-nav { right: auto; left: 50%; width: 760px; transform: translateX(-50%); }
}
@media (max-width: 460px) {
  .app-bar { min-height: 70px; padding-inline: 20px; }
  .tab-layout { top: 70px; }
  .tab-item { min-height: 70px; font-size: 18px; }
  .screen-pager { min-height: calc(100dvh - 140px); }
  .screen-heading { padding-inline: 20px; }
  .screen-count { right: 20px; }
  .section-title { padding-inline: 20px; }
  .book-row { grid-template-columns: 28px 1fr 20px; padding-inline: 20px; }
  .row-title { font-size: 23px; }
  .floating-action { right: 18px; width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
