/* Tried It? — a retro diner: red-and-cream gingham, a menu card per food, a plate of 100 at the end. */
.ti-page { --ink: #3a2418; --red: #c8322b; --red-2: #9e2219; --cream: #fff8ec; --paper: #fbf1de; --mustard: #f2b134; }
.ti-page [hidden] { display: none !important; }
.ti-title { font-family: 'Shrikhand', Georgia, serif; font-weight: 400; color: var(--red); letter-spacing: .01em; }

.cbx-card.ti-card { --cbx-full-pad: 6px; padding: 14px; color: var(--ink); overflow: hidden;
  background: linear-gradient(90deg, rgba(200, 50, 43, .13) 50%, transparent 0) 0 0 / 36px 36px, linear-gradient(rgba(200, 50, 43, .13) 50%, transparent 0) 0 0 / 36px 36px, var(--paper);
  box-shadow: 0 30px 60px -28px rgba(80, 20, 10, .45), inset 0 0 0 1px rgba(200, 50, 43, .12); }
.cbx-card.ti-card p { color: inherit; }
.ti-banner, .cbx-card .ti-banner { margin: 0 0 10px; padding: 10px 14px; border-radius: 14px; font: 800 14px/1.45 var(--cbx-body); background: #fff; border: 2px solid var(--red); }
.ti-banner b { color: var(--red); }

/* ---- playing ---- */
.ti-top { display: flex; align-items: center; gap: 8px; margin: 0 auto 8px; max-width: 460px; font: 900 13px var(--cbx-body); }
.ti-count { padding: 5px 11px; border-radius: 999px; background: var(--red); color: #fff; }
.ti-count b { font-size: 16px; }
.ti-rank { padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(200, 50, 43, .25); }
.ti-rank.up { animation: ti-up .7s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes ti-up { 40% { transform: scale(1.18); background: var(--mustard); } }
.ti-prog { margin-left: auto; color: rgba(58, 36, 24, .6); font-variant-numeric: tabular-nums; }
.ti-prog.ms { color: var(--red); }
.ti-mini { display: grid; grid-template-columns: repeat(20, 1fr); gap: 2px; max-width: 460px; margin: 0 auto 10px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 2px rgba(200, 50, 43, .18); }
.ti-cell { aspect-ratio: 1; border: 0; padding: 0; border-radius: 4px; background: #efe3cb; display: grid; place-items: center; overflow: hidden; pointer-events: none; }
.ti-cell span { font-size: 11px; line-height: 1; opacity: 0; transition: opacity .2s; }
.ti-cell.yes { background: color-mix(in srgb, var(--rc) 30%, #fff); }
.ti-cell.yes span { opacity: 1; }
.ti-cell.no { background: #ddd0b4; }
.ti-cell.cur { box-shadow: 0 0 0 2px var(--red); animation: ti-pulse 1s ease-in-out infinite; }
@keyframes ti-pulse { 50% { background: #ffd34d; } }

.ti-deck { position: relative; max-width: 380px; margin: 0 auto; }
.ti-deck::before { content: ''; position: absolute; inset: 6px -6px -6px 6px; border-radius: 18px; background: #fff; opacity: .6; transform: rotate(2deg); box-shadow: 0 4px 10px rgba(0, 0, 0, .08); }
.ti-menu { position: relative; z-index: 1; overflow: hidden; border-radius: 18px; background: var(--cream); color: var(--ink); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
  box-shadow: 0 2px 0 #e6d3b0, 0 18px 34px -16px rgba(80, 20, 10, .5); transition: transform .22s cubic-bezier(.3, .7, .4, 1), opacity .22s; }
.ti-menu.drag { transition: none; cursor: grabbing; }
.ti-menu.fly-r { transform: translateX(130%) rotate(16deg); opacity: 0; }
.ti-menu.fly-l { transform: translateX(-130%) rotate(-16deg); opacity: 0; }
.ti-menu.enter { transform: scale(.94) translateY(10px); opacity: 0; transition: none; }
.ti-menu[data-lean="yes"] { box-shadow: 0 0 0 4px #2f9b84, 0 18px 34px -16px rgba(80, 20, 10, .5); }
.ti-menu[data-lean="no"] { box-shadow: 0 0 0 4px #a8987a, 0 18px 34px -16px rgba(80, 20, 10, .5); }
.ti-band { height: 26px; background: repeating-linear-gradient(90deg, var(--rc) 0 13px, #fff 13px 26px), var(--rc); background-blend-mode: normal;
  -webkit-mask: linear-gradient(#000 60%, transparent 0) 0 0 / 100% 13px; mask: linear-gradient(#000 60%, transparent 0) 0 0 / 100% 13px; opacity: .9; }
.ti-body { padding: 14px 22px 26px; min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cbx-card .ti-kick { margin: 0 0 6px; font: 900 12px var(--cbx-body); letter-spacing: .16em; text-transform: uppercase; color: var(--rc); }
.ti-emoji { font-size: 74px; line-height: 1; margin-bottom: 8px; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .15)); }
.ti-menu h2 { margin: 0; font: 400 clamp(28px, 8.4vw, 38px)/1.08 'Shrikhand', Georgia, serif; color: var(--ink); }
.cbx-card .ti-line { margin: 8px 0 0; font: 800 16px/1.4 var(--cbx-body); color: #6b5442; max-width: 300px; }
.ti-menu.start h2 { font-size: clamp(24px, 7vw, 32px); }
.ti-stamp { position: absolute; right: 16px; top: 44px; opacity: 0; transform: rotate(-14deg) scale(2.2); pointer-events: none; }
.ti-stamp span { display: block; padding: 4px 14px; border: 4px double var(--red); border-radius: 50% / 40%; color: var(--red); font: 400 26px 'Shrikhand', serif; background: rgba(255, 248, 236, .5); }
.ti-menu.stamped .ti-stamp { animation: ti-stamp .24s cubic-bezier(.2, 1.4, .5, 1) forwards; }
@keyframes ti-stamp { to { opacity: .9; transform: rotate(-14deg) scale(1); } }

.ti-choose { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; max-width: 380px; margin: 14px auto 0; }
.ti-choose button { min-height: 56px; border-radius: 16px; border: 0; cursor: pointer; font: 900 18px var(--cbx-body); }
.ti-no { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(58, 36, 24, .2), 0 3px 0 rgba(58, 36, 24, .15); }
.ti-yes { background: linear-gradient(180deg, #e2483f, var(--red)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 0 var(--red-2); }
.ti-yes:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 0 var(--red-2); }
.ti-choose .ti-no[hidden] + .ti-yes { grid-column: 1 / -1; }
.ti-choose button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.ti-tools { display: flex; justify-content: center; gap: 22px; margin-top: 10px; min-height: 30px; }
.ti-link { border: 0; background: none; color: #6b5442; font: 800 14px var(--cbx-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px; }

/* ---- finished ---- */
.ti-greet { text-align: center; margin: 4px 0 4px; }
.cbx-card .ti-greet-k { margin: 0; font: 900 13px var(--cbx-body); letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.cbx-card .ti-greet-n { margin: 0; font: 400 clamp(60px, 19vw, 96px)/1 'Shrikhand', Georgia, serif; color: var(--red); text-shadow: 3px 3px 0 #7b1d17; }
.ti-greet-n small { font: 900 26px var(--cbx-body); color: var(--ink); text-shadow: none; margin-left: 4px; }
.cbx-card .ti-greet-r { margin: 4px 0 0; font: 800 16px var(--cbx-body); }
.ti-greet-r b { color: var(--red); }
.ti-greet-r small { color: #8a7360; font-size: 14px; }
.cbx-card .ti-crowd { margin: 6px auto 0; max-width: 520px; text-align: center; font: 800 15px/1.4 var(--cbx-body); }
.ti-crowd b { color: var(--red); }
.ti-plate-wrap { position: relative; max-width: 520px; margin: 10px auto 0; }
.ti-plate-wrap:has(.ti-deep:not([hidden])) { margin-bottom: 56px; }
.ti-plate { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; padding: 12px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 7px #fff, inset 0 0 0 8px rgba(200, 50, 43, .3), 0 14px 28px -16px rgba(80, 20, 10, .5); }
.ti-dish { aspect-ratio: 1; border: 0; padding: 0; border-radius: 8px; display: grid; place-items: center; cursor: pointer; background: transparent; }
.ti-dish span { font-size: clamp(18px, 5.6vw, 30px); line-height: 1; }
.ti-dish.no span { opacity: .2; filter: grayscale(1); }
.ti-dish:not(.no) { background: color-mix(in srgb, var(--rc) 24%, #fff); }
.ti-dish:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.cbx-card .ti-hint { margin: 6px 0 0; text-align: center; font: 800 13px var(--cbx-body); color: #8a7360; min-height: 18px; }
.ti-deep { position: absolute; right: -4px; bottom: -50px; z-index: 2; display: grid; justify-items: center; gap: 1px; padding: 8px 12px 9px; transform: rotate(-7deg); pointer-events: none;
  border: 4px double var(--red); border-radius: 12px; color: var(--red); background: #fff8ec; text-align: center; text-transform: uppercase; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .3);
  animation: ti-deep-in .4s cubic-bezier(.2, 1.5, .45, 1) .3s both; }
.ti-deep .k { font: 900 10px var(--cbx-body); letter-spacing: .2em; }
.ti-deep b { font: 400 clamp(16px, 4.6vw, 21px)/1.1 'Shrikhand', Georgia, serif; text-transform: none; }
.ti-deep span:last-child { font: 900 10px/1.2 var(--cbx-body); letter-spacing: .06em; }
@keyframes ti-deep-in { from { opacity: 0; transform: rotate(-7deg) scale(1.8); } to { opacity: 1; transform: rotate(-7deg) scale(1); } }
.ti-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 8px 0 0; font: 800 13px var(--cbx-body); }
.ti-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.ti-compare { max-width: 520px; margin: 10px auto 0; padding: 12px 14px; border-radius: 14px; background: #fff; text-align: center; font: 800 16px/1.45 var(--cbx-body); box-shadow: inset 0 0 0 2px rgba(200, 50, 43, .2); }
.ti-compare p { margin: 0; } .ti-compare b { color: var(--red); }
.cbx-card .ti-compare .ti-dare { margin-top: 4px; font-size: 14px; color: #6b5442; }
.ti-regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 520px; margin: 12px auto 0; padding: 0; list-style: none; }
.ti-regions li { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 7px 10px; border-radius: 10px; background: #fff; border-left: 5px solid var(--rc); font: 800 12px var(--cbx-body); }
.ti-regions b { font-size: 15px; }
.cbx-card .ti-next { max-width: 520px; margin: 12px auto 0; text-align: center; font: 800 15px/1.6 var(--cbx-body); }
.ti-next b { color: var(--red); }
.ti-acts { display: grid; gap: 8px; max-width: 420px; margin: 14px auto 0; }
.ti-card .cbx-btn { border-radius: 14px; font-weight: 900; min-height: 48px; }
.ti-card .cbx-btn:not(.alt) { background: linear-gradient(180deg, #e2483f, var(--red)); color: #fff; border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 0 var(--red-2); }
.ti-card .cbx-btn.ti-img { background: linear-gradient(180deg, #ffc95a, var(--mustard)); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 4px 0 #a86f12; }
.ti-card .cbx-btn.alt { background: #fff; color: var(--ink); border: 0; box-shadow: inset 0 0 0 2px rgba(58, 36, 24, .2); }

@media (max-width: 560px) {
  .cbx-card.ti-card { --cbx-full-pad: 4px; padding: 10px 10px 14px; }
  .ti-page .cbx-hero { margin-bottom: 10px; }
  .ti-body { min-height: 214px; padding: 12px 18px 22px; }
  .ti-emoji { font-size: 62px; }
  .ti-regions { grid-template-columns: repeat(2, 1fr); }
  .ti-plate { padding: 8px; gap: 2px; }
}
@media (max-width: 560px) and (max-height: 760px) { .ti-page .cbx-sub { display: none; } }
@media (prefers-reduced-motion: reduce) { .ti-menu { transition: none; } .ti-cell.cur { animation: none; background: #ffd34d; } .ti-menu.stamped .ti-stamp { animation: none; opacity: .9; transform: rotate(-14deg); } .ti-deep, .ti-rank.up { animation: none; } }
.ti-dish.both, .ti-dish.me, .ti-dish.them { background: color-mix(in srgb, var(--rc) 48%, #fff); }

/* the iMessage app, for iPhone and iPad players not already in it */
.cb-appcard { display: flex; align-items: center; gap: 12px; max-width: 420px; margin: 14px auto 0; padding: 12px 14px; border-radius: 16px; background: #fff; color: #1d1d1f; text-decoration: none; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5); }
.cb-appcard img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.cb-appcard b { display: block; font: 900 15px/1.25 Nunito, system-ui, sans-serif; }
.cb-appcard span { display: block; font: 700 13px/1.35 Nunito, system-ui, sans-serif; color: #5a5a60; }
.cb-appcard i { margin-left: auto; flex: none; font-style: normal; padding: 8px 12px; border-radius: 999px; background: #0a84ff; color: #fff; font: 900 13px Nunito, system-ui, sans-serif; }
