*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --tr-leaf: #2f7d4f;
  --tr-leaf-dark: #22603b;
  --tr-moss: #e5f2e9;
  --tr-cream: #fafcf8;
  --tr-white: #ffffff;
  --tr-ink: #1d2b22;
  --tr-muted: #5d6f63;
  --tr-line: #dbe8de;
  --tr-font: Verdana, Geneva, "Segoe UI", sans-serif;
  --tr-title: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--tr-cream);
  color: var(--tr-ink);
  font-family: var(--tr-font);
  -webkit-font-smoothing: antialiased;
}

.tr-band {
  padding: 18px 16px;
  text-align: center;
  background: var(--tr-white);
  border-top: 4px solid var(--tr-leaf);
  border-bottom: 1px solid var(--tr-line);
}
.tr-band__title {
  font-family: var(--tr-title);
  font-size: 22px;
  font-weight: 700;
  color: var(--tr-leaf-dark);
  text-decoration: none;
}

.tr-claim {
  max-width: 860px;
  margin: 0 auto;
  padding: 42px 18px 28px;
  text-align: center;
  font-family: var(--tr-title);
  font-size: clamp(26px, 4.2vw, 44px);
  line-height: 1.26;
  font-weight: 700;
}
.tr-claim__green {
  color: var(--tr-leaf);
}

.tr-viewer {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}
#tr_case {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 12px;
  outline: 1px solid var(--tr-line);
  outline-offset: 5px;
}
#tr_film {
  display: block;
  width: 100%;
  height: auto;
}

#tr_go {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 28px 16px;
  border-radius: 14px;
  background: rgba(250, 252, 248, 0.95);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  text-align: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
#tr_go.tr_go_off {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.tr-go__pulse {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.tr-go__beat {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tr-leaf);
  animation: tr-hop 1.2s ease-in-out infinite;
}
.tr-go__beat:nth-child(2) {
  animation-delay: 0.15s;
}
.tr-go__beat:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes tr-hop {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-6px);
    opacity: 1;
  }
}
.tr-go__label {
  font-size: 16px;
  font-weight: 700;
  color: var(--tr-leaf-dark);
}
.tr-go__small {
  font-size: 12px;
  color: var(--tr-muted);
}

#tr_wide {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 8;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: rgba(29, 43, 34, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#tr_wide svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#tr_case:fullscreen,
#tr_case:-webkit-full-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  outline: none;
}
#tr_case:fullscreen #tr_film,
#tr_case:-webkit-full-screen #tr_film {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tr-purchase {
  padding: 50px 16px 54px;
}
.tr-purchase__wrap {
  max-width: 520px;
  margin: 0 auto;
}
.tr-blank {
  background: var(--tr-white);
  border: 1px solid var(--tr-line);
  border-radius: 12px;
  padding: 28px 24px 24px;
}
.tr-blank__head {
  text-align: center;
  font-family: var(--tr-title);
  font-size: 24px;
  margin-bottom: 16px;
}
.tr-blank__photo {
  display: flex;
  justify-content: center;
}
.tr-blank__photo img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
}
.tr-blank__stock {
  text-align: center;
  margin: 14px 0 20px;
}
.tr-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--tr-leaf-dark);
  background: var(--tr-moss);
  border-radius: 999px;
}
.tr-tag__leaf {
  width: 10px;
  height: 10px;
  background: var(--tr-leaf);
  border-radius: 0 60% 0 60%;
}
.tr-blank__skip {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.tr-blank__line {
  margin-bottom: 14px;
}
.tr-blank__name {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}
.tr-blank__box {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--tr-ink);
  background: var(--tr-cream);
  border: 1px solid var(--tr-line);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tr-blank__box--num {
  letter-spacing: 0.02em;
}
.tr-blank__box:focus {
  border-color: var(--tr-leaf);
  box-shadow: 0 0 0 3px rgba(47, 125, 79, 0.15);
}
.tr-blank__box::placeholder {
  color: #9aab9f;
}
.tr-blank__send {
  width: 100%;
  margin-top: 8px;
  padding: 15px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--tr-leaf);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.tr-blank__send:hover {
  background: var(--tr-leaf-dark);
}
.tr-blank__memo {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
  color: var(--tr-muted);
}

.tr-floor {
  margin-top: auto;
  padding: 28px 16px;
  background: var(--tr-moss);
  text-align: center;
}
.tr-floor__in {
  max-width: 780px;
  margin: 0 auto;
}
.tr-floor__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-bottom: 12px;
}
.tr-floor__nav a {
  font-size: 12px;
  color: var(--tr-leaf-dark);
}
.tr-floor__copy {
  font-size: 12px;
  color: var(--tr-muted);
  margin-bottom: 8px;
}
.tr-floor__note {
  font-size: 11px;
  line-height: 1.7;
  color: #7a8b80;
}

@media (max-width: 480px) {
  #tr_go {
    padding: 14px 18px 12px;
  }
  .tr-go__small {
    display: none;
  }
  .tr-blank {
    padding: 22px 16px 20px;
  }
}
