  :root{
    --bg: #F0F2EA;
    --bg-2: #E7EBDF;
    --ink: #15151B;
    --ink-soft: #55564F;
    --card: #FFFFFF;
    --line: #15151B;
    --red: #FF4222;
    --blue: #2E52FF;
    --mint: #17C989;
    --yellow: #FFCF3F;
    --shadow: 6px 6px 0 var(--ink);
    --shadow-sm: 3px 3px 0 var(--ink);
    --radius: 22px;
    --line-soft: #D8D9CC;
    --track-bg: #ECEDE2;
    --stub-handle-bg: #E3E4D6;
    --placeholder: #A8A99E;
    --overlay-bg: rgba(21,21,27,.55);
    --ink-contrast: #FFFFFF;
  }

  :root[data-theme="dark"]{
    --bg: #121214;
    --bg-2: #1B1B1F;
    --ink: #F2F2EF;
    --ink-soft: #A5A6A0;
    --card: #1C1C20;
    --line: #F2F2EF;
    --red: #FF5A3C;
    --blue: #5C7CFF;
    --mint: #2FE0A0;
    --yellow: #FFD75C;
    --shadow: 6px 6px 0 var(--ink);
    --shadow-sm: 3px 3px 0 var(--ink);
    --line-soft: #34343A;
    --track-bg: #26262B;
    --stub-handle-bg: #2E2E34;
    --placeholder: #6C6D68;
    --overlay-bg: rgba(0,0,0,.65);
    --ink-contrast: #121214;
  }

  *{ box-sizing: border-box; }
  html{ -webkit-tap-highlight-color: transparent; }

  html, body{
    transition: background-color .35s ease, color .35s ease;
  }

  body{
    margin:0;
    min-height:100svh;
    background:
      radial-gradient(circle at 8% 12%, var(--bg-2) 0%, transparent 45%),
      radial-gradient(circle at 92% 85%, var(--bg-2) 0%, transparent 40%),
      var(--bg);
    color: var(--ink);
    font-family:'IBM Plex Sans', system-ui, sans-serif;
    display:flex;
    flex-direction:column;
    align-items:center;
    overflow-x:hidden;
  }

  body, .stub, .about-inner, .badge, .compare-field, .vs-badge, .vcard, .btn-secondary,
  .btn-outline, .instagram-tab, .share-panel, .input-row, .cat-track, .cc-bar, .avatar,
  .stub::before, .stub::after{
    transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease;
  }

  /* ---------- theme toggle ---------- */
  .theme-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--card);
    color: var(--ink);
    cursor:pointer;
    margin-left: 10px;
    flex: 0 0 auto;
    transition: transform .15s ease, box-shadow .15s ease, background-color .35s ease, border-color .35s ease, color .35s ease;
  }
  .theme-toggle:hover{
    transform: translate(-1px,-1px);
    box-shadow: 2px 2px 0 var(--ink);
  }
  .theme-toggle:active{ transform: translate(0,0); box-shadow: none; }
  .theme-toggle svg{ display:block; }
  .theme-toggle .icon-sun{ display:none; }
  .theme-toggle .icon-moon{ display:block; }
  :root[data-theme="dark"] .theme-toggle .icon-sun{ display:block; }
  :root[data-theme="dark"] .theme-toggle .icon-moon{ display:none; }

  .topbar-right{
    display:flex;
    align-items:center;
  }

  @media (prefers-reduced-motion: reduce){
    *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  }

  ::selection{ background: var(--yellow); color: var(--ink); }

  :focus-visible{
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 6px;
  }

  .mono{ font-family:'JetBrains Mono', ui-monospace, monospace; }

  /* ---------- top bar ---------- */
  header.topbar{
    width:100%;
    max-width: 900px;
    padding: 22px 20px 0;
    display:flex;
    align-items:center;
    justify-content:space-between;
  }
  .logo{
    font-family:'Space Grotesk', sans-serif;
    font-weight:800;
    font-size: 15px;
    letter-spacing: -0.015em;
    display:flex;
    align-items:center;
    gap:9px;
    cursor:default;
    user-select:none;
  }
  .logo-mark{
    flex: 0 0 auto;
    display:block;
  }
  .logo-mark-rect{
    fill: var(--card);
    stroke: var(--ink);
    transition: fill .35s ease, stroke .35s ease;
  }
  .logo .dot{
    width:8px; height:8px; border-radius:50%;
    background: var(--red);
    display:inline-block;
    animation: pulse 2.4s ease-in-out infinite;
    flex:0 0 auto;
  }
  @keyframes pulse{ 0%,100%{ transform:scale(1); opacity:1;} 50%{ transform:scale(1.3); opacity:.55;} }

  .logo-text{ color: var(--ink); }
  .logo-period{
    color: var(--red);
    font-weight: 900;
  }

  .badge{
    font-family:'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ink-soft);
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 5px 11px;
    background: var(--card);
    transition: transform .15s ease, box-shadow .15s ease;
  }
  .badge:hover{
    transform: translate(-1px,-1px);
    box-shadow: 2px 2px 0 var(--ink);
  }

  main{
    width:100%;
    max-width: 620px;
    padding: 0 20px 80px;
    display:flex;
    flex-direction:column;
    align-items:center;
    flex:1;
  }

  /* ---------- stage swapping ---------- */
  .stage{
    width:100%;
    position:relative;
  }
  .view{
    width:100%;
  }
  .view[hidden]{ display:none; }

  .view-enter{ animation: view-in .5s cubic-bezier(.2,.9,.25,1) both; }
  @keyframes view-in{
    from{ opacity:0; transform: translateY(14px) scale(.985); }
    to{ opacity:1; transform: translateY(0) scale(1); }
  }
  .view-leaving{ animation: view-out .28s ease both; }
  @keyframes view-out{
    to{ opacity:0; transform: translateY(-10px) scale(.98); }
  }

  /* ---------- hero ---------- */
  .hero{ text-align:center; padding-top: 58px; position: relative; }
  .kicker{
    font-family:'JetBrains Mono', monospace;
    font-size: 12px;
    text-transform: lowercase;
    letter-spacing: .06em;
    color: var(--ink-soft);
    margin: 0 0 16px;
    opacity: .85;
  }
  h1.headline{
    font-family:'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: clamp(34px, 7.4vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin: 0 0 14px;
  }
  h1.headline .accent{
    color: var(--red);
    position:relative;
    display:inline-block;
    animation: accent-pop .6s .1s cubic-bezier(.3,1.4,.4,1) both;
  }
  @keyframes accent-pop{
    from{ transform: scale(.6) rotate(-8deg); opacity:0; }
    to{ transform: scale(1) rotate(0); opacity:1; }
  }
  .sub{
    font-size: 16px;
    color: var(--ink-soft);
    margin: 0 0 36px;
    letter-spacing: -0.005em;
  }

  /* ---------- input ---------- */
  .input-row{
    display:flex;
    align-items:center;
    gap:0;
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: 999px;
    padding: 7px 7px 7px 22px;
    box-shadow: var(--shadow);
    transition: transform .18s cubic-bezier(.2,.9,.25,1), box-shadow .18s cubic-bezier(.2,.9,.25,1);
  }
  .input-row:hover{
    transform: translate(-1px,-1px);
    box-shadow: 7px 7px 0 var(--ink);
  }
  .input-row:focus-within{
    transform: translate(-3px,-3px);
    box-shadow: 9px 9px 0 var(--ink);
  }
  .input-row input{
    flex:1;
    border:none;
    outline:none;
    background:transparent;
    font-family:'JetBrains Mono', monospace;
    font-size: 16px;
    padding: 12px 6px;
    min-width: 0;
    color: var(--ink);
    transition: letter-spacing .15s ease;
  }
  .input-row input::placeholder{ color:var(--placeholder); transition: opacity .15s ease; }
  .input-row input:focus::placeholder{ opacity: .55; }

  .btn{
    font-family:'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 14.5px;
    border: none;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    gap:6px;
    white-space:nowrap;
    transition: transform .15s cubic-bezier(.2,.9,.25,1), box-shadow .15s cubic-bezier(.2,.9,.25,1), filter .12s ease, background .15s ease;
  }
  .btn:active{ transform: translateY(2px) scale(.97); }

  .btn-primary{
    background: var(--ink);
    color: var(--ink-contrast);
    border-radius: 999px;
    padding: 14px 22px;
  }
  .btn-primary:hover{ filter: brightness(1.2); transform: translateY(-1px); }
  .btn-primary:active{ filter: brightness(1.05); }

  .btn-ghost{
    background: transparent;
    color: var(--ink-soft);
    border-bottom: 1.5px dashed var(--ink-soft);
    padding: 4px 2px;
    border-radius: 0;
    font-size: 13.5px;
  }
  .btn-ghost:hover{ color: var(--ink); border-color: var(--ink); }

  /* secondary CTA — compare button */
  .btn-secondary{
    background: var(--card);
    color: var(--ink);
    border: 2px solid var(--line);
    border-radius: 999px;
    padding: 13px 26px;
    font-size: 13px;
    letter-spacing: .05em;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
    width: 100%;
    justify-content:center;
  }
  .btn-secondary:hover{
    transform: translate(-2px,-2px);
    box-shadow: 5px 5px 0 var(--ink);
    background: var(--yellow);
  }
  .btn-secondary:active{
    transform: translate(0,0);
    box-shadow: 1px 1px 0 var(--ink);
  }
  .btn-secondary .accent{
    filter: none;
  }

  .or-divider{
    display:flex;
    align-items:center;
    gap: 10px;
    font-family:'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: lowercase;
    color: var(--ink-soft);
    margin: 0 0 16px;
    opacity: .8;
  }
  .or-divider::before, .or-divider::after{
    content:"";
    flex:1;
    height:1px;
    background: var(--line-soft);
  }

  .error-msg{
    font-family:'JetBrains Mono', monospace;
    font-size: 12.5px;
    color: var(--red);
    height: 18px;
    margin-top: 10px;
    opacity:0;
    transform: translateY(-4px);
    transition: all .2s ease;
  }
  .error-msg.show{ opacity:1; transform: translateY(0); }

  .switcher{
    margin-top: 30px;
    max-width: 340px;
    margin-left:auto;
    margin-right:auto;
  }

  /* ---------- loading / analysis transition ---------- */
  .loading-wrap{
    min-height: 300px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap: 30px;
    padding-top: 40px;
  }

  .loading-orb{
    position:relative;
    width: 84px;
    height: 84px;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .orb-ring{
    position:absolute;
    border-radius:50%;
    border: 2.5px solid var(--line);
  }
  .orb-ring-1{
    width: 84px; height:84px;
    border-color: var(--red);
    animation: orb-spin 1.6s linear infinite;
    border-top-color: transparent;
    border-right-color: transparent;
  }
  .orb-ring-2{
    width: 58px; height:58px;
    border-color: var(--blue);
    animation: orb-spin-rev 1.9s linear infinite;
    border-bottom-color: transparent;
    border-left-color: transparent;
  }
  .orb-ring-3{
    width: 30px; height:30px;
    background: var(--yellow);
    border-color: var(--line);
    animation: orb-pulse 1.1s ease-in-out infinite;
  }
  @keyframes orb-spin{ from{ transform: rotate(0deg);} to{ transform: rotate(360deg);} }
  @keyframes orb-spin-rev{ from{ transform: rotate(360deg);} to{ transform: rotate(0deg);} }
  @keyframes orb-pulse{ 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.18); } }

  .loading-text{
    font-size: 15px;
    color: var(--ink-soft);
    letter-spacing: .01em;
    min-height: 20px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease;
  }
  .loading-text.show{
    opacity: 1;
    transform: translateY(0);
  }

  /* ---------- result stub card ---------- */
  .result-wrap{
    display:flex;
    flex-direction:column;
    align-items:center;
    padding-top: 30px;
  }

  .stub{
    position:relative;
    width:100%;
    max-width: 380px;
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px 26px 24px;
    transform: rotate(-1.1deg);
    animation: stub-in .55s cubic-bezier(.2,.85,.3,1.15) both;
  }
  @keyframes stub-in{
    from{ opacity:0; transform: rotate(-1.1deg) translateY(24px) scale(.92); }
    to{ opacity:1; transform: rotate(-1.1deg) translateY(0) scale(1); }
  }
  .stub::before, .stub::after{
    content:"";
    position:absolute;
    width: 26px; height: 26px;
    background: var(--bg);
    border: 2px solid var(--line);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
  }
  .stub::before{ left: -15px; }
  .stub::after{ right: -15px; }

  .stub-tear{
    border-top: 2px dashed var(--line-soft);
    margin: 18px 0 16px;
  }

  .stub-handle{
    display:flex; justify-content:center; margin-bottom: 6px;
  }
  .stub-handle span{
    width: 40px; height: 4px; border-radius: 4px; background: var(--stub-handle-bg);
    display:block;
  }

  .stamp{
    position:absolute;
    top: 16px; right: 18px;
    font-family:'JetBrains Mono', monospace;
    font-size: 9.5px;
    font-weight:700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    width: 58px; height: 58px;
    display:flex; align-items:center; justify-content:center;
    text-align:center;
    line-height:1.15;
    transform: rotate(11deg);
    opacity: .85;
  }

  .handle-row{
    display:flex;
    align-items:center;
    justify-content:center;
    gap: 8px;
    margin-bottom: 2px;
    animation: fade-up-sm .4s .08s cubic-bezier(.2,.9,.25,1) both;
  }

  .avatar{
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid var(--line);
    line-height: 0;
  }
  .avatar svg{ display:block; }

  .handle-name{
    text-align:center;
    font-family:'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 0;
    word-break: break-all;
  }

  .score-big{
    text-align:center;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    gap: 4px;
    margin: 2px 0 8px;
    animation: fade-up-sm .45s .16s cubic-bezier(.2,.9,.25,1) both;
  }
  @keyframes fade-up-sm{
    from{ opacity:0; transform: translateY(10px); }
    to{ opacity:1; transform: translateY(0); }
  }
  .score-num{
    font-family:'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 76px;
    line-height: .85;
    letter-spacing: -0.03em;
  }
  .score-den{
    font-family:'JetBrains Mono', monospace;
    font-size: 17px;
    color: var(--ink-soft);
    padding-bottom: 10px;
  }

  .verdict-line{
    text-align:center;
    font-family:'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 4px;
    animation: fade-up-sm .45s .24s cubic-bezier(.2,.9,.25,1) both;
  }
  .verdict-sub{
    text-align:center;
    font-size: 13px;
    color: var(--ink-soft);
    margin: 0 auto;
    max-width: 300px;
    line-height:1.5;
    animation: fade-up-sm .45s .3s cubic-bezier(.2,.9,.25,1) both;
  }

  .cats{
    display:flex;
    flex-direction:column;
    gap: 10px;
    animation: fade-up-sm .45s .36s cubic-bezier(.2,.9,.25,1) both;
  }
  .cat-row{
    display:grid;
    grid-template-columns: 92px 1fr 30px;
    align-items:center;
    gap: 10px;
  }
  .cat-label{
    font-family:'JetBrains Mono', monospace;
    font-size: 11.5px;
    text-transform: lowercase;
    color: var(--ink-soft);
  }
  .cat-track{
    height: 8px;
    border-radius: 999px;
    background: var(--track-bg);
    border: 1.5px solid var(--line);
    overflow:hidden;
  }
  .cat-fill{
    display: block;
    height:100%;
    border-radius: 999px;
    width: 0%;
    transition: width 1s cubic-bezier(.16,.9,.2,1);
  }
  .cat-row:hover .cat-track{
    border-color: var(--ink);
  }
  .cat-val{
    font-family:'JetBrains Mono', monospace;
    font-size: 11.5px;
    text-align:right;
    color: var(--ink);
  }

  .result-actions{
    display:flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
    justify-content:center;
    animation: fade-up-sm .4s .5s cubic-bezier(.2,.9,.25,1) both;
  }
  .btn-outline{
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: 999px;
    padding: 11px 18px;
    box-shadow: var(--shadow-sm);
  }
  .btn-outline:hover{ transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
  .btn-outline:active{ transform: translate(0,0); box-shadow: 1px 1px 0 var(--ink); }
  .btn-outline.share{ background: var(--yellow); }

  footer.credit{
    font-family:'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ink-soft);
    text-align:center;
    padding: 30px 20px 10px;
    opacity:.7;
  }

  /* ---------- compare mode ---------- */
  .compare-inputs{
    display:flex;
    align-items:center;
    gap: 14px;
    justify-content:center;
    flex-wrap: wrap;
  }
  .compare-field{
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
    flex: 1 1 200px;
    min-width: 160px;
  }
  .compare-field input{
    width:100%;
    border:none; outline:none; background:transparent;
    font-family:'JetBrains Mono', monospace;
    font-size: 15px;
    color: var(--ink);
  }
  .compare-field input::placeholder{ color:var(--placeholder); }
  .vs-badge{
    font-family:'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 15px;
    color: var(--red);
    border: 2px solid var(--line);
    background: var(--card);
    border-radius: 50%;
    width: 40px; height:40px;
    display:flex; align-items:center; justify-content:center;
    flex: 0 0 auto;
    box-shadow: var(--shadow-sm);
  }
  .compare-cta-row{
    display:flex; justify-content:center; margin-top: 20px;
  }

  .versus-result{
    padding-top: 28px;
  }
  .versus-cards{
    display:flex;
    gap: 14px;
    align-items: stretch;
    justify-content:center;
    flex-wrap: wrap;
  }
  .vcard{
    flex: 1 1 220px;
    max-width: 250px;
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: 18px;
    padding: 18px 16px;
    box-shadow: var(--shadow-sm);
    text-align:center;
    position:relative;
    transition: transform .3s ease, box-shadow .3s ease;
  }
  .vcard.winner{
    box-shadow: 7px 7px 0 var(--mint);
    transform: translateY(-6px);
  }
  .vcard .crown{
    position:absolute;
    top: -18px; left:50%; transform: translateX(-50%);
    font-size: 22px;
    opacity:0;
  }
  .vcard.winner .crown{ opacity:1; animation: crown-drop .5s .3s cubic-bezier(.3,1.4,.4,1) both; }
  @keyframes crown-drop{ from{ opacity:0; transform: translate(-50%,-14px) rotate(-14deg);} to{ opacity:1; transform: translate(-50%,0) rotate(-6deg);} }

  .vcard .v-handle{
    font-family:'JetBrains Mono', monospace;
    font-size: 12.5px;
    color: var(--ink-soft);
    word-break: break-all;
    margin-bottom: 6px;
  }
  .vcard .v-score{
    font-family:'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 42px;
    line-height:1;
  }
  .vs-mid{
    display:flex; align-items:center; justify-content:center;
    font-family:'JetBrains Mono', monospace;
    font-weight:700;
    color: var(--ink-soft);
    font-size: 13px;
    flex: 0 0 auto;
    padding: 0 4px;
  }

  .win-banner{
    text-align:center;
    font-family:'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 22px;
    margin: 26px 0 6px;
  }
  .win-verdict{
    text-align:center;
    color: var(--ink-soft);
    font-size: 14px;
    margin-bottom: 6px;
  }

  .cat-compare{
    max-width: 420px;
    margin: 22px auto 0;
    display:flex; flex-direction:column; gap: 8px;
  }
  .cc-row{ display:grid; grid-template-columns: 34px 1fr 76px 1fr 34px; align-items:center; gap:6px; font-family:'JetBrains Mono', monospace; font-size: 11px; }
  .cc-label{ text-align:center; color: var(--ink-soft); text-transform:lowercase; }
  .cc-bar{ height:6px; border-radius:6px; background:var(--track-bg); border:1.5px solid var(--line); overflow:hidden; }
  .cc-fill{ display:block; height:100%; border-radius:6px; }
  .cc-fill.left{ margin-left:auto; }

  /* ---------- share overlay ---------- */
  .share-overlay{
    position:fixed; inset:0;
    background: var(--overlay-bg);
    backdrop-filter: blur(4px);
    display:flex; align-items:center; justify-content:center;
    z-index: 50;
    padding: 24px;
    opacity:0;
    pointer-events:none;
    transition: opacity .25s ease;
  }
  .share-overlay.open{ opacity:1; pointer-events:auto; }
  .share-panel{
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 20px;
    max-width: 340px;
    width:100%;
    text-align:center;
    transform: scale(.92) translateY(10px);
    transition: transform .25s cubic-bezier(.2,.9,.25,1);
  }
  .share-overlay.open .share-panel{ transform: scale(1) translateY(0); }
  .share-panel canvas{
    width:100%;
    height:auto;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    margin-bottom: 16px;
    display:block;
  }
  .share-actions{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
  .share-close{
    margin-top: 12px;
    background:none; border:none; color: var(--ink-soft);
    font-family:'JetBrains Mono', monospace; font-size: 12px;
    cursor:pointer; text-decoration: underline;
  }

  /* ---------- score band feel ---------- */
  .stub.band-high{ box-shadow: 6px 6px 0 var(--mint), 0 0 46px -8px rgba(23,201,137,.55); }
  .stub.band-high .score-num{ font-size: 84px; }
  .stub.band-good{ box-shadow: 6px 6px 0 var(--blue); }
  .stub.band-mid .score-num{ letter-spacing: -0.01em; }
  .stub.band-low{ animation: stub-in .55s cubic-bezier(.2,.85,.3,1.15) both, wobble-low .5s .55s ease; }
  .stub.band-low .score-num{ font-size: 66px; }
  @keyframes wobble-low{
    0%, 100%{ transform: rotate(-1.1deg); }
    25%{ transform: rotate(-2.6deg); }
    50%{ transform: rotate(.6deg); }
    75%{ transform: rotate(-1.8deg); }
  }
  .stamp.band-high{ animation: stamp-pop .4s .5s cubic-bezier(.3,1.5,.4,1) both; }
  @keyframes stamp-pop{
    from{ opacity:0; transform: rotate(11deg) scale(.5); }
    to{ opacity:.85; transform: rotate(11deg) scale(1); }
  }

  @media (max-width: 420px){
    .score-num{ font-size: 60px; }
    .stub{ padding: 26px 18px 20px; }
    .btn-secondary{ font-size: 12px; padding: 13px 18px; }
  }

  /* ---------- instagram side tab ---------- */
  .instagram-tab{
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 11px;
    background: var(--card);
    border: 2px solid var(--line);
    border-right: none;
    border-radius: 16px 0 0 16px;
    box-shadow: -4px 4px 0 var(--ink);
    text-decoration: none;
    color: var(--ink);
    transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease, background .18s ease;
  }
  .instagram-tab:hover{
    transform: translateY(-50%) translateX(-4px);
    box-shadow: -6px 6px 0 var(--ink);
    background: var(--yellow);
  }
  .instagram-tab:hover .instagram-tab-icon{
    transform: scale(1.12) rotate(-6deg);
  }
  .instagram-tab:active{
    transform: translateY(-50%) translateX(-2px);
    box-shadow: -3px 3px 0 var(--ink);
  }
  .instagram-tab-text{
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 11px;
    letter-spacing: 0.03em;
    text-transform: lowercase;
    white-space: nowrap;
    line-height: 1;
  }
  .instagram-tab-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink: 0;
    transition: transform .22s cubic-bezier(.34,1.56,.64,1);
  }
  @media (max-width: 640px){
    .instagram-tab{
      top: auto;
      bottom: 18px;
      right: 14px;
      transform: none;
      flex-direction: row;
      gap: 8px;
      border-radius: 999px;
      border: 2px solid var(--line);
      padding: 10px 16px;
      box-shadow: var(--shadow-sm);
    }
    .instagram-tab:hover{ transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
    .instagram-tab:active{ transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
    .instagram-tab-text{ writing-mode: horizontal-tb; transform: none; font-size: 11px; }
  }

  /* ---------- tips bar (left side) ---------- */
  .tips-tab{
    position: fixed;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 88px;
    padding: 24px 12px;
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    font: inherit;
    color: var(--ink);
    text-align: center;
    transition: transform .18s cubic-bezier(.2,.9,.25,1), box-shadow .18s cubic-bezier(.2,.9,.25,1), background .18s ease;
  }
  .tips-tab:hover{
    transform: translateY(-50%) translate(-2px,-2px);
    box-shadow: 5px 5px 0 var(--ink);
    background: var(--yellow);
  }
  .tips-tab:active{
    transform: translateY(-50%) translate(0,0);
    box-shadow: 1px 1px 0 var(--ink);
  }
  .tips-tab-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink: 0;
    font-size: 24px;
    line-height: 1;
  }
  .tips-tab-text{
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    line-height: 1.35;
  }

  /* ---------- arrow pointing at the tips bar ---------- */
  .tips-tab-arrow{
    position: absolute;
    top: 50%;
    right: -38px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    pointer-events: none;
    animation: tips-arrow-nudge 1.6s ease-in-out infinite;
  }
  .tips-tab-arrow svg{ display:block; }
  @keyframes tips-arrow-nudge{
    0%, 100%{ transform: translateY(-50%) translateX(6px); opacity: .55; }
    50%{ transform: translateY(-50%) translateX(-2px); opacity: 1; }
  }

  @media (max-width: 900px){
    .tips-tab{
      top: auto;
      bottom: 18px;
      left: 14px;
      transform: none;
      flex-direction: row;
      width: auto;
      gap: 8px;
      border-radius: 999px;
      padding: 10px 16px;
    }
    .tips-tab:hover{ transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
    .tips-tab:active{ transform: translate(0,0); box-shadow: 1px 1px 0 var(--ink); }
    .tips-tab-icon{ font-size: 16px; }
    .tips-tab-text{ font-size: 11px; line-height: 1; }
    .tips-tab-text br{ display: none; }
    .tips-tab-arrow{ display: none; }
  }

  /* ---------- tips panel content (reuses .share-panel/.share-overlay chrome) ---------- */
  .tips-panel{
    max-width: 380px;
    text-align: left;
  }
  .tips-kicker{
    margin: 0 0 6px;
    text-align: left;
  }
  .tips-title{
    font-family:'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
  }
  .tips-list{
    margin: 0 0 6px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .tips-list li{
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-soft);
    padding-left: 4px;
  }
  .tips-list li::marker{
    color: var(--red);
    font-weight: 700;
  }

  /* ---------- about section ---------- */
  .about-section{
    width: 100%;
    max-width: 900px;
    padding: 10px 20px 40px;
  }
  .about-inner{
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 30px;
    transition: padding .3s ease;
  }
  .about-section.is-open .about-inner{
    padding: 26px 30px 34px;
  }
  .about-toggle{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    margin: 0;
    padding: 8px 0;
    font-size: 12px;
    color: var(--ink-soft);
    text-transform: lowercase;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .about-toggle:hover{ color: var(--ink); }
  .about-toggle-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    transition: transform .3s ease;
  }
  .about-section.is-open .about-toggle-icon{
    transform: rotate(135deg);
  }
  .about-content{
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .35s ease, opacity .3s ease;
  }
  .about-section.is-open .about-content{
    grid-template-rows: 1fr;
    opacity: 1;
  }
  .about-content-inner{
    overflow: hidden;
    padding-top: 10px;
  }
  .about-kicker{
    font-size: 12px;
    color: var(--ink-soft);
    text-transform: lowercase;
    margin: 0 0 10px;
  }
  .about-title{
    font-family:'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 26px;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
  }
  .about-text{
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0 0 12px;
    max-width: 62ch;
  }
  .about-tagline{
    font-family:'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--ink);
    margin: 18px 0 0;
  }
