  @import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@500;700;900&family=Noto+Sans+JP:wght@400;500;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

  :root{
    --bg:#FCF9EF; --surface:#FFFFFF; --surface-2:#EAF6F3;
    --ink:#1F332F; --ink-soft:#5F7D78; --ink-faint:#93AEA9; --line:#D6EAE5;
    --accent:#F2542D; --accent-ink:#FFF6EE; --accent-2:#2E8F82;
    --good:#2E8F62; --good-bg:#E4F1E9; --bad:#D6455B;
    --shadow-color:15,35,32;
    --shadow:10px 14px 0 0 rgba(var(--shadow-color),0.16);
  }
  @media (prefers-color-scheme: dark){
    :root:not([data-theme="light"]){
      --bg:#0E1A17; --surface:#17211F; --surface-2:#1E2B28;
      --ink:#F2EED9; --ink-soft:#9CBAB4; --ink-faint:#5D7B75; --line:#243733;
      --accent:#F5875F; --accent-ink:#3A1408; --accent-2:#4FBDB0;
      --good:#6FBF9A; --good-bg:#1C2E27; --bad:#E88A9B;
      --shadow-color:0,0,0;
      --shadow:10px 14px 0 0 var(--line);
    }
  }
  :root[data-theme="dark"]{
    --bg:#0E1A17; --surface:#17211F; --surface-2:#1E2B28;
    --ink:#F2EED9; --ink-soft:#9CBAB4; --ink-faint:#5D7B75; --line:#243733;
    --accent:#F5875F; --accent-ink:#3A1408; --accent-2:#4FBDB0;
    --good:#6FBF9A; --good-bg:#1C2E27; --bad:#E88A9B;
    --shadow-color:0,0,0;
    --shadow:10px 14px 0 0 var(--line);
  }

  *{ box-sizing:border-box; }
  body{ margin:0; background:var(--bg); color:var(--ink); font-family:"Noto Sans JP", system-ui, sans-serif; font-weight:500; display:flex; justify-content:center; min-height:100vh; }

  .phone{ width:100%; max-width:430px; min-height:100vh; background:var(--surface); position:relative; }
  .phone-screen{ position:relative; width:100%; min-height:100vh; height:100%; background:var(--bg); overflow:hidden; display:flex; flex-direction:column; }
  .screens{ flex:1; min-height:0; position:relative; }
  .screen{ display:none; position:absolute; inset:0; overflow-y:auto; padding:6px 20px 20px; }
  .screen[data-screen="snack"]{ padding-bottom:80px; }
  .screen.active{ display:block; }
  .screen::-webkit-scrollbar{ width:0; height:0; }

  .tabbar{ flex-shrink:0; display:flex; justify-content:space-around; align-items:center; padding:10px 8px calc(14px + env(safe-area-inset-bottom,0px)); border-top:1px solid var(--line); background:var(--surface); }
  .tabbar button{ display:flex; flex-direction:column; align-items:center; gap:4px; background:none; border:none; cursor:pointer; color:var(--ink-faint); font-family:"Noto Sans JP"; font-weight:500; font-size:10.5px; padding:4px 10px; border-radius:12px; }
  .tabbar button.active{ color:var(--accent); }
  .tabbar svg{ width:20px; height:20px; }

  h2.screen-title{ font-family:"Zen Kaku Gothic New", sans-serif; font-weight:700; font-size:22px; margin:14px 0 4px; text-wrap:balance; }
  .screen-sub{ color:var(--ink-soft); font-size:13px; margin:0 0 16px; line-height:1.6; }

  .capture-btn{
    display:flex; align-items:center; justify-content:center; gap:8px; width:100%;
    font-family:"Zen Kaku Gothic New",sans-serif; font-weight:700; font-size:17px; padding:20px 18px;
    border-radius:999px; border:none; cursor:pointer; background:var(--accent); color:var(--accent-ink);
    box-shadow:5px 8px 0 0 color-mix(in srgb, var(--accent) 60%, black 25%);
    transform:translateY(0); transition:transform .08s ease, box-shadow .08s ease;
  }
  .capture-btn:active{ transform:translate(4px,7px); box-shadow:1px 1px 0 0 color-mix(in srgb, var(--accent) 60%, black 25%); }
  .link-btn{
    display:block; width:100%; text-align:center; background:none; border:none; cursor:pointer;
    font-family:"Noto Sans JP"; font-weight:500; font-size:12.5px; color:var(--ink-soft); text-decoration:underline;
    padding:12px 0 4px;
  }
  .section-label{ font-family:"IBM Plex Mono",monospace; font-size:11px; letter-spacing:0.06em; text-transform:uppercase; color:var(--ink-faint); margin:22px 0 10px; }

  .snack-carousel{
    display:flex; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory; padding:2px 2px 6px;
    -webkit-mask-image:linear-gradient(to right, black 78%, transparent 100%);
    mask-image:linear-gradient(to right, black 78%, transparent 100%);
  }
  .snack-card{
    flex:0 0 76%; scroll-snap-align:start; text-align:left; border:1px solid var(--line); background:var(--surface);
    border-radius:20px; padding:13px 14px; cursor:pointer; box-shadow:4px 6px 0 0 rgba(var(--shadow-color),0.14);
  }
  .snack-card .sc-tag{ font-family:"IBM Plex Mono",monospace; font-size:10px; color:var(--accent-2); text-transform:uppercase; letter-spacing:0.04em; }
  .snack-card strong{ display:block; font-family:"Zen Kaku Gothic New",sans-serif; font-weight:700; font-size:15px; margin:5px 0 4px; }
  .snack-card span.teaser{ font-size:12px; color:var(--ink-soft); line-height:1.55; display:block; }
  .snack-card.is-read{ background:var(--surface-2); opacity:0.82; box-shadow:none; }
  .snack-card .rread{ font-size:9px; color:var(--accent-2); font-family:"IBM Plex Mono",monospace; margin-left:4px; text-transform:none; }

  .sc-title{ display:block; font-family:"Zen Kaku Gothic New",sans-serif; font-size:14.5px; font-weight:700; margin:5px 0 3px; line-height:1.35; }
  .sc-subtitle{ display:block; font-size:11px; color:var(--ink-faint); }

  .today-toggle{
    display:flex; margin-bottom:14px; border:1px solid var(--line); border-radius:999px;
    background:var(--surface); overflow:hidden;
  }
  .today-toggle-btn{
    flex:1; border:none; background:none; padding:9px 0;
    font-family:"Noto Sans JP"; font-weight:700; font-size:12.5px; color:var(--ink-soft); cursor:pointer;
  }
  .today-toggle-btn.active{ background:var(--ink); color:var(--bg); }
  .today-episode-card{ display:block; width:100%; text-align:left; border:none; cursor:pointer; font-family:inherit; }

  .today-carousel-wrap{ position:relative; margin:0 -20px; padding:0 20px; }
  .today-carousel{
    display:flex; gap:12px; overflow-x:auto; padding:2px 2px 4px;
    scrollbar-width:none; -ms-overflow-style:none;
  }
  .today-carousel::-webkit-scrollbar{ display:none; height:0; }
  .today-carousel-card{
    position:relative; flex:0 0 84%; height:230px; border-radius:22px; overflow:hidden;
    border:none; padding:0; cursor:pointer; background:var(--surface-2);
    box-shadow:4px 6px 0 0 rgba(var(--shadow-color),0.14);
  }
  .tcc-media{ position:absolute; inset:0; background:var(--surface-2); }
  .tcc-media svg{ width:100%; height:100%; display:block; border-radius:0; margin:0; }
  .tcc-media img{ width:100%; height:100%; display:block; object-fit:cover; }
  .tcc-overlay{
    position:absolute; left:0; right:0; bottom:0; padding:16px 16px 14px; text-align:left;
    background:linear-gradient(to top, rgba(15,25,22,0.82) 0%, rgba(15,25,22,0.45) 55%, transparent 100%);
  }
  .tcc-title{ font-family:"Zen Kaku Gothic New",sans-serif; font-weight:700; font-size:16px; color:#fff; margin:0 0 4px; line-height:1.35; }
  .tcc-meta{ font-family:"IBM Plex Mono",monospace; font-size:10.5px; color:rgba(255,255,255,0.82); margin:0; }
  .tc-nav{
    position:absolute; top:50%; transform:translateY(-50%); width:34px; height:34px; border-radius:50%;
    border:none; background:rgba(23,33,31,0.55); color:#fff; font-size:18px; line-height:1; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
  }
  .tc-nav-prev{ left:26px; }
  .tc-nav-next{ right:26px; }
  .today-list{ margin-top:20px; }
  .today-rank-badge{
    position:absolute; right:16px; bottom:16px; border-radius:999px; padding:8px 16px;
    background:var(--ink); color:var(--bg); font-family:"Zen Kaku Gothic New",sans-serif; font-weight:700; font-size:12.5px;
    box-shadow:3px 5px 0 0 rgba(var(--shadow-color),0.2);
  }
  .episode-fav-btn{
    position:absolute; right:16px; bottom:66px; width:40px; height:40px; border-radius:50%;
    border:1px solid var(--line); background:var(--surface); font-size:17px; cursor:pointer;
    display:flex; align-items:center; justify-content:center; box-shadow:3px 4px 0 0 rgba(var(--shadow-color),0.14);
  }
  .episode-fav-btn.on{ border-color:var(--bad); }

  .tag{ display:inline-flex; align-items:center; gap:6px; font-family:"IBM Plex Mono",monospace; font-size:10.5px; letter-spacing:0.05em; text-transform:uppercase; padding:4px 10px; border-radius:999px; background:var(--surface-2); color:var(--accent-2); border:1px solid var(--line); }
  .illus{ width:100%; height:120px; border-radius:20px; margin:14px 0; }
  .ep-title{ font-family:"Zen Kaku Gothic New",sans-serif; font-size:21px; font-weight:700; margin:10px 0 2px; text-wrap:balance; }
  .ep-meta{ font-family:"IBM Plex Mono",monospace; font-size:11.5px; color:var(--ink-faint); margin:0 0 12px; }
  .ep-body p{ font-size:14px; line-height:1.85; color:var(--ink); margin:0 0 12px; }

  .quiz-box{ margin-top:16px; padding-top:14px; border-top:1px dashed var(--line); }
  .quiz-icon{
    display:flex; align-items:center; justify-content:center;
    width:30px; height:30px; margin-bottom:8px; border-radius:50%;
    background:var(--accent); color:var(--accent-ink); font-family:"Zen Kaku Gothic New",sans-serif; font-weight:900; font-size:16px;
  }
  .quiz-q{ font-size:13.5px; font-weight:700; margin:0 0 10px; }

  .quiz-box.quiz-hero{
    margin-top:18px; padding:22px 18px; border:1px solid var(--line); border-top:1px solid var(--line);
    border-radius:22px; background:var(--surface-2); box-shadow:4px 6px 0 0 rgba(var(--shadow-color),0.14);
    animation:quizHeroIn .5s cubic-bezier(.2,.8,.2,1);
  }
  .quiz-box.quiz-hero .quiz-icon{ width:38px; height:38px; font-size:19px; }
  .quiz-box.quiz-hero .quiz-q{ font-size:16.5px; line-height:1.5; margin:0 0 14px; }
  @keyframes quizHeroIn{ from{ opacity:0; transform:translateY(28px); } to{ opacity:1; transform:translateY(0); } }
  @media (prefers-reduced-motion: reduce){ .quiz-box.quiz-hero{ animation:none; } }

  .snack-mini-toggle{
    position:absolute; left:16px; right:16px; bottom:14px;
    display:flex; gap:4px; padding:4px; border-radius:999px;
    background:color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter:blur(6px);
    border:1px solid var(--line); box-shadow:2px 4px 10px 0 rgba(var(--shadow-color),0.16);
  }
  .snack-mini-toggle button{
    flex:1; border:none; background:none; border-radius:999px; padding:6px 0;
    font-family:"Noto Sans JP"; font-weight:600; font-size:11px; color:var(--ink-soft); cursor:pointer;
  }
  .snack-mini-toggle button:active{ background:var(--surface-2); }
  .choice{ display:block; width:100%; text-align:left; padding:11px 15px; margin-bottom:8px; border-radius:999px; border:1px solid var(--line); background:var(--surface); font-family:"Noto Sans JP"; font-weight:500; font-size:13px; color:var(--ink); cursor:pointer; box-shadow:3px 4px 0 0 rgba(var(--shadow-color),0.12); }
  .choice.selected{ border-color:var(--accent); background:var(--surface-2); }
  .choice:disabled{ cursor:default; }
  .quiz-outcome-mini{ display:flex; align-items:center; gap:9px; font-family:"Zen Kaku Gothic New",sans-serif; font-size:24px; font-weight:900; margin:2px 0 10px; }
  .quiz-outcome-mini.good{ color:var(--good); }
  .quiz-outcome-mini.bad{ color:var(--bad); }
  .quiz-point-mini{ font-family:"IBM Plex Mono",monospace; font-size:11px; color:var(--ink-faint); font-weight:500; }
  .quiz-answer-note{ font-size:12.5px; color:var(--ink-soft); font-weight:600; margin:0 0 8px; }


  .wave-divider{
    height:14px; margin:22px 0 18px;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14' viewBox='0 0 20 14'%3E%3Cpath d='M0 7 Q5 0 10 7 T20 7' fill='none' stroke='%23D6EAE5' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat:repeat-x; background-position:left center; background-size:20px 14px;
  }
  @media (prefers-color-scheme: dark){
    :root:not([data-theme="light"]) .wave-divider{
      background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14' viewBox='0 0 20 14'%3E%3Cpath d='M0 7 Q5 0 10 7 T20 7' fill='none' stroke='%23243733' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    }
  }
  :root[data-theme="dark"] .wave-divider{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14' viewBox='0 0 20 14'%3E%3Cpath d='M0 7 Q5 0 10 7 T20 7' fill='none' stroke='%23243733' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  }

  .related-section{ margin-top:24px; padding:16px 14px; border-radius:20px; background:var(--surface-2); border:1px solid var(--line); }
  .related-label{ font-family:"IBM Plex Mono",monospace; font-size:11px; letter-spacing:0.06em; text-transform:uppercase; color:var(--ink-faint); margin:0 0 8px; }
  .related-item{ display:block; width:100%; text-align:left; padding:12px 13px; border-radius:14px; border:1px solid var(--line); background:var(--surface); color:var(--ink); cursor:pointer; margin-bottom:8px; box-shadow:3px 4px 0 0 rgba(var(--shadow-color),0.1); }
  .related-item.is-read{ background:var(--surface-2); border-color:var(--accent-2); box-shadow:none; }
  .related-item .rt{ display:block; font-family:"Zen Kaku Gothic New",sans-serif; font-size:14.5px; font-weight:700; }
  .related-item .rtype{ display:block; font-size:10.5px; color:var(--ink-faint); margin-top:2px; }
  .related-item .rread{ font-size:10px; color:var(--accent-2); font-family:"IBM Plex Mono",monospace; margin-left:6px; }
  .snack-next-actions{ margin-top:20px; padding-top:14px; border-top:1px solid var(--line); display:flex; flex-direction:column; gap:8px; }
  .snack-next-actions .btn.dim{ opacity:0.4; cursor:not-allowed; }

  .search-wrap input, .search-wrap textarea{ width:100%; padding:12px 14px; border-radius:14px; border:1px solid var(--line); background:var(--surface); color:var(--ink); font-family:"Noto Sans JP"; font-size:14px; margin-bottom:14px; }
  .search-wrap textarea{ resize:vertical; }
  .search-filter-icons{ display:flex; gap:8px; margin:-6px 0 10px; }
  .search-filter-icon-btn{ display:flex; align-items:center; gap:5px; padding:7px 12px; border-radius:999px; border:1px solid var(--line); background:var(--surface); color:var(--ink-soft); font-size:13px; cursor:pointer; }
  .search-filter-icon-btn span{ font-family:"Noto Sans JP"; font-size:11.5px; }
  .search-filter-icon-btn.active{ background:var(--surface-2); border-color:var(--accent-2); color:var(--accent-2); }
  .search-filter-dropdown{ display:flex; align-items:center; gap:8px; padding:10px 12px; border-radius:14px; border:1px solid var(--line); background:var(--surface-2); margin-bottom:10px; }
  .search-filter-dropdown select, .search-filter-dropdown input[type="date"]{ flex:1; padding:9px 10px; border-radius:10px; border:1px solid var(--line); background:var(--surface); color:var(--ink); font-family:"Noto Sans JP"; font-size:13px; }
  .search-item{ display:flex; justify-content:space-between; align-items:center; width:100%; text-align:left; padding:11px 13px; border-radius:14px; border:1px solid var(--line); background:var(--surface); cursor:pointer; font-family:"Noto Sans JP"; font-size:13.5px; color:var(--ink); margin-bottom:8px; }
  .search-item span{ font-size:11px; color:var(--ink-faint); }
  .empty-note{ text-align:center; color:var(--ink-faint); font-size:13px; padding:20px 10px; }
  .browse-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
  .browse-tile{ display:flex; flex-direction:column; align-items:center; gap:6px; padding:16px 6px; border-radius:20px; border:1px solid var(--line); background:var(--surface); cursor:pointer; font-size:22px; box-shadow:3px 4px 0 0 rgba(var(--shadow-color),0.12); }
  .browse-tile span{ font-family:"Noto Sans JP"; font-size:11.5px; color:var(--ink-soft); line-height:1.3; }
  .app-header{
    flex-shrink:0; position:relative; z-index:7;
    height:52px; padding:0 14px; padding-top:env(safe-area-inset-top,0px);
    display:flex; align-items:center; gap:10px;
    background:var(--bg);
  }
  .global-back-btn{
    width:34px; height:34px; flex-shrink:0; border-radius:50%; border:1px solid var(--line);
    background:var(--surface); color:var(--ink-soft); font-size:16px; line-height:1;
    display:none; align-items:center; justify-content:center; cursor:pointer;
    box-shadow:3px 4px 0 0 rgba(var(--shadow-color),0.14);
  }
  .app-header-title{ font-family:"Zen Kaku Gothic New",sans-serif; font-weight:700; font-size:15px; color:var(--ink); }
  .app-header.has-back .app-header-title{ display:none; }
  .app-header.has-back .global-back-btn{ display:flex; }

  .rank-badge{
    position:absolute; right:12px; bottom:76px; z-index:4; background:var(--surface); border:1px solid var(--line);
    border-radius:16px; padding:8px 10px; box-shadow:4px 6px 0 0 rgba(var(--shadow-color),0.18); min-width:88px;
    pointer-events:none; opacity:0; transform:translateX(24px); transition:opacity .25s ease, transform .25s ease;
  }
  .rank-badge.show{ opacity:1; transform:translateX(0); }
  .rank-badge-top{ display:flex; justify-content:space-between; align-items:center; gap:8px; font-family:"IBM Plex Mono",monospace; font-size:11px; color:var(--ink-soft); margin-bottom:5px; white-space:nowrap; }
  .rank-badge-rank{ color:var(--accent-2); font-weight:600; }
  .rank-badge-track{ height:5px; border-radius:999px; background:var(--surface-2); overflow:hidden; }
  .rank-badge-fill{ height:100%; background:var(--accent); border-radius:999px; transition:width .3s; }

  .avatar-section{ display:flex; flex-direction:column; align-items:center; margin-bottom:16px; }
  .avatar-btn{ width:72px; height:72px; border-radius:50%; border:2px solid var(--accent-2); background:var(--surface-2); font-size:34px; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:4px 6px 0 0 rgba(var(--shadow-color),0.16); }
  .avatar-picker{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; padding:12px; border-radius:18px; border:1px solid var(--line); background:var(--surface-2); margin-bottom:16px; }
  .avatar-picker button{ width:44px; height:44px; border-radius:50%; border:1px solid var(--line); background:var(--surface); font-size:20px; cursor:pointer; }
  .avatar-picker button.on{ border-color:var(--accent-2); background:color-mix(in srgb, var(--accent-2) 18%, var(--surface)); }
  .rank-card{ border:1px solid var(--line); background:var(--surface); border-radius:24px; padding:18px; margin-bottom:6px; box-shadow:5px 7px 0 0 rgba(var(--shadow-color),0.16); }
  .rank-card .rank-name{ font-family:"Zen Kaku Gothic New",sans-serif; font-size:20px; font-weight:700; margin:0 0 4px; }
  .rank-card .rank-sub{ font-size:12px; color:var(--ink-soft); margin:0 0 12px; }
  .rank-bar-track{ height:8px; border-radius:999px; background:var(--surface-2); overflow:hidden; }
  .rank-bar-fill{ height:100%; background:var(--accent); border-radius:999px; transition:width .3s; }
  .rank-stats{ display:flex; gap:18px; margin-top:14px; font-family:"IBM Plex Mono",monospace; font-size:11px; color:var(--ink-faint); }
  .rank-stats strong{ display:block; font-size:17px; color:var(--ink); font-family:"Zen Kaku Gothic New",sans-serif; font-weight:700; }
  .label-edit-overlay{ position:absolute; inset:0; z-index:9; background:rgba(0,0,0,0); display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:opacity .25s, background .25s; padding:24px; }
  .label-edit-overlay.show{ opacity:1; pointer-events:auto; background:rgba(0,0,0,0.55); }
  .label-edit-card{ background:var(--surface); border-radius:26px; padding:22px; width:100%; max-width:280px; box-shadow:8px 12px 0 0 rgba(var(--shadow-color),0.28); transform:scale(0.85); transition:transform .25s cubic-bezier(.34,1.56,.64,1); }
  .label-edit-overlay.show .label-edit-card{ transform:scale(1); }
  .sticker-edit-preview-inner{ width:120px; margin:0 auto 14px; }
  .sticker-edit-preview-inner svg{ width:100%; height:auto; display:block; }
  #stickerEditText{ display:block; width:100%; border:1px solid var(--line); background:var(--bg); color:var(--ink); border-radius:12px; padding:10px 12px; font-family:"Noto Sans JP"; font-size:14px; margin-bottom:12px; text-align:center; }
  .btn-delete-soft{ display:block; width:100%; text-align:center; padding:11px; border-radius:999px; border:none; background:color-mix(in srgb, var(--bad) 22%, var(--surface)); color:var(--bad); font-weight:700; font-size:13.5px; cursor:pointer; margin-top:10px; }

  .captured-photo-mock{ position:relative; border-radius:20px; overflow:hidden; margin:10px 0 14px; }
  .captured-photo-mock .illus{ margin:0; height:140px; }
  .captured-photo-badge{ position:absolute; left:10px; bottom:10px; background:rgba(0,0,0,0.55); color:#fff; font-size:10.5px; padding:5px 10px; border-radius:999px; font-family:"Noto Sans JP"; }

  .feature-box{ position:relative; border:1px solid var(--line); border-radius:16px; padding:8px 46px 8px 14px; background:var(--surface); margin:0 0 10px; }
  .feature-box.no-edit{ padding:8px 14px; }
  .feature-box.no-edit .feature-value input{ width:150px; }
  .feature-row{ display:flex; justify-content:space-between; align-items:center; font-size:12.5px; padding:3px 0; gap:10px; }
  .feature-label{ color:var(--ink-faint); font-family:"IBM Plex Mono",monospace; font-size:11px; flex-shrink:0; }
  .feature-value{ font-weight:700; text-align:right; }
  .feature-value input{ width:120px; text-align:right; border:1px solid var(--line); border-radius:10px; padding:4px 8px; font-size:13px; background:var(--bg); color:var(--ink); font-family:"Noto Sans JP"; }
  .feature-value-tap{
    border:1px solid var(--line); border-radius:10px; padding:4px 10px; font-size:13px; background:var(--bg);
    color:var(--ink); font-family:"Noto Sans JP"; font-weight:700; cursor:pointer;
  }
  .abv-stepper{
    display:flex; flex-direction:row; align-items:center; gap:2px; border:1px solid var(--line);
    border-radius:12px; background:var(--bg); padding:0 2px; touch-action:pan-y; user-select:none; -webkit-user-select:none;
  }
  .abv-step-bar{
    padding:6px 8px; border:none; background:none; color:var(--ink-faint); font-size:10px;
    line-height:1; cursor:pointer;
  }
  .abv-step-bar:active{ color:var(--accent-2); }
  .abv-value{ font-weight:700; font-size:13px; color:var(--ink); padding:2px 6px; font-family:"Noto Sans JP"; cursor:text; min-width:34px; text-align:center; }
  #abvDirectInput{ width:70px; text-align:right; border:1px solid var(--line); border-radius:10px; padding:4px 8px; font-size:13px; background:var(--bg); color:var(--ink); font-family:"Noto Sans JP"; }
  .feature-edit-btn{ position:absolute; right:10px; bottom:10px; width:30px; height:30px; border-radius:50%; border:1px solid var(--line); background:var(--surface-2); cursor:pointer; font-size:13px; color:var(--ink-soft); }
  .feature-edit-btn.editing{ background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }

  #labelComment{ width:100%; border:1px solid var(--line); background:var(--surface); color:var(--ink); border-radius:14px; padding:10px 13px; font-family:"Noto Sans JP"; font-size:13.5px; resize:vertical; margin-top:4px; }
  #labelComment::placeholder{ color:var(--ink-faint); }
  .comment-hint{ font-size:11px; color:var(--ink-faint); line-height:1.6; margin:6px 0 0; }

  .list-header-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
  .filter-toggle-btn{ flex-shrink:0; width:38px; height:38px; border-radius:14px; border:1px solid var(--line); background:var(--surface); color:var(--ink-soft); font-size:15px; cursor:pointer; margin-top:14px; }
  .filter-toggle-btn.active{ background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }

  .rank-hint{ font-size:11px; color:var(--ink-faint); line-height:1.7; margin:12px 0 0; }

  .confirm-bottle-preview{ display:flex; justify-content:center; padding:2px 0 8px; }
  .confirm-bottle-preview .bottle-stage.big{ width:132px; height:194px; }
  .btn-with-icon{ gap:8px; }
  .uturn-icon{ width:17px; height:17px; flex-shrink:0; }
  .prev-record-box{ border:1px solid var(--line); border-radius:20px; padding:12px 16px; background:var(--surface-2); margin-top:4px; }
  .prev-date{ font-family:"IBM Plex Mono",monospace; font-size:11px; color:var(--ink-faint); margin:0 0 8px; }
  .prev-record-name{ font-family:"Zen Kaku Gothic New",sans-serif; font-size:16px; font-weight:700; margin:0 0 8px; }
  .prev-comment{ font-size:13.5px; color:var(--ink); line-height:1.7; margin:0 0 10px; white-space:pre-wrap; }
  .prev-labels{ display:flex; flex-wrap:wrap; gap:6px; }
  .mini-sticker-chip{ display:inline-block; width:52px; height:32px; margin:0 4px 4px 0; }
  .mini-sticker-chip svg{ width:100%; height:100%; display:block; }

  .recorded-confirm{ text-align:center; padding:12px 10px 4px; }
  .recorded-mark{ font-size:34px; margin:0 0 4px; }
  .recorded-count{ font-size:13.5px; color:var(--ink-soft); margin:0; }
  .recorded-count strong{ font-family:"Zen Kaku Gothic New",sans-serif; font-size:21px; color:var(--accent); font-weight:900; }

  .episode-bubble-wrap{ position:relative; }
  .episode-bubble{ position:relative; background:var(--surface-2); border:1px solid var(--line); border-radius:20px; padding:12px 16px; margin-top:8px; text-align:center; }
  .episode-bubble::before{ content:""; position:absolute; top:-9px; left:32px; width:16px; height:16px; background:var(--surface-2); border-left:1px solid var(--line); border-top:1px solid var(--line); transform:rotate(45deg); }
  .episode-bubble-title{ font-family:"Zen Kaku Gothic New",sans-serif; font-size:15px; font-weight:700; line-height:1.5; margin:0; }

  .capture-loading{ text-align:center; padding:50px 20px; }
  .spinner{ width:40px; height:40px; margin:0 auto 18px; border-radius:50%; border:3px solid var(--line); border-top-color:var(--accent); animation:spin .8s linear infinite; }
  @keyframes spin{ to{ transform:rotate(360deg); } }
  .capture-loading p{ color:var(--ink-soft); font-size:13.5px; }
  .loading-icons{ display:flex; justify-content:center; align-items:flex-end; gap:20px; margin-bottom:22px; }
  .loading-icons span{ font-size:46px; display:inline-block; animation:wobble 0.9s ease-in-out infinite; transform-origin:bottom center; }
  .loading-icons span:nth-child(2){ animation-delay:0.32s; }
  @keyframes wobble{
    0%,100%{ transform:rotate(-14deg); }
    50%{ transform:rotate(14deg); }
  }

  .candidate-item{ display:flex; justify-content:space-between; align-items:center; width:100%; text-align:left; padding:13px 15px; border-radius:18px; border:1px solid var(--line); background:var(--surface); color:var(--ink); cursor:pointer; margin-bottom:10px; box-shadow:3px 4px 0 0 rgba(var(--shadow-color),0.12); }
  .candidate-item strong{ font-family:"Zen Kaku Gothic New",sans-serif; font-weight:700; font-size:15px; }
  .candidate-item span{ font-size:11px; color:var(--ink-faint); display:block; margin-top:2px; }

  .btn{ display:inline-flex; align-items:center; justify-content:center; gap:6px; font-family:"Zen Kaku Gothic New",sans-serif; font-weight:700; font-size:14px; padding:13px 18px; border-radius:999px; border:none; cursor:pointer; width:100%; background:var(--accent); color:var(--accent-ink); box-shadow:4px 6px 0 0 color-mix(in srgb, var(--accent) 60%, black 25%); transform:translateY(0); transition:transform .08s ease, box-shadow .08s ease; }
  .btn:active{ transform:translate(3px,5px); box-shadow:1px 1px 0 0 color-mix(in srgb, var(--accent) 60%, black 25%); }
  .btn.ghost{ background:transparent; border:1.5px solid var(--accent-2); color:var(--accent-2); box-shadow:3px 4px 0 0 color-mix(in srgb, var(--accent-2) 35%, transparent); }
  .btn.ghost:active{ box-shadow:1px 1px 0 0 color-mix(in srgb, var(--accent-2) 35%, transparent); }

  .camera-viewfinder{ position:relative; height:480px; border-radius:24px; background:linear-gradient(160deg, #17211f, #1f302c); margin:14px 0 26px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
  .camera-viewfinder video{ width:100%; height:100%; object-fit:cover; display:block; }
  .camera-unavailable{
    position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center;
    padding:0 24px; color:rgba(255,255,255,0.78); font-size:13px; font-family:"Noto Sans JP"; line-height:1.6;
  }
  .camera-gallery-btn{
    position:absolute; right:14px; bottom:14px; width:44px; height:44px; border-radius:50%;
    border:1.5px solid rgba(255,255,255,0.6); background:rgba(23,33,31,0.55); color:#fff; font-size:19px;
    display:flex; align-items:center; justify-content:center; cursor:pointer;
  }
  .shutter-btn{ width:64px; height:64px; border-radius:50%; background:var(--accent); border:5px solid var(--surface-2); box-shadow:0 0 0 2px var(--accent), 4px 6px 0 0 color-mix(in srgb, var(--accent) 60%, black 25%); display:block; margin:0 auto; cursor:pointer; transition:transform .08s ease; }
  .shutter-btn:active{ transform:translate(3px,5px); }

  .title-screen{ position:absolute; inset:0; z-index:10; background:var(--accent); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:opacity .5s ease; }
  .title-screen.hide{ opacity:0; pointer-events:none; }
  .title-screen-inner{ text-align:center; padding:0 30px; }
  .title-eyebrow{ font-family:"IBM Plex Mono",monospace; font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:rgba(255,255,255,0.75); margin:0 0 10px; }
  .title-main{ font-family:"Zen Kaku Gothic New",sans-serif; font-weight:900; font-size:38px; color:#fff; margin:0 0 10px; }
  .title-sub{ font-size:14px; color:rgba(255,255,255,0.92); margin:0 0 36px; line-height:1.6; }
  .title-tap-hint{ font-family:"IBM Plex Mono",monospace; font-size:11px; letter-spacing:0.08em; color:rgba(255,255,255,0.75); }

  .filter-row{
    display:flex; gap:8px; margin-bottom:14px; overflow-x:auto;
    padding:2px 28px 2px 2px; scrollbar-width:none; -ms-overflow-style:none;
  }
  .filter-row::-webkit-scrollbar{ display:none; height:0; }
  .filter-chip{ flex-shrink:0; font-family:"IBM Plex Mono",monospace; font-size:11.5px; padding:7px 13px; border-radius:999px; border:1px solid var(--line); background:var(--surface); color:var(--ink-soft); cursor:pointer; }
  .filter-chip.active{ background:var(--ink); color:var(--bg); border-color:var(--ink); }
  .filter-chip .fc-icon{ margin-right:4px; }
  .filter-chip.has-color:not(.active){ border-color:var(--chip-color); }
  .filter-chip.has-color.active .fc-icon{ color:var(--chip-color); }
  .filter-chip.has-image{
    border:none; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,0.6);
    background-image:var(--chip-bg); background-size:cover; background-position:center; background-color:transparent;
  }
  .filter-chip.has-image.active{
    border:none; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,0.6);
    background-image:var(--chip-bg); background-size:cover; background-position:center; background-color:transparent;
  }
  .filter-chip.has-image.text-baked{ width:auto; height:36px; aspect-ratio:230/97; padding:0; }

  #recordList{ position:relative; min-height:120px; }

  /* ラベル（ステッカー）ピッカー */
  .sticker-picker-row{
    display:flex; gap:12px; flex-wrap:nowrap; align-items:center; overflow-x:auto;
    padding:2px 16px 6px 2px; scrollbar-width:none; -ms-overflow-style:none;
    -webkit-mask-image:linear-gradient(to right, #000 88%, transparent 100%);
    mask-image:linear-gradient(to right, #000 88%, transparent 100%);
  }
  .sticker-picker-row::-webkit-scrollbar{ display:none; height:0; }
  .sticker-chip{ flex-shrink:0; border:2px solid transparent; background:none; padding:2px; border-radius:12px; cursor:pointer; display:inline-flex; }
  .sticker-chip.static{ cursor:default; }
  .sticker-chip.on{ border-color:var(--accent); background:var(--surface-2); }
  .sticker-chip-icon{ display:block; width:80px; height:50px; }
  .sticker-chip-icon svg{ width:100%; height:100%; display:block; }
  .label-image-visual{
    width:100%; height:100%; background-size:contain; background-repeat:no-repeat; background-position:center;
    display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden;
  }
  .label-image-text{
    font-family:"Zen Kaku Gothic New",sans-serif; font-weight:700; font-size:11px; color:#fff;
    text-shadow:0 1px 3px rgba(0,0,0,0.6); text-align:center; padding:0 10px; line-height:1.25;
    white-space:nowrap; max-width:100%; overflow:hidden; text-overflow:ellipsis;
  }
  .label-sticker .label-image-visual{ aspect-ratio:358/215; height:auto; }
  .label-sticker .label-image-text{ font-size:15px; }
  .sticker-chip-icon-photo{ width:52px; height:52px; border-radius:50%; overflow:hidden; background:var(--surface-2); }
  .sticker-chip-icon-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
  .sticker-chip-photo{ position:relative; border-radius:50%; }
  .sticker-chip-remove{
    position:absolute; top:-4px; right:-4px; width:22px; height:22px; border-radius:50%;
    background:var(--bad); color:#fff; font-size:11px; display:none; align-items:center; justify-content:center;
    box-shadow:0 2px 4px rgba(0,0,0,0.25);
  }
  .sticker-chip-photo.confirm-delete .sticker-chip-remove{ display:flex; }
  .sticker-chip-photo-add{ border:none; padding:2px; }
  .sticker-chip-smiley{
    display:flex; align-items:center; justify-content:center; border:1.5px dashed var(--line); color:var(--ink-faint);
  }
  .sticker-chip-smiley svg{ width:26px; height:26px; }
  .sticker-chip-text-add{ font-family:"Zen Kaku Gothic New",sans-serif; font-weight:700; font-size:13px; }
  .sticker-shape-swatch{ width:44px; height:28px; border:1px solid var(--line); border-radius:8px; background:var(--surface); padding:2px; cursor:pointer; }
  .sticker-shape-swatch.on{ border-color:var(--accent); border-width:2px; }
  .sticker-template-swatch-img{ display:block; width:100%; height:100%; background-size:cover; background-position:center; border-radius:5px; }
  .sticker-shape-swatch svg{ width:100%; height:100%; display:block; }
  .ls-pattern-icon.on{ border-color:var(--accent); border-width:2px; }


  /* 飲んだお酒＝棚ビュー（ボトルが並ぶイメージ、仮デザイン） */
  .shelf-grid{ transition:opacity .3s ease, transform .3s ease; }
  .shelf-grid.hidden{ opacity:0; transform:scale(0.94); pointer-events:none; position:absolute; inset:0; }
  .shelf-row{ display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; padding:10px 2px 0; }
  .shelf-board{ height:1px; margin:14px 0 18px; background:var(--line); opacity:0.6; }
  .shelf-fab{
    position:absolute; right:16px; bottom:16px; width:56px; height:56px; border-radius:50%;
    border:2.5px solid color-mix(in srgb, var(--accent) 65%, black 30%); background:var(--accent); color:var(--accent-ink); font-size:26px; line-height:1;
    display:flex; align-items:center; justify-content:center; cursor:pointer;
    box-shadow:4px 6px 0 0 color-mix(in srgb, var(--accent) 60%, black 25%);
    transform:translateY(0); transition:transform .08s ease, box-shadow .08s ease;
  }
  .shelf-fab:active{ transform:translate(3px,5px); box-shadow:1px 1px 0 0 color-mix(in srgb, var(--accent) 60%, black 25%); }
  .bottle-item{
    position:relative; width:100%; display:flex; flex-direction:column; align-items:center; gap:4px;
    background:none; border:none; cursor:pointer; padding:2px; border-radius:12px;
  }
  .bottle-name{ font-size:11px; color:var(--ink-soft); text-align:center; line-height:1.3; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

  .shelf-focus{ display:none; }
  .shelf-focus.show{ display:block; animation:shelfFocusIn .3s ease; }
  @keyframes shelfFocusIn{ from{ opacity:0; } to{ opacity:1; } }
  .shelf-focus-bottle{ display:block; width:100%; padding:10px 0 6px; }
  .shelf-focus{ position:relative; }
  .shelf-focus-back{
    position:absolute; top:0; left:0; width:36px; height:36px; border-radius:50%;
    border:1px solid var(--line); background:var(--surface); color:var(--ink);
    font-size:16px; display:flex; align-items:center; justify-content:center; cursor:pointer;
    box-shadow:2px 3px 0 0 rgba(var(--shadow-color),0.1);
  }
  .bottle-detail-card{
    position:relative; margin-top:8px; border:1px solid var(--line); background:var(--surface); border-radius:18px; padding:14px 16px 30px;
    box-shadow:4px 6px 0 0 rgba(var(--shadow-color),0.12);
  }
  .sticker-picker-row-standalone{ margin:6px 0 4px; }
  .delete-record-btn{
    display:block; margin:10px auto 0; padding:6px 14px; border:none; background:none;
    color:var(--ink-faint); font-family:"Noto Sans JP"; font-size:11.5px; text-decoration:underline; cursor:pointer;
  }
  .history-scroll{
    display:flex; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory; margin-top:10px;
    padding:0 16px 4px 0; scrollbar-width:none; -ms-overflow-style:none;
    -webkit-mask-image:linear-gradient(to right, #000 88%, transparent 100%);
    mask-image:linear-gradient(to right, #000 88%, transparent 100%);
  }
  .history-scroll::-webkit-scrollbar{ display:none; height:0; }
  .history-entry{
    flex:0 0 auto; scroll-snap-align:start; min-width:150px; max-width:220px;
    background:var(--surface-2); border-radius:14px; padding:9px 12px;
  }
  .history-date{ font-family:"IBM Plex Mono",monospace; font-size:10px; color:var(--ink-faint); }
  .history-comment{ font-size:12.5px; color:var(--ink); margin:4px 0 0; line-height:1.5; }
  .episode-heading{ font-family:"Zen Kaku Gothic New",sans-serif; font-size:15px; color:var(--ink); font-weight:700; margin-top:16px; letter-spacing:0; text-transform:none; }
  .related-bottle-scroll{
    display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; margin-top:10px;
    padding:2px 16px 4px 0; scrollbar-width:none; -ms-overflow-style:none;
    -webkit-mask-image:linear-gradient(to right, #000 88%, transparent 100%);
    mask-image:linear-gradient(to right, #000 88%, transparent 100%);
  }
  .related-bottle-scroll::-webkit-scrollbar{ display:none; height:0; }
  .related-bottle-card{
    flex:0 0 auto; scroll-snap-align:start; display:flex; flex-direction:column; align-items:center; gap:4px;
    width:76px; border:none; background:none; cursor:pointer; padding:2px;
  }
  .related-bottle-card .bottle-stage{ width:60px; height:98px; }
  .related-bottle-name{ font-size:10.5px; color:var(--ink-soft); text-align:center; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

  /* ボトル/缶＋ラベル（シールを貼ったビジュアル） */
  .bottle-stage{ position:relative; width:92px; height:150px; max-width:100%; margin:0 auto; }
  .bottle-stage.big{ width:104px; height:152px; }
  .bottle-shape-layer{ width:100%; height:100%; }
  .bottle-shape-layer svg{ width:100%; height:100%; display:block; }
  .label-sticker{
    position:absolute; top:44%; left:50%; width:72%;
    filter:drop-shadow(2px 3px 2px rgba(0,0,0,0.18));
  }
  .label-sticker svg{ width:100%; height:auto; display:block; }
  .label-sticker-photo-wrap{ width:58%; aspect-ratio:1/1; }
  .label-sticker-photo{ width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; border:3px solid #fff; }

  .photo-label-circle-wrap{ display:flex; justify-content:center; padding:6px 0 4px; }
  .photo-label-circle{
    width:220px; height:220px; border-radius:50%; overflow:hidden; background:#17211f;
    border:2px solid var(--line);
  }
  .photo-label-circle video{ width:100%; height:100%; object-fit:cover; transform:scaleX(-1); display:block; }

  /* ラベルスタジオ（ラベルを貼る機能） */
  .label-studio{
    border:1px solid var(--line); background:var(--surface-2); border-radius:20px; padding:12px 14px 14px;
    margin:8px 0 12px;
  }
  .label-studio-preview{ display:flex; justify-content:center; padding:2px 0 6px; }
  .label-studio-row{ margin-bottom:8px; }
  .ls-row-title{ display:block; font-family:"IBM Plex Mono",monospace; font-size:10.5px; color:var(--ink-faint); letter-spacing:0.04em; margin-bottom:6px; }
  .ls-swatch-row{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
  .ls-swatch{ border:none; background:none; cursor:pointer; padding:2px; border-radius:10px; display:flex; align-items:center; justify-content:center; }
  .ls-swatch.on{ background:var(--surface); box-shadow:0 0 0 2px var(--accent); }
  .ls-swatch.on:has(.ls-shape-label){ box-shadow:none; }
  .ls-shape-label{
    padding:6px 11px; border-radius:999px; border:1.5px solid var(--line); background:var(--surface);
    font-family:"Noto Sans JP"; font-weight:600; font-size:11.5px; color:var(--ink-soft);
  }
  .ls-swatch.on .ls-shape-label{ border-color:var(--accent); border-width:2px; color:var(--ink); }
  .ls-color-dot{ width:22px; height:22px; border-radius:50%; border:2px solid transparent; display:block; }
  .ls-shape-icon{ width:34px; height:22px; display:block; }
  .ls-shape-icon svg{ width:100%; height:100%; display:block; }
  .ls-pattern-icon{ width:34px; height:34px; border-radius:50%; background:var(--surface); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; overflow:hidden; }
  .ls-pattern-icon svg{ width:70%; height:70%; }
  #labelTextInput{
    width:100%; margin-top:4px; padding:11px 13px; border-radius:12px; border:1px solid var(--line);
    background:var(--surface); color:var(--ink); font-family:"Noto Sans JP"; font-size:13.5px;
  }

  .record-card{ position:relative; border:1px solid var(--line); background:var(--surface); border-radius:20px; padding:13px 14px; margin-bottom:10px; box-shadow:3px 4px 0 0 rgba(var(--shadow-color),0.1); }
  .record-card.is-read{ background:var(--surface-2); box-shadow:none; }
  .record-card-body{ display:flex; gap:12px; align-items:flex-start; }
  .record-thumb{ width:48px; height:48px; border-radius:14px; overflow:hidden; flex-shrink:0; border:1px solid var(--line); }
  .record-thumb svg{ width:100%; height:100%; display:block; }
  .record-main{ flex:1; min-width:0; }
  .record-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
  .record-top strong{ font-family:"Zen Kaku Gothic New",sans-serif; font-size:15.5px; font-weight:700; }
  .record-type{ font-size:11.5px; color:var(--ink-faint); margin-top:2px; }
  .record-episode-row{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:6px; padding:6px 8px; background:var(--surface-2); border-radius:10px; border:none; width:100%; text-align:left; cursor:pointer; font-family:"Noto Sans JP"; }
  .record-episode-title{ font-size:12px; color:var(--accent-2); font-weight:600; }
  .record-episode-labels{ display:flex; flex-wrap:wrap; gap:4px; }
  .record-source{ font-family:"IBM Plex Mono",monospace; font-size:9.5px; color:var(--ink-faint); margin-top:8px; }

  .label-picker-caption{ font-size:11px; color:var(--ink-faint); margin:0 0 6px; }
  .shape-row, .color-row{ display:flex; gap:8px; margin-bottom:10px; flex-wrap:wrap; }
  .color-swatch{ width:26px; height:26px; border-radius:50%; border:2px solid transparent; cursor:pointer; }
  .color-swatch.on{ border-color:var(--ink); }

  .stamp-overlay{ position:absolute; inset:0; background:rgba(0,0,0,0); display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:opacity .2s, background .2s; z-index:5; }
  .stamp-overlay.show{ opacity:1; background:rgba(0,0,0,0.5); }
  .stamp-sticker{
    width:96px; height:96px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:44px; color:#fff;
    transform:translateY(-60px) rotate(-10deg) scale(0.9); box-shadow:4px 6px 0 0 rgba(0,0,0,0.35);
    transition:transform .38s cubic-bezier(.3,1.4,.4,1);
  }
  .stamp-overlay.show .stamp-sticker{ transform:translateY(0) rotate(-4deg) scale(1); }

  .toast{ position:absolute; left:20px; right:20px; bottom:86px; text-align:center; background:var(--ink); color:var(--bg); font-family:"Zen Kaku Gothic New",sans-serif; font-weight:700; font-size:13px; padding:11px 14px; border-radius:999px; opacity:0; transform:translateY(6px); transition:opacity .2s, transform .2s; pointer-events:none; z-index:6; }
  .toast.show{ opacity:1; transform:translateY(0); }

  @media (prefers-reduced-motion: reduce){ .spinner{ animation:none; border-top-color:var(--line); } .toast{ transition:none; } .stamp-sticker{ transition:none; } .loading-icons span{ animation:none; } .title-screen{ transition:none; } .capture-btn, .btn, .shutter-btn{ transition:none; } }

  @media (min-width: 431px){
    body{ padding:24px 0; }
    .phone{ min-height:0; width:min(392px, 92vw); height:min(800px, 82vh); border-radius:44px; border:1px solid var(--line); box-shadow:var(--shadow); padding:14px; overflow:hidden; }
    .phone-screen{ min-height:0; height:100%; border-radius:32px; }
  }
