/* Reciprocity. All rules scoped under .rcp-* */
.rcp-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* mints */
.rcp-mint-s { display: block; width: 100%; height: 100%; overflow: visible; }
.rcp-wrap { fill: rgba(255,255,255,.75); }
.rcp-mint-b { fill: #fff; stroke: rgba(0,0,0,.15); stroke-width: 1; }
.rcp-swirl { fill: #e2384b; }
.rcp-mint { width: 54px; height: 36px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.rcp-fall { animation: rcpFall .45s cubic-bezier(.4,0,.6,1) both; }
@keyframes rcpFall { 0% { translate: 0 -120px; rotate: -30deg; opacity: 0; } 70% { translate: 0 6px; rotate: 6deg; opacity: 1; } 100% { translate: 0 0; rotate: 0deg; } }

/* the table and check */
.rcp-table { position: relative; width: 250px; height: 210px; border-radius: 22px; background: radial-gradient(circle at 40% 35%, #3a2b5c, #1d1733 75%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.06), 0 16px 34px rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; }
.rcp-check { position: relative; width: 130px; height: 170px; border-radius: 10px; background: linear-gradient(160deg, #2b2b2b, #111); border: 2px solid #4a4a4a; display: flex; flex-direction: column; align-items: center; padding-top: 22px; gap: 4px; translate: 220px 0; rotate: 18deg; opacity: 0; transition: translate .6s cubic-bezier(.2,.8,.2,1), rotate .6s, opacity .3s; }
.rcp-table.in .rcp-check { translate: 0 0; rotate: -4deg; opacity: 1; }
.rcp-check span { font: 700 12px var(--sans); color: #bbb; letter-spacing: .1em; text-transform: uppercase; }
.rcp-check b { font: 800 20px var(--sans); color: #eee; }
.rcp-on { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 4px; }
.rcp-table.small { width: 150px; height: 150px; border-radius: 18px; }
.rcp-table.small .rcp-check { width: 96px; height: 124px; padding-top: 14px; }
.rcp-table.small .rcp-check b { font-size: 16px; }
.rcp-table.small .rcp-mint { width: 44px; height: 30px; }

/* the server */
.rcp-top { display: flex; align-items: flex-end; justify-content: center; gap: 14px; width: 100%; }
.rcp-srv { position: relative; width: 110px; height: 170px; display: flex; justify-content: center; transition: translate .6s, opacity .5s; }
.rcp-srv img { height: 100%; width: auto; filter: drop-shadow(0 8px 16px rgba(123,92,253,.3)); transition: scale .3s; }
.rcp-srv.away { translate: -60px 0; opacity: .25; }
.rcp-srv.back img { animation: rcpTurn .5s ease-out; }
@keyframes rcpTurn { 0% { scale: -1 1; } 100% { scale: 1 1; } }
.rcp-say { position: absolute; left: 62%; top: 4px; white-space: nowrap; padding: 6px 10px; border-radius: 12px 12px 12px 4px; background: var(--raised); border: 1px solid var(--line-strong); font: 700 13.5px var(--sans); color: var(--text); opacity: 0; transition: opacity .3s; z-index: 2; }
.rcp-srv.talk .rcp-say { opacity: 1; }
.rcp-mintbtn { position: absolute; left: 50%; bottom: 52px; translate: -50% 0; width: 60px; height: 48px; padding: 4px; border: 0; background: transparent; cursor: pointer; filter: drop-shadow(0 3px 6px rgba(0,0,0,.45)); animation: rcpBob 1.2s ease-in-out infinite alternate; }
@keyframes rcpBob { to { translate: -50% -4px; } }

/* tips */
.rcp-tips { width: 100%; max-width: 330px; display: flex; flex-direction: column; gap: 6px; }
.rcp-th { font: 700 12.5px var(--sans); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.rcp-tr { display: grid; grid-template-columns: 112px 1fr 44px; align-items: center; gap: 8px; opacity: .3; transition: opacity .3s; }
.rcp-tr.on { opacity: 1; }
.rcp-tr span { font: 700 13.5px var(--sans); color: var(--text); }
.rcp-tr i { display: block; height: 12px; border-radius: 6px; background: var(--surface); overflow: hidden; }
.rcp-tr em { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--violet-bright); }
.rcp-tr b { font: 800 14.5px var(--sans); color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.rcp-back em { background: var(--gold); }
.rcp-back b { color: var(--gold); }
.rcp-two-only .rcp-none, .rcp-two-only .rcp-one { opacity: .35; }
.rcp-two-only .rcp-two, .rcp-two-only .rcp-back { padding: 6px 0; }

/* Joe and the students */
.rcp-joe { position: relative; display: flex; flex-direction: column; align-items: center; font: 800 15px var(--sans); color: var(--text); }
.rcp-joe img { height: 230px; width: auto; filter: drop-shadow(0 10px 20px rgba(123,92,253,.3)); }
.rcp-rude { position: absolute; right: -18px; top: 18px; padding: 6px 10px; border-radius: 12px 12px 12px 4px; background: var(--raised); border: 1px solid var(--line-strong); font: 700 13.5px var(--sans); color: var(--text); opacity: 0; transition: opacity .3s; }
.rcp-joe.rude .rcp-rude { opacity: 1; }
.rcp-pk { width: 100%; }
.rcp-pk .choices.rcp-two { display: flex; flex-direction: row; justify-content: center; gap: 12px; }
.rcp-pk .choice { flex: 1; max-width: 160px; min-height: 0; padding: 8px 6px; justify-content: center; }
.rcp-st { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rcp-st img { height: 150px; width: auto; }
.rcp-st b { font: 800 14.5px var(--sans); color: var(--text); }
.rcp-mood { font: 600 13px var(--sans); color: var(--dim); }
.rcp-tk { display: flex; gap: 4px; min-height: 26px; margin-top: 4px; }
.rcp-tk i { font: 800 12px var(--sans); font-style: normal; color: #241a05; background: var(--gold); padding: 4px 6px; border-radius: 5px; animation: rcpPop .3s both; }
@keyframes rcpPop { from { scale: .5; opacity: 0; } }

/* the flower and the sample */
.rcp-pic img { display: block; height: 240px; width: auto; filter: drop-shadow(0 10px 22px rgba(123,92,253,.3)); }
.rcp-pic.swap img { animation: rcpPop .4s both; }
.rcp-sample { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rcp-cup { width: 70px; height: 56px; border-radius: 6px 6px 18px 18px; background: linear-gradient(#fff, #ddd); position: relative; box-shadow: 0 8px 16px rgba(0,0,0,.35); }
.rcp-cup::before { content: ''; position: absolute; left: 10px; right: 10px; top: -12px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #c98a3a, #7a4a17); }
.rcp-bub2 { padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--raised); border: 1px solid var(--line-strong); font: 700 15px var(--sans); color: var(--text); }

@media (max-height: 700px) {
  .rcp-table { width: 220px; height: 180px; }
  .rcp-check { width: 116px; height: 148px; }
  .rcp-table.small { width: 136px; height: 136px; }
  .rcp-table.small .rcp-check { width: 88px; height: 114px; padding-top: 10px; }
  .rcp-srv { width: 100px; height: 150px; }
  .rcp-mintbtn { bottom: 42px; }
  .rcp-tips { gap: 4px; }
  .rcp-joe img { height: 170px; }
  .rcp-st img { height: 110px; }
  .rcp-pic img { height: 180px; }
}
