fancy-ui-vue 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/README.md +12 -12
  2. package/dist/components/frost-glass/FrostGlass.vue.d.ts +31 -0
  3. package/dist/components/frost-glass/FrostGlass.vue.js +90 -0
  4. package/dist/components/frost-glass/FrostGlass.vue2.js +4 -0
  5. package/dist/components/frost-glass/frost-glass-core.d.ts +155 -0
  6. package/dist/components/frost-glass/frost-glass-core.js +820 -0
  7. package/dist/components/frost-glass/index.d.ts +2 -0
  8. package/dist/components/gift-reveal/GiftReveal.vue.d.ts +50 -0
  9. package/dist/components/gift-reveal/GiftReveal.vue.js +7 -0
  10. package/dist/components/gift-reveal/GiftReveal.vue2.js +177 -0
  11. package/dist/components/gift-reveal/gift-reveal-core.d.ts +109 -0
  12. package/dist/components/gift-reveal/gift-reveal-core.js +116 -0
  13. package/dist/components/gift-reveal/index.d.ts +2 -0
  14. package/dist/components/ornament/Ornament.vue.d.ts +29 -0
  15. package/dist/components/ornament/Ornament.vue.js +112 -0
  16. package/dist/components/ornament/Ornament.vue2.js +4 -0
  17. package/dist/components/ornament/index.d.ts +2 -0
  18. package/dist/components/ornament/ornament-core.d.ts +177 -0
  19. package/dist/components/ornament/ornament-core.js +861 -0
  20. package/dist/components/snowfall/Snowfall.vue.d.ts +29 -0
  21. package/dist/components/snowfall/Snowfall.vue.js +81 -0
  22. package/dist/components/snowfall/Snowfall.vue2.js +4 -0
  23. package/dist/components/snowfall/index.d.ts +2 -0
  24. package/dist/components/snowfall/snowfall-core.d.ts +119 -0
  25. package/dist/components/snowfall/snowfall-core.js +483 -0
  26. package/dist/components/string-lights/StringLights.vue.d.ts +35 -0
  27. package/dist/components/string-lights/StringLights.vue.js +7 -0
  28. package/dist/components/string-lights/StringLights.vue2.js +98 -0
  29. package/dist/components/string-lights/index.d.ts +2 -0
  30. package/dist/components/string-lights/string-lights-core.d.ts +157 -0
  31. package/dist/components/string-lights/string-lights-core.js +228 -0
  32. package/dist/index.d.ts +5 -0
  33. package/dist/index.js +326 -316
  34. package/dist/styles.css +1341 -0
  35. package/package.json +2 -2
package/dist/styles.css CHANGED
@@ -6822,6 +6822,1347 @@ to {
6822
6822
  }
6823
6823
  }
6824
6824
 
6825
+ .fancy-string-lights[data-v-12f37b6d] {
6826
+ --sl-size: 12px;
6827
+ --sl-glow: 0.7;
6828
+ position: relative;
6829
+ width: 100%;
6830
+ pointer-events: none;
6831
+ user-select: none;
6832
+ }
6833
+ .fancy-string-lights-wire[data-v-12f37b6d] {
6834
+ position: absolute;
6835
+ inset: 0;
6836
+ width: 100%;
6837
+ height: 100%;
6838
+ overflow: visible;
6839
+ }
6840
+ .fancy-string-lights-wire path[data-v-12f37b6d] {
6841
+ fill: none;
6842
+ stroke: var(--string-lights-wire, color-mix(in oklab, currentColor 42%, transparent));
6843
+ stroke-width: 1.25;
6844
+ stroke-linecap: round;
6845
+ vector-effect: non-scaling-stroke;
6846
+ }
6847
+
6848
+ /* Light around a bulb. The anchor itself paints nothing and creates no
6849
+ stacking context, so each pseudo-element blends with the page behind it:
6850
+ ::before screens light over the page (adds light on dark, almost nothing on
6851
+ white), ::after multiplies a tint (colours a white page, vanishes on black). Together they read as light on
6852
+ any background without knowing the theme. */
6853
+ .fancy-string-lights-halo[data-v-12f37b6d] {
6854
+ position: absolute;
6855
+ width: 0;
6856
+ height: 0;
6857
+ }
6858
+ .fancy-string-lights-halo[data-v-12f37b6d]::before,
6859
+ .fancy-string-lights-halo[data-v-12f37b6d]::after {
6860
+ content: "";
6861
+ position: absolute;
6862
+ --_d: calc(var(--sl-size) * (2.5 + 9 * var(--sl-glow)));
6863
+ left: calc(var(--_d) / -2);
6864
+ top: calc(var(--_d) / -2);
6865
+ width: var(--_d);
6866
+ height: var(--_d);
6867
+ border-radius: 50%;
6868
+ }
6869
+ .fancy-string-lights-halo[data-v-12f37b6d]::before {
6870
+ background: radial-gradient(
6871
+ closest-side,
6872
+ color-mix(in oklab, var(--sl-color) calc(var(--sl-glow) * 80%), transparent) 0%,
6873
+ color-mix(in oklab, var(--sl-color) calc(var(--sl-glow) * 42%), transparent) 12%,
6874
+ color-mix(in oklab, var(--sl-color) calc(var(--sl-glow) * 20%), transparent) 26%,
6875
+ color-mix(in oklab, var(--sl-color) calc(var(--sl-glow) * 9%), transparent) 44%,
6876
+ color-mix(in oklab, var(--sl-color) calc(var(--sl-glow) * 3.5%), transparent) 66%,
6877
+ color-mix(in oklab, var(--sl-color) calc(var(--sl-glow) * 1%), transparent) 84%,
6878
+ transparent 100%
6879
+ );
6880
+ mix-blend-mode: screen;
6881
+ }
6882
+ .fancy-string-lights-halo[data-v-12f37b6d]::after {
6883
+ --_d: calc(var(--sl-size) * (2 + 6 * var(--sl-glow)));
6884
+ background: radial-gradient(
6885
+ closest-side,
6886
+ color-mix(in oklab, var(--sl-color) calc(var(--sl-glow) * 70%), transparent) 0%,
6887
+ color-mix(in oklab, var(--sl-color) calc(var(--sl-glow) * 32%), transparent) 30%,
6888
+ color-mix(in oklab, var(--sl-color) calc(var(--sl-glow) * 10%), transparent) 62%,
6889
+ transparent 100%
6890
+ );
6891
+ mix-blend-mode: multiply;
6892
+ }
6893
+
6894
+ /* The bulb hangs from its socket's top centre, which sits on the wire. */
6895
+ .fancy-string-lights-bulb[data-v-12f37b6d] {
6896
+ position: absolute;
6897
+ width: var(--sl-size);
6898
+ height: calc(var(--sl-size) * 1.63);
6899
+ margin-left: calc(var(--sl-size) / -2);
6900
+ transform: rotate(var(--sl-angle, 0deg));
6901
+ transform-origin: 50% 0;
6902
+ }
6903
+ .fancy-string-lights-socket[data-v-12f37b6d] {
6904
+ position: absolute;
6905
+ left: 25%;
6906
+ top: 0;
6907
+ width: 50%;
6908
+ height: calc(var(--sl-size) * 0.75);
6909
+ border-radius: 1.5px 1.5px 2px 2px;
6910
+ background: linear-gradient(
6911
+ 90deg,
6912
+ color-mix(in oklab, currentColor 22%, #0b0b0c),
6913
+ color-mix(in oklab, currentColor 48%, #1a1a1c) 40%,
6914
+ color-mix(in oklab, currentColor 20%, #0b0b0c)
6915
+ );
6916
+ }
6917
+
6918
+ /* Unlit glass: a faint tint, a darker rim and a fixed highlight, so a dim
6919
+ bulb still reads as a bulb on any background. */
6920
+ .fancy-string-lights-glass[data-v-12f37b6d] {
6921
+ position: absolute;
6922
+ left: 0;
6923
+ top: calc(var(--sl-size) * 0.63);
6924
+ width: var(--sl-size);
6925
+ height: var(--sl-size);
6926
+ border-radius: 50%;
6927
+ background: radial-gradient(
6928
+ circle at 50% 58%,
6929
+ color-mix(in oklab, var(--sl-color) 30%, transparent),
6930
+ color-mix(in oklab, var(--sl-color) 16%, transparent) 62%,
6931
+ color-mix(in oklab, var(--sl-color) 34%, transparent) 100%
6932
+ );
6933
+ box-shadow: inset 0 0 0 0.75px color-mix(in oklab, var(--sl-color) 45%, rgb(0 0 0 / 0.35));
6934
+ }
6935
+ .fancy-string-lights-glass[data-v-12f37b6d]::after {
6936
+ content: "";
6937
+ position: absolute;
6938
+ left: 22%;
6939
+ top: 16%;
6940
+ width: 30%;
6941
+ height: 22%;
6942
+ border-radius: 50%;
6943
+ background: radial-gradient(closest-side, rgb(255 255 255 / 0.7), transparent);
6944
+ transform: rotate(-30deg);
6945
+ }
6946
+
6947
+ /* The filament's light: a white-hot centre fading to the bulb colour at the
6948
+ glass, plus a tight bloom just outside it. This is the layer that pulses. */
6949
+ .fancy-string-lights-lit[data-v-12f37b6d] {
6950
+ position: absolute;
6951
+ inset: 0;
6952
+ border-radius: 50%;
6953
+ background: radial-gradient(
6954
+ circle at 50% 56%,
6955
+ #fff 0%,
6956
+ color-mix(in oklab, var(--sl-color) 35%, #fff) 26%,
6957
+ var(--sl-color) 62%,
6958
+ color-mix(in oklab, var(--sl-color) 82%, #000) 100%
6959
+ );
6960
+ box-shadow: 0 0 calc(var(--sl-size) * 0.45) calc(var(--sl-size) * 0.05)
6961
+ color-mix(in oklab, var(--sl-color) 65%, transparent);
6962
+ }
6963
+ .fancy-string-lights-lit[data-v-12f37b6d],
6964
+ .fancy-string-lights-halo[data-v-12f37b6d]::before,
6965
+ .fancy-string-lights-halo[data-v-12f37b6d]::after {
6966
+ animation-duration: var(--sl-duration, 0s);
6967
+ animation-delay: var(--sl-delay, 0s);
6968
+ animation-timing-function: ease-in-out;
6969
+ animation-iteration-count: infinite;
6970
+ }
6971
+ .fancy-string-lights[data-pattern="wave"] .fancy-string-lights-lit[data-v-12f37b6d],
6972
+ .fancy-string-lights[data-pattern="wave"] .fancy-string-lights-halo[data-v-12f37b6d]::before,
6973
+ .fancy-string-lights[data-pattern="wave"] .fancy-string-lights-halo[data-v-12f37b6d]::after {
6974
+ animation-name: string-lights-wave-12f37b6d;
6975
+ }
6976
+ .fancy-string-lights[data-pattern="alternate"] .fancy-string-lights-lit[data-v-12f37b6d],
6977
+ .fancy-string-lights[data-pattern="alternate"] .fancy-string-lights-halo[data-v-12f37b6d]::before,
6978
+ .fancy-string-lights[data-pattern="alternate"] .fancy-string-lights-halo[data-v-12f37b6d]::after {
6979
+ animation-name: string-lights-alternate-12f37b6d;
6980
+ }
6981
+ .fancy-string-lights[data-pattern="breathe"] .fancy-string-lights-lit[data-v-12f37b6d],
6982
+ .fancy-string-lights[data-pattern="breathe"] .fancy-string-lights-halo[data-v-12f37b6d]::before,
6983
+ .fancy-string-lights[data-pattern="breathe"] .fancy-string-lights-halo[data-v-12f37b6d]::after {
6984
+ animation-name: string-lights-breathe-12f37b6d;
6985
+ }
6986
+ .fancy-string-lights[data-pattern="twinkle"] .fancy-string-lights-lit[data-v-12f37b6d],
6987
+ .fancy-string-lights[data-pattern="twinkle"] .fancy-string-lights-halo[data-v-12f37b6d]::before,
6988
+ .fancy-string-lights[data-pattern="twinkle"] .fancy-string-lights-halo[data-v-12f37b6d]::after {
6989
+ animation-name: string-lights-twinkle-12f37b6d;
6990
+ }
6991
+
6992
+ /* A pulse of full brightness over a string held at half. */
6993
+ @keyframes string-lights-wave-12f37b6d {
6994
+ 0%,
6995
+ 100% {
6996
+ opacity: 1;
6997
+ }
6998
+ 22%,
6999
+ 78% {
7000
+ opacity: 0.38;
7001
+ }
7002
+ }
7003
+ @keyframes string-lights-alternate-12f37b6d {
7004
+ 0%,
7005
+ 38% {
7006
+ opacity: 1;
7007
+ }
7008
+ 50%,
7009
+ 88% {
7010
+ opacity: 0.12;
7011
+ }
7012
+ 100% {
7013
+ opacity: 1;
7014
+ }
7015
+ }
7016
+ @keyframes string-lights-breathe-12f37b6d {
7017
+ 0%,
7018
+ 100% {
7019
+ opacity: 1;
7020
+ }
7021
+ 50% {
7022
+ opacity: 0.3;
7023
+ }
7024
+ }
7025
+
7026
+ /* Mostly lit, with a quick double flicker once per cycle. */
7027
+ @keyframes string-lights-twinkle-12f37b6d {
7028
+ 0%,
7029
+ 52% {
7030
+ opacity: 1;
7031
+ }
7032
+ 56% {
7033
+ opacity: 0.15;
7034
+ }
7035
+ 60% {
7036
+ opacity: 0.85;
7037
+ }
7038
+ 64% {
7039
+ opacity: 0.25;
7040
+ }
7041
+ 74%,
7042
+ 100% {
7043
+ opacity: 1;
7044
+ }
7045
+ }
7046
+ @media (prefers-reduced-motion: reduce) {
7047
+ .fancy-string-lights .fancy-string-lights-lit[data-v-12f37b6d],
7048
+ .fancy-string-lights .fancy-string-lights-halo[data-v-12f37b6d]::before,
7049
+ .fancy-string-lights .fancy-string-lights-halo[data-v-12f37b6d]::after {
7050
+ animation: none;
7051
+ }
7052
+ }
7053
+
7054
+ /*
7055
+ * GiftReveal: a wrapped box built from real 3D faces, opened by CSS alone.
7056
+ *
7057
+ * The root carries every number as a custom property (see gift-reveal-core):
7058
+ * colours, the box width (--gr-size) and the timing of each phase in both
7059
+ * directions (--gr-o-* when opening, --gr-c-* when closing). A transition
7060
+ * takes its timing from the state it is heading to, so the [data-open] rules
7061
+ * read the -o- set and the resting rules read the -c- set.
7062
+ *
7063
+ * Attributes on the root:
7064
+ * data-open the box is open (or opening)
7065
+ * data-animate the state has changed at least once since mount; the
7066
+ * one-shot keyframes (wiggle, flare, motes) only run under
7067
+ * it, so a box that mounts open does not replay its opening
7068
+ * data-motion "reduced": no travel, a cross-fade only
7069
+ *
7070
+ * Two kinds of layer:
7071
+ * - the box itself (walls, floor, lid, ribbon) is real 3D under one fixed
7072
+ * camera;
7073
+ * - the bow, the light and the content are flat layers placed over the
7074
+ * box at the points where the camera puts its lid and its mouth
7075
+ * (--gr-top-*, --gr-mouth-*). Flat layers keep crisp, smooth curves,
7076
+ * which a 3D scene does not give rounded shapes.
7077
+ *
7078
+ * Nothing that holds 3D children gets `opacity` or `filter`: either one
7079
+ * flattens the 3D context. Fades land on leaf faces or on the 2D wrapper.
7080
+ */
7081
+ .ft-gift-reveal[data-v-f28780c3] {
7082
+ --gr-s: var(--gr-size, 160px);
7083
+ /* body: width, height, depth; lid: overhang and height */
7084
+ --gr-w: var(--gr-s);
7085
+ --gr-h: calc(var(--gr-s) * 0.72);
7086
+ --gr-d: var(--gr-s);
7087
+ --gr-lw: calc(var(--gr-s) * 1.06);
7088
+ --gr-ld: calc(var(--gr-s) * 1.06);
7089
+ --gr-lh: calc(var(--gr-s) * 0.2);
7090
+ --gr-band: calc(var(--gr-s) * 0.14);
7091
+
7092
+ /* Where the camera puts the box, in box widths from the bottom centre of
7093
+ the root. Measured once for the fixed camera below; everything scales
7094
+ with --gr-s, so they hold at every size. */
7095
+ --gr-top-x: 0;
7096
+ --gr-top-y: 0.98;
7097
+ --gr-mouth-y: 0.945;
7098
+ --gr-mouth-open-y: 0.8;
7099
+ --gr-rim-open-y: 1.03;
7100
+ --gr-base-y: 0.29;
7101
+
7102
+ /* light from the upper left: the top is lightest, the front (left on
7103
+ screen) is mid, the right side darkest */
7104
+ --gr-paper-top: color-mix(in oklab, var(--gr-color) 68%, white);
7105
+ --gr-paper-hi: color-mix(in oklab, var(--gr-color) 90%, white);
7106
+ --gr-paper-lo: color-mix(in oklab, var(--gr-color) 80%, black);
7107
+ --gr-paper-deep: color-mix(in oklab, var(--gr-color) 32%, black);
7108
+ --gr-ribbon-hi: color-mix(in oklab, var(--gr-ribbon) 40%, white);
7109
+ --gr-ribbon-lo: color-mix(in oklab, var(--gr-ribbon) 64%, black);
7110
+ --gr-ribbon-fold: color-mix(in oklab, var(--gr-ribbon) 42%, black);
7111
+ --gr-glow-hot: color-mix(in oklab, var(--gr-glow) 40%, white);
7112
+ --gr-glow-soft: color-mix(in oklab, var(--gr-glow) 55%, transparent);
7113
+ --gr-glow-faint: color-mix(in oklab, var(--gr-glow) 18%, transparent);
7114
+
7115
+ position: relative;
7116
+ display: inline-block;
7117
+ width: calc(var(--gr-s) * 1.8);
7118
+ height: calc(var(--gr-s) * 2.1);
7119
+ vertical-align: middle;
7120
+ isolation: isolate;
7121
+ }
7122
+
7123
+ /* ---- stage layers ------------------------------------------------------------ */
7124
+
7125
+ /* The light the open box throws on whatever is around it. */
7126
+ .gr-spill[data-v-f28780c3] {
7127
+ position: absolute;
7128
+ left: 50%;
7129
+ bottom: calc(var(--gr-s) * 0.25);
7130
+ width: calc(var(--gr-s) * 2.6);
7131
+ height: calc(var(--gr-s) * 2.1);
7132
+ margin-left: calc(var(--gr-s) * -1.3);
7133
+ border-radius: 50%;
7134
+ background: radial-gradient(
7135
+ closest-side,
7136
+ var(--gr-glow-soft),
7137
+ var(--gr-glow-faint) 45%,
7138
+ transparent
7139
+ );
7140
+ opacity: 0;
7141
+ pointer-events: none;
7142
+ z-index: 0;
7143
+ }
7144
+ .gr-button[data-v-f28780c3] {
7145
+ all: unset;
7146
+ position: absolute;
7147
+ left: 50%;
7148
+ bottom: 0;
7149
+ width: calc(var(--gr-s) * 1.6);
7150
+ height: calc(var(--gr-s) * 1.45);
7151
+ margin-left: calc(var(--gr-s) * -0.8);
7152
+ border-radius: calc(var(--gr-s) * 0.12);
7153
+ cursor: pointer;
7154
+ z-index: 1;
7155
+ -webkit-tap-highlight-color: transparent;
7156
+ }
7157
+ .gr-button[data-v-f28780c3]:focus-visible {
7158
+ outline: 2px solid var(--color-ring, #888);
7159
+ outline-offset: 4px;
7160
+ }
7161
+ .ft-gift-reveal[data-open] .gr-button[aria-disabled="true"][data-v-f28780c3],
7162
+ .ft-gift-reveal[data-trigger="manual"] .gr-button[data-v-f28780c3] {
7163
+ cursor: default;
7164
+ }
7165
+
7166
+ /* Warm light pooled on the floor around an open box. */
7167
+ .gr-groundglow[data-v-f28780c3] {
7168
+ position: absolute;
7169
+ left: 50%;
7170
+ bottom: calc(var(--gr-s) * (var(--gr-base-y) - 0.2));
7171
+ width: calc(var(--gr-s) * 2);
7172
+ height: calc(var(--gr-s) * 0.6);
7173
+ margin-left: calc(var(--gr-s) * -1);
7174
+ border-radius: 50%;
7175
+ background: radial-gradient(
7176
+ closest-side,
7177
+ var(--gr-glow-soft),
7178
+ var(--gr-glow-faint) 55%,
7179
+ transparent
7180
+ );
7181
+ opacity: 0;
7182
+ pointer-events: none;
7183
+ }
7184
+
7185
+ /* The soft contact shadow on the table. */
7186
+ .gr-shadow[data-v-f28780c3] {
7187
+ position: absolute;
7188
+ left: 50%;
7189
+ bottom: calc(var(--gr-s) * (var(--gr-base-y) - 0.1));
7190
+ width: calc(var(--gr-s) * 1.5);
7191
+ height: calc(var(--gr-s) * 0.34);
7192
+ margin-left: calc(var(--gr-s) * -0.75);
7193
+ border-radius: 50%;
7194
+ background: radial-gradient(closest-side, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.2) 55%, transparent);
7195
+ pointer-events: none;
7196
+ }
7197
+
7198
+ /* The perspective holder: the one 2D element the whole box can fade on. */
7199
+ .gr-box[data-v-f28780c3] {
7200
+ position: absolute;
7201
+ inset: 0;
7202
+ perspective: calc(var(--gr-s) * 4.2);
7203
+ perspective-origin: 50% 40%;
7204
+ pointer-events: none;
7205
+ }
7206
+
7207
+ /* Every 3D container. */
7208
+ .gr-camera[data-v-f28780c3],
7209
+ .gr-sinker[data-v-f28780c3],
7210
+ .gr-wiggle[data-v-f28780c3],
7211
+ .gr-body[data-v-f28780c3],
7212
+ .gr-wall[data-v-f28780c3],
7213
+ .gr-lid-hint[data-v-f28780c3],
7214
+ .gr-lid-lift[data-v-f28780c3],
7215
+ .gr-lid[data-v-f28780c3] {
7216
+ position: absolute;
7217
+ left: 50%;
7218
+ top: 50%;
7219
+ width: 0;
7220
+ height: 0;
7221
+ transform-style: preserve-3d;
7222
+ }
7223
+
7224
+ /* One fixed camera: a little above the box, turned to show its right side. */
7225
+ .gr-camera[data-v-f28780c3] {
7226
+ top: 58%;
7227
+ transform: rotateX(-22deg) rotateY(-32deg);
7228
+ }
7229
+ .gr-wiggle[data-v-f28780c3] {
7230
+ /* squash from the table, not the middle */
7231
+ transform-origin: 0 calc(var(--gr-h) / 2);
7232
+ }
7233
+
7234
+ /* ---- faces -------------------------------------------------------------------- */
7235
+ .gr-face[data-v-f28780c3] {
7236
+ position: absolute;
7237
+ left: 0;
7238
+ top: 0;
7239
+ backface-visibility: hidden;
7240
+ overflow: hidden;
7241
+ }
7242
+
7243
+ /* the body's walls: front, right, back, left, each with an outer and an inner face */
7244
+ .gr-wall > .gr-face[data-v-f28780c3] {
7245
+ width: var(--gr-w);
7246
+ height: var(--gr-h);
7247
+ margin-left: calc(var(--gr-w) / -2);
7248
+ margin-top: calc(var(--gr-h) / -2);
7249
+ }
7250
+ .gr-wall--right > .gr-face[data-v-f28780c3],
7251
+ .gr-wall--left > .gr-face[data-v-f28780c3] {
7252
+ width: var(--gr-d);
7253
+ margin-left: calc(var(--gr-d) / -2);
7254
+ }
7255
+
7256
+ /* the paper's thickness: a thin lit edge along the top of each wall, seen once the lid is off */
7257
+ .gr-wall > .gr-face--out[data-v-f28780c3] {
7258
+ box-shadow: inset 0 calc(var(--gr-s) * 0.012) 0 var(--gr-paper-top);
7259
+ }
7260
+
7261
+ /* the two walls that meet at the front corner each reach a pixel into it,
7262
+ so no light from inside shows through the seam */
7263
+ .gr-wall--front > .gr-face--out[data-v-f28780c3] {
7264
+ width: calc(var(--gr-w) + 1px);
7265
+ }
7266
+ .gr-wall--right > .gr-face--out[data-v-f28780c3] {
7267
+ width: calc(var(--gr-d) + 1px);
7268
+ margin-left: calc(var(--gr-d) / -2 - 1px);
7269
+ }
7270
+ .gr-wall--front[data-v-f28780c3] {
7271
+ transform: translateZ(calc(var(--gr-d) / 2));
7272
+ }
7273
+ .gr-wall--back[data-v-f28780c3] {
7274
+ transform: rotateY(180deg) translateZ(calc(var(--gr-d) / 2));
7275
+ }
7276
+ .gr-wall--right[data-v-f28780c3] {
7277
+ transform: rotateY(90deg) translateZ(calc(var(--gr-w) / 2));
7278
+ }
7279
+ .gr-wall--left[data-v-f28780c3] {
7280
+ transform: rotateY(-90deg) translateZ(calc(var(--gr-w) / 2));
7281
+ }
7282
+ .gr-face--in[data-v-f28780c3] {
7283
+ /* a hair inside the wall, so its light never leaks through a corner seam */
7284
+ transform: rotateY(180deg) translateZ(1px);
7285
+ }
7286
+
7287
+ /* the paper: flat colour, a little brighter at the top of each face */
7288
+ .gr-face--out[data-v-f28780c3] {
7289
+ background: linear-gradient(180deg, var(--gr-paper-hi), var(--gr-color) 60%, var(--gr-paper-lo));
7290
+ }
7291
+ .gr-face--in[data-v-f28780c3] {
7292
+ background: linear-gradient(180deg, var(--gr-paper-deep), var(--gr-paper-lo));
7293
+ }
7294
+
7295
+ /* the shade each face takes from where it turns relative to the light */
7296
+ .gr-shade[data-v-f28780c3] {
7297
+ position: absolute;
7298
+ inset: 0;
7299
+ pointer-events: none;
7300
+ }
7301
+ .gr-wall--right .gr-shade[data-v-f28780c3],
7302
+ .gr-lid-side--right .gr-shade[data-v-f28780c3] {
7303
+ background: linear-gradient(180deg, rgb(0 0 0 / 0.3), rgb(0 0 0 / 0.42));
7304
+ }
7305
+ .gr-wall--front .gr-face--out .gr-shade[data-v-f28780c3] {
7306
+ /* the lid's overhang shades the top of the wall a touch */
7307
+ background: linear-gradient(180deg, rgb(0 0 0 / 0.22), rgb(0 0 0 / 0) 12%, rgb(0 0 0 / 0.1));
7308
+ }
7309
+ .gr-wall--right .gr-face--out .gr-shade[data-v-f28780c3] {
7310
+ background:
7311
+ linear-gradient(180deg, rgb(0 0 0 / 0.2), rgb(0 0 0 / 0) 12%),
7312
+ linear-gradient(180deg, rgb(0 0 0 / 0.32), rgb(0 0 0 / 0.44));
7313
+ }
7314
+ .gr-face--in .gr-shade[data-v-f28780c3] {
7315
+ background: linear-gradient(180deg, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.15) 60%, rgb(0 0 0 / 0));
7316
+ }
7317
+ /* the two far walls seen from inside meet at a corner: one a step darker, so the corner reads */
7318
+ .gr-wall--back .gr-face--in .gr-shade[data-v-f28780c3] {
7319
+ background: linear-gradient(180deg, rgb(0 0 0 / 0.65), rgb(0 0 0 / 0.3) 60%, rgb(0 0 0 / 0.12));
7320
+ }
7321
+
7322
+ /* A satin sheen that sweeps once across the paper on hover. */
7323
+ .gr-sheen[data-v-f28780c3] {
7324
+ position: absolute;
7325
+ inset: 0;
7326
+ pointer-events: none;
7327
+ background: linear-gradient(
7328
+ 105deg,
7329
+ transparent 42%,
7330
+ rgb(255 255 255 / 0.16) 50%,
7331
+ transparent 58%
7332
+ );
7333
+ background-size: 300% 100%;
7334
+ background-position: 0% 0;
7335
+ }
7336
+
7337
+ /* the inside of the box, lit from below by what is in it once the lid is off */
7338
+ .gr-inlight[data-v-f28780c3] {
7339
+ position: absolute;
7340
+ inset: 0;
7341
+ /* brightest at the floor, gone well before the rim */
7342
+ background: linear-gradient(
7343
+ 0deg,
7344
+ var(--gr-glow-hot),
7345
+ var(--gr-glow) 14%,
7346
+ var(--gr-glow-soft) 36%,
7347
+ transparent 72%
7348
+ );
7349
+ opacity: 0;
7350
+ pointer-events: none;
7351
+ }
7352
+ .gr-floor .gr-inlight[data-v-f28780c3] {
7353
+ background: radial-gradient(closest-side, white, var(--gr-glow-hot) 45%, var(--gr-glow));
7354
+ }
7355
+ .gr-floor[data-v-f28780c3] {
7356
+ width: var(--gr-w);
7357
+ height: var(--gr-d);
7358
+ margin-left: calc(var(--gr-w) / -2);
7359
+ margin-top: calc(var(--gr-d) / -2);
7360
+ transform: rotateX(90deg) translateZ(calc(var(--gr-h) / -2));
7361
+ background: var(--gr-paper-deep);
7362
+ }
7363
+
7364
+ /* ---- ribbon ---------------------------------------------------------------------- */
7365
+
7366
+ /* A satin band: rounded across its width, with one bright specular streak. */
7367
+ .gr-band[data-v-f28780c3] {
7368
+ position: absolute;
7369
+ background:
7370
+ linear-gradient(
7371
+ 90deg,
7372
+ transparent 36%,
7373
+ rgb(255 255 255 / 0.5) 45%,
7374
+ rgb(255 255 255 / 0.08) 52%,
7375
+ transparent 60%
7376
+ ),
7377
+ linear-gradient(
7378
+ 90deg,
7379
+ var(--gr-ribbon-lo),
7380
+ var(--gr-ribbon) 22%,
7381
+ var(--gr-ribbon-hi) 46%,
7382
+ var(--gr-ribbon) 70%,
7383
+ var(--gr-ribbon-lo)
7384
+ );
7385
+ }
7386
+
7387
+ /* the vertical band down the middle of each wall and lid side */
7388
+ .gr-band--v[data-v-f28780c3] {
7389
+ left: 50%;
7390
+ top: 0;
7391
+ width: var(--gr-band);
7392
+ height: 100%;
7393
+ margin-left: calc(var(--gr-band) / -2);
7394
+ box-shadow: 0 0 2px rgb(0 0 0 / 0.25);
7395
+ }
7396
+
7397
+ /* the cross on the lid top: four arms out from the knot, each anchored at its
7398
+ outer end so it can be pulled out from under the knot */
7399
+ .gr-band--n[data-v-f28780c3],
7400
+ .gr-band--s[data-v-f28780c3] {
7401
+ left: 50%;
7402
+ width: var(--gr-band);
7403
+ height: 50%;
7404
+ margin-left: calc(var(--gr-band) / -2);
7405
+ }
7406
+ .gr-band--n[data-v-f28780c3] {
7407
+ top: 0;
7408
+ transform-origin: 50% 0;
7409
+ }
7410
+ .gr-band--s[data-v-f28780c3] {
7411
+ top: 50%;
7412
+ transform-origin: 50% 100%;
7413
+ }
7414
+ .gr-band--w[data-v-f28780c3],
7415
+ .gr-band--e[data-v-f28780c3] {
7416
+ top: 50%;
7417
+ width: 50%;
7418
+ height: var(--gr-band);
7419
+ margin-top: calc(var(--gr-band) / -2);
7420
+ background:
7421
+ linear-gradient(
7422
+ 180deg,
7423
+ transparent 36%,
7424
+ rgb(255 255 255 / 0.5) 45%,
7425
+ rgb(255 255 255 / 0.08) 52%,
7426
+ transparent 60%
7427
+ ),
7428
+ linear-gradient(
7429
+ 180deg,
7430
+ var(--gr-ribbon-lo),
7431
+ var(--gr-ribbon) 22%,
7432
+ var(--gr-ribbon-hi) 46%,
7433
+ var(--gr-ribbon) 70%,
7434
+ var(--gr-ribbon-lo)
7435
+ );
7436
+ }
7437
+ .gr-band--w[data-v-f28780c3] {
7438
+ left: 0;
7439
+ transform-origin: 0 50%;
7440
+ }
7441
+ .gr-band--e[data-v-f28780c3] {
7442
+ left: 50%;
7443
+ transform-origin: 100% 50%;
7444
+ }
7445
+
7446
+ /* ---- lid ---------------------------------------------------------------------------- */
7447
+ .gr-lid-hint[data-v-f28780c3] {
7448
+ /* the lid sits over the top of the walls, overlapping them by most of its height */
7449
+ top: calc(50% - var(--gr-h) / 2 + var(--gr-lh) * 0.32);
7450
+ }
7451
+ .gr-lid-top[data-v-f28780c3] {
7452
+ width: var(--gr-lw);
7453
+ height: var(--gr-ld);
7454
+ margin-left: calc(var(--gr-lw) / -2);
7455
+ margin-top: calc(var(--gr-ld) / -2);
7456
+ transform: rotateX(90deg) translateZ(calc(var(--gr-lh) / 2));
7457
+ background:
7458
+ radial-gradient(130% 100% at 15% 10%, rgb(255 255 255 / 0.16), transparent 60%),
7459
+ linear-gradient(135deg, var(--gr-paper-top), color-mix(in oklab, var(--gr-color) 86%, white));
7460
+ /* a soft highlight along the rim */
7461
+ box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
7462
+ }
7463
+ .gr-lid-under[data-v-f28780c3] {
7464
+ width: var(--gr-lw);
7465
+ height: var(--gr-ld);
7466
+ margin-left: calc(var(--gr-lw) / -2);
7467
+ margin-top: calc(var(--gr-ld) / -2);
7468
+ transform: rotateX(-90deg) translateZ(calc(var(--gr-lh) / -2));
7469
+ background: var(--gr-paper-deep);
7470
+ }
7471
+ .gr-lid-side[data-v-f28780c3] {
7472
+ width: var(--gr-lw);
7473
+ height: var(--gr-lh);
7474
+ margin-left: calc(var(--gr-lw) / -2);
7475
+ margin-top: calc(var(--gr-lh) / -2);
7476
+ }
7477
+ .gr-lid-side--front[data-v-f28780c3] {
7478
+ transform: translateZ(calc(var(--gr-ld) / 2));
7479
+ }
7480
+ .gr-lid-side--back[data-v-f28780c3] {
7481
+ transform: rotateY(180deg) translateZ(calc(var(--gr-ld) / 2));
7482
+ }
7483
+ .gr-lid-side--right[data-v-f28780c3],
7484
+ .gr-lid-side--left[data-v-f28780c3] {
7485
+ width: var(--gr-ld);
7486
+ margin-left: calc(var(--gr-ld) / -2);
7487
+ }
7488
+ .gr-lid-side--right[data-v-f28780c3] {
7489
+ transform: rotateY(90deg) translateZ(calc(var(--gr-lw) / 2));
7490
+ }
7491
+ .gr-lid-side--left[data-v-f28780c3] {
7492
+ transform: rotateY(-90deg) translateZ(calc(var(--gr-lw) / 2));
7493
+ }
7494
+ /* the lip of the lid catches the light along its top edge and shades its own underside */
7495
+ .gr-lid-side.gr-face--out[data-v-f28780c3] {
7496
+ background: linear-gradient(180deg, var(--gr-paper-hi), var(--gr-color));
7497
+ box-shadow:
7498
+ inset 0 1px 0 rgb(255 255 255 / 0.35),
7499
+ inset 0 -1px 0 rgb(0 0 0 / 0.3);
7500
+ }
7501
+
7502
+ /* ---- bow (flat layer over the lid) ------------------------------------------------- */
7503
+ .gr-bow[data-v-f28780c3] {
7504
+ position: absolute;
7505
+ left: calc(50% + var(--gr-s) * var(--gr-top-x));
7506
+ bottom: calc(var(--gr-s) * (var(--gr-top-y) - 0.08));
7507
+ width: calc(var(--gr-s) * 0.56);
7508
+ height: calc(var(--gr-s) * 0.32);
7509
+ margin-left: calc(var(--gr-s) * -0.28);
7510
+ transform-origin: 50% 75%;
7511
+ pointer-events: none;
7512
+ }
7513
+ .gr-bow-hint > span[data-v-f28780c3] {
7514
+ position: absolute;
7515
+ display: block;
7516
+ }
7517
+
7518
+ /* the bow's soft shadow on the lid */
7519
+ .gr-bow-shadow[data-v-f28780c3] {
7520
+ left: 8%;
7521
+ right: 8%;
7522
+ bottom: 4%;
7523
+ height: 34%;
7524
+ border-radius: 50%;
7525
+ background: radial-gradient(closest-side, rgb(0 0 0 / 0.35), transparent);
7526
+ }
7527
+
7528
+ /* Each loop: a bright ridge along its top, darkening into the fold at the knot. */
7529
+ .gr-loop[data-v-f28780c3] {
7530
+ top: 4%;
7531
+ width: 48%;
7532
+ height: 64%;
7533
+ border-radius: 58% 42% 48% 52% / 62% 58% 42% 38%;
7534
+ box-shadow:
7535
+ inset 0 calc(var(--gr-s) * 0.012) calc(var(--gr-s) * 0.006) rgb(255 255 255 / 0.45),
7536
+ inset 0 calc(var(--gr-s) * -0.03) calc(var(--gr-s) * 0.04) rgb(0 0 0 / 0.25),
7537
+ 0 calc(var(--gr-s) * 0.008) calc(var(--gr-s) * 0.02) rgb(0 0 0 / 0.3);
7538
+ }
7539
+ .gr-loop--l[data-v-f28780c3] {
7540
+ left: 3%;
7541
+ transform-origin: 96% 70%;
7542
+ transform: rotate(-14deg);
7543
+ background:
7544
+ /* the fold: the loop turns under itself where it meets the knot */
7545
+ radial-gradient(70% 55% at 100% 62%, var(--gr-ribbon-fold), transparent 70%),
7546
+ /* the ridge: a bright line along the top of the loop */
7547
+ radial-gradient(80% 40% at 42% 18%, rgb(255 255 255 / 0.45), transparent 70%),
7548
+ linear-gradient(165deg, var(--gr-ribbon-hi), var(--gr-ribbon) 40%, var(--gr-ribbon-lo) 90%);
7549
+ }
7550
+ .gr-loop--r[data-v-f28780c3] {
7551
+ right: 3%;
7552
+ border-radius: 42% 58% 52% 48% / 58% 62% 38% 42%;
7553
+ transform-origin: 4% 70%;
7554
+ transform: rotate(14deg);
7555
+ /* the light comes from the left, so this loop sits a step darker */
7556
+ background:
7557
+ radial-gradient(70% 55% at 0% 62%, var(--gr-ribbon-fold), transparent 70%),
7558
+ radial-gradient(80% 40% at 58% 18%, rgb(255 255 255 / 0.3), transparent 70%),
7559
+ linear-gradient(
7560
+ 195deg,
7561
+ var(--gr-ribbon),
7562
+ color-mix(in oklab, var(--gr-ribbon) 84%, black) 40%,
7563
+ var(--gr-ribbon-lo) 90%
7564
+ );
7565
+ }
7566
+ .gr-knot[data-v-f28780c3] {
7567
+ left: 50%;
7568
+ top: 30%;
7569
+ width: 19%;
7570
+ height: 42%;
7571
+ margin-left: -9.5%;
7572
+ border-radius: 34%;
7573
+ background: linear-gradient(
7574
+ 95deg,
7575
+ var(--gr-ribbon-lo),
7576
+ var(--gr-ribbon-hi) 38%,
7577
+ var(--gr-ribbon) 62%,
7578
+ var(--gr-ribbon-lo)
7579
+ );
7580
+ box-shadow:
7581
+ 0 calc(var(--gr-s) * 0.006) calc(var(--gr-s) * 0.015) rgb(0 0 0 / 0.35),
7582
+ inset 0 calc(var(--gr-s) * 0.008) calc(var(--gr-s) * 0.004) rgb(255 255 255 / 0.35);
7583
+ }
7584
+ .gr-tail[data-v-f28780c3] {
7585
+ top: 56%;
7586
+ width: 13%;
7587
+ height: 52%;
7588
+ /* a notched end */
7589
+ clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
7590
+ transform-origin: 50% 0;
7591
+ }
7592
+ .gr-tail--l[data-v-f28780c3] {
7593
+ left: 38%;
7594
+ transform: rotate(28deg);
7595
+ background: linear-gradient(
7596
+ 90deg,
7597
+ var(--gr-ribbon-lo),
7598
+ var(--gr-ribbon-hi) 45%,
7599
+ var(--gr-ribbon-lo)
7600
+ );
7601
+ }
7602
+ .gr-tail--r[data-v-f28780c3] {
7603
+ left: 49%;
7604
+ transform: rotate(-24deg);
7605
+ background: linear-gradient(
7606
+ 90deg,
7607
+ var(--gr-ribbon-lo),
7608
+ var(--gr-ribbon) 45%,
7609
+ var(--gr-ribbon-fold)
7610
+ );
7611
+ }
7612
+
7613
+ /* ---- light (flat layers at the mouth of the box) ----------------------------------- */
7614
+ .gr-burst[data-v-f28780c3] {
7615
+ position: absolute;
7616
+ left: 50%;
7617
+ bottom: calc(var(--gr-s) * var(--gr-mouth-y));
7618
+ width: 0;
7619
+ height: 0;
7620
+ pointer-events: none;
7621
+ z-index: 2;
7622
+ }
7623
+ .gr-burst > span[data-v-f28780c3] {
7624
+ position: absolute;
7625
+ display: block;
7626
+ opacity: 0;
7627
+ }
7628
+
7629
+ /* a brief sliver of light at the seam the moment the lid cracks open */
7630
+ .gr-flash[data-v-f28780c3] {
7631
+ left: calc(var(--gr-s) * -0.55);
7632
+ top: calc(var(--gr-s) * -0.06);
7633
+ width: calc(var(--gr-s) * 1.1);
7634
+ height: calc(var(--gr-s) * 0.12);
7635
+ border-radius: 50%;
7636
+ /* light leaking out of the gap as the lid separates */
7637
+ background: radial-gradient(
7638
+ closest-side,
7639
+ var(--gr-glow-hot),
7640
+ var(--gr-glow-soft) 55%,
7641
+ transparent
7642
+ );
7643
+ filter: blur(calc(var(--gr-s) * 0.015));
7644
+ }
7645
+
7646
+ /* a column of light rising out of the box */
7647
+ .gr-column[data-v-f28780c3] {
7648
+ left: calc(var(--gr-s) * -0.34);
7649
+ bottom: 0;
7650
+ width: calc(var(--gr-s) * 0.68);
7651
+ height: calc(var(--gr-s) * 1.1);
7652
+ border-radius: 50% 50% 40% 40%;
7653
+ background: linear-gradient(0deg, var(--gr-glow-soft), var(--gr-glow-faint) 55%, transparent);
7654
+ filter: blur(calc(var(--gr-s) * 0.05));
7655
+ }
7656
+
7657
+ /* the wide, soft bloom around everything */
7658
+ .gr-bloom[data-v-f28780c3] {
7659
+ left: calc(var(--gr-s) * -0.85);
7660
+ bottom: calc(var(--gr-s) * -0.45);
7661
+ width: calc(var(--gr-s) * 1.7);
7662
+ height: calc(var(--gr-s) * 1.5);
7663
+ border-radius: 50%;
7664
+ background: radial-gradient(
7665
+ closest-side,
7666
+ var(--gr-glow-soft),
7667
+ var(--gr-glow-faint) 50%,
7668
+ transparent
7669
+ );
7670
+ }
7671
+
7672
+ /* a handful of specks riding the light up */
7673
+ .gr-burst > .gr-motes[data-v-f28780c3] {
7674
+ left: 0;
7675
+ bottom: 0;
7676
+ opacity: 1;
7677
+ }
7678
+ .gr-mote[data-v-f28780c3] {
7679
+ position: absolute;
7680
+ display: block;
7681
+ left: calc(var(--gr-s) * var(--gr-mx));
7682
+ bottom: 0;
7683
+ width: calc(var(--gr-s) * var(--gr-mr));
7684
+ height: calc(var(--gr-s) * var(--gr-mr));
7685
+ margin-left: calc(var(--gr-s) * var(--gr-mr) / -2);
7686
+ border-radius: 50%;
7687
+ background: radial-gradient(
7688
+ closest-side,
7689
+ white,
7690
+ var(--gr-glow-hot) 35%,
7691
+ var(--gr-glow-soft) 65%,
7692
+ transparent
7693
+ );
7694
+ opacity: 0;
7695
+ }
7696
+ .gr-mote[data-v-f28780c3]:nth-child(1) {
7697
+ --gr-mx: -0.22;
7698
+ --gr-mr: 0.07;
7699
+ --gr-md: 0;
7700
+ --gr-my: 0.95;
7701
+ --gr-mdx: -0.08;
7702
+ --gr-mo: 0.9;
7703
+ }
7704
+ .gr-mote[data-v-f28780c3]:nth-child(2) {
7705
+ --gr-mx: 0.12;
7706
+ --gr-mr: 0.045;
7707
+ --gr-md: 0.08;
7708
+ --gr-my: 1.2;
7709
+ --gr-mdx: 0.1;
7710
+ --gr-mo: 0.75;
7711
+ }
7712
+ .gr-mote[data-v-f28780c3]:nth-child(3) {
7713
+ --gr-mx: -0.04;
7714
+ --gr-mr: 0.085;
7715
+ --gr-md: 0.15;
7716
+ --gr-my: 0.8;
7717
+ --gr-mdx: 0.03;
7718
+ --gr-mo: 1;
7719
+ }
7720
+ .gr-mote[data-v-f28780c3]:nth-child(4) {
7721
+ --gr-mx: 0.26;
7722
+ --gr-mr: 0.055;
7723
+ --gr-md: 0.2;
7724
+ --gr-my: 1.05;
7725
+ --gr-mdx: 0.12;
7726
+ --gr-mo: 0.6;
7727
+ }
7728
+ .gr-mote[data-v-f28780c3]:nth-child(5) {
7729
+ --gr-mx: -0.3;
7730
+ --gr-mr: 0.035;
7731
+ --gr-md: 0.27;
7732
+ --gr-my: 1.3;
7733
+ --gr-mdx: -0.14;
7734
+ --gr-mo: 0.55;
7735
+ }
7736
+ .gr-mote[data-v-f28780c3]:nth-child(6) {
7737
+ --gr-mx: 0.06;
7738
+ --gr-mr: 0.04;
7739
+ --gr-md: 0.34;
7740
+ --gr-my: 1.4;
7741
+ --gr-mdx: -0.05;
7742
+ --gr-mo: 0.85;
7743
+ }
7744
+ .gr-mote[data-v-f28780c3]:nth-child(7) {
7745
+ --gr-mx: -0.14;
7746
+ --gr-mr: 0.042;
7747
+ --gr-md: 0.42;
7748
+ --gr-my: 1.1;
7749
+ --gr-mdx: -0.02;
7750
+ --gr-mo: 0.7;
7751
+ }
7752
+ .gr-mote[data-v-f28780c3]:nth-child(8) {
7753
+ --gr-mx: 0.2;
7754
+ --gr-mr: 0.06;
7755
+ --gr-md: 0.5;
7756
+ --gr-my: 0.9;
7757
+ --gr-mdx: 0.06;
7758
+ --gr-mo: 0.8;
7759
+ }
7760
+
7761
+ /* ---- content ------------------------------------------------------------------------ */
7762
+
7763
+ /* A line at the mouth of the open box: below it, the content is hidden, so
7764
+ it seems to rise from inside. clip-path does not change layout. */
7765
+ .gr-emerge[data-v-f28780c3] {
7766
+ position: absolute;
7767
+ left: 50%;
7768
+ bottom: calc(var(--gr-s) * var(--gr-mouth-open-y));
7769
+ width: 0;
7770
+ height: 0;
7771
+ z-index: 3;
7772
+ clip-path: inset(-100vh -100vw 0 -100vw);
7773
+ }
7774
+ .gr-content[data-v-f28780c3] {
7775
+ position: absolute;
7776
+ left: 0;
7777
+ /* settles with a small gap above the back of the rim */
7778
+ bottom: calc(var(--gr-s) * (var(--gr-rim-open-y) - var(--gr-mouth-open-y) + 0.08));
7779
+ opacity: 0;
7780
+ transform: translateX(-50%)
7781
+ translateY(calc(100% + var(--gr-s) * (var(--gr-rim-open-y) - var(--gr-mouth-open-y) + 0.1)))
7782
+ scale(0.82);
7783
+ transform-origin: 50% 100%;
7784
+ pointer-events: none;
7785
+ }
7786
+
7787
+ /* ---- open state ------------------------------------------------------------------- */
7788
+ .ft-gift-reveal[data-open] .gr-content[data-v-f28780c3] {
7789
+ opacity: 1;
7790
+ transform: translateX(-50%);
7791
+ pointer-events: auto;
7792
+ }
7793
+ .ft-gift-reveal[data-open] .gr-spill[data-v-f28780c3] {
7794
+ opacity: 0.7;
7795
+ }
7796
+ .ft-gift-reveal[data-open] .gr-groundglow[data-v-f28780c3] {
7797
+ opacity: 0.8;
7798
+ }
7799
+ .ft-gift-reveal[data-open] .gr-column[data-v-f28780c3] {
7800
+ opacity: 0.55;
7801
+ }
7802
+ .ft-gift-reveal[data-open] .gr-bloom[data-v-f28780c3] {
7803
+ opacity: 0.6;
7804
+ }
7805
+ .ft-gift-reveal[data-open] .gr-inlight[data-v-f28780c3] {
7806
+ opacity: 1;
7807
+ }
7808
+ .ft-gift-reveal[data-open] .gr-box[data-v-f28780c3] {
7809
+ opacity: 1;
7810
+ }
7811
+ .ft-gift-reveal[data-open] .gr-shadow[data-v-f28780c3] {
7812
+ opacity: 0.7;
7813
+ }
7814
+ .ft-gift-reveal[data-open]:not([data-motion="reduced"]) .gr-burst[data-v-f28780c3] {
7815
+ transform: translateY(calc(var(--gr-s) * (var(--gr-mouth-y) - var(--gr-mouth-open-y))));
7816
+ }
7817
+ .ft-gift-reveal[data-open]:not([data-motion="reduced"]) .gr-sinker[data-v-f28780c3] {
7818
+ transform: translateY(calc(var(--gr-s) * 0.1)) scale(0.86);
7819
+ }
7820
+ /* the ribbon peels away: the arms on the lid pull out from under the knot,
7821
+ then the bands down the sides drop off */
7822
+ .ft-gift-reveal[data-open]:not([data-motion="reduced"]) .gr-band--n[data-v-f28780c3],
7823
+ .ft-gift-reveal[data-open]:not([data-motion="reduced"]) .gr-band--s[data-v-f28780c3] {
7824
+ transform: scaleY(0);
7825
+ }
7826
+ .ft-gift-reveal[data-open]:not([data-motion="reduced"]) .gr-band--w[data-v-f28780c3],
7827
+ .ft-gift-reveal[data-open]:not([data-motion="reduced"]) .gr-band--e[data-v-f28780c3] {
7828
+ transform: scaleX(0);
7829
+ }
7830
+ .ft-gift-reveal[data-open]:not([data-motion="reduced"]) .gr-band--v[data-v-f28780c3] {
7831
+ transform: translateY(105%);
7832
+ }
7833
+ .ft-gift-reveal[data-open]:not([data-motion="reduced"]) .gr-bow[data-v-f28780c3] {
7834
+ transform: translateY(calc(var(--gr-s) * -0.1)) scale(0.8);
7835
+ opacity: 0;
7836
+ }
7837
+ .ft-gift-reveal[data-open]:not([data-motion="reduced"]) .gr-loop--l[data-v-f28780c3] {
7838
+ transform: rotate(-58deg) scale(0.75, 0.6);
7839
+ }
7840
+ .ft-gift-reveal[data-open]:not([data-motion="reduced"]) .gr-loop--r[data-v-f28780c3] {
7841
+ transform: rotate(58deg) scale(0.75, 0.6);
7842
+ }
7843
+ .ft-gift-reveal[data-open]:not([data-motion="reduced"]) .gr-tail--l[data-v-f28780c3] {
7844
+ transform: rotate(6deg) scaleY(1.25);
7845
+ }
7846
+ .ft-gift-reveal[data-open]:not([data-motion="reduced"]) .gr-tail--r[data-v-f28780c3] {
7847
+ transform: rotate(-4deg) scaleY(1.25);
7848
+ }
7849
+ .ft-gift-reveal[data-open]:not([data-motion="reduced"]) .gr-knot[data-v-f28780c3] {
7850
+ transform: scale(0.6);
7851
+ }
7852
+ /* the lid comes straight up and tips back... */
7853
+ .ft-gift-reveal[data-open]:not([data-motion="reduced"]) .gr-lid-lift[data-v-f28780c3] {
7854
+ transform: translateY(calc(var(--gr-s) * -0.32)) rotateX(22deg);
7855
+ }
7856
+ /* ...then sails off up and to the right along an arc, fading as it goes */
7857
+ .ft-gift-reveal[data-open]:not([data-motion="reduced"]) .gr-lid[data-v-f28780c3] {
7858
+ transform: translate3d(
7859
+ calc(var(--gr-s) * 0.85),
7860
+ calc(var(--gr-s) * -0.55),
7861
+ calc(var(--gr-s) * -0.9)
7862
+ )
7863
+ rotateX(40deg) rotateZ(-16deg) scale(0.9);
7864
+ }
7865
+ .ft-gift-reveal[data-open]:not([data-motion="reduced"]) .gr-lid > .gr-face[data-v-f28780c3] {
7866
+ opacity: 0;
7867
+ }
7868
+
7869
+ /* ---- motion ------------------------------------------------------------------------- */
7870
+
7871
+ /* Every transition below reads its timing from the root (gift-reveal-core).
7872
+ Resting rules carry the closing timeline; [data-open] rules the opening one. */
7873
+ .gr-content[data-v-f28780c3] {
7874
+ transition:
7875
+ opacity var(--gr-c-reveal-dur) var(--ft-ease-in, cubic-bezier(0.7, 0, 0.84, 0))
7876
+ var(--gr-c-reveal-delay),
7877
+ transform var(--gr-c-reveal-dur) var(--ft-ease-in, cubic-bezier(0.7, 0, 0.84, 0))
7878
+ var(--gr-c-reveal-delay);
7879
+ }
7880
+ .gr-burst[data-v-f28780c3] {
7881
+ transition: transform var(--gr-c-reveal-dur) var(--ft-ease-inout, cubic-bezier(0.4, 0, 0.2, 1))
7882
+ var(--gr-c-reveal-delay);
7883
+ }
7884
+ .gr-spill[data-v-f28780c3],
7885
+ .gr-groundglow[data-v-f28780c3],
7886
+ .gr-column[data-v-f28780c3],
7887
+ .gr-bloom[data-v-f28780c3],
7888
+ .gr-inlight[data-v-f28780c3],
7889
+ .gr-box[data-v-f28780c3],
7890
+ .gr-shadow[data-v-f28780c3] {
7891
+ transition: opacity var(--gr-c-burst-dur) var(--ft-ease-inout, cubic-bezier(0.4, 0, 0.2, 1))
7892
+ var(--gr-c-burst-delay);
7893
+ }
7894
+ .gr-sinker[data-v-f28780c3] {
7895
+ transition: transform var(--gr-c-lid-dur) var(--ft-ease-out, cubic-bezier(0.16, 1, 0.3, 1))
7896
+ var(--gr-c-reveal-delay);
7897
+ }
7898
+ /* closing ties the ribbon back on: sides first, then the arms, then the bow */
7899
+ .gr-band--v[data-v-f28780c3] {
7900
+ transition: transform calc(var(--gr-c-untie-dur) * 0.5)
7901
+ var(--ft-ease-out, cubic-bezier(0.16, 1, 0.3, 1)) var(--gr-c-untie-delay);
7902
+ }
7903
+ .gr-band--n[data-v-f28780c3],
7904
+ .gr-band--s[data-v-f28780c3],
7905
+ .gr-band--w[data-v-f28780c3],
7906
+ .gr-band--e[data-v-f28780c3] {
7907
+ transition: transform calc(var(--gr-c-untie-dur) * 0.5)
7908
+ var(--ft-ease-out, cubic-bezier(0.16, 1, 0.3, 1))
7909
+ calc(var(--gr-c-untie-delay) + var(--gr-c-untie-dur) * 0.25);
7910
+ }
7911
+ .gr-bow[data-v-f28780c3],
7912
+ .gr-loop[data-v-f28780c3],
7913
+ .gr-tail[data-v-f28780c3],
7914
+ .gr-knot[data-v-f28780c3] {
7915
+ transition:
7916
+ transform calc(var(--gr-c-untie-dur) * 0.5) var(--ft-ease-out, cubic-bezier(0.16, 1, 0.3, 1))
7917
+ calc(var(--gr-c-untie-delay) + var(--gr-c-untie-dur) * 0.5),
7918
+ opacity calc(var(--gr-c-untie-dur) * 0.5) var(--ft-ease-out, cubic-bezier(0.16, 1, 0.3, 1))
7919
+ calc(var(--gr-c-untie-delay) + var(--gr-c-untie-dur) * 0.5);
7920
+ }
7921
+ .gr-lid-lift[data-v-f28780c3],
7922
+ .gr-lid[data-v-f28780c3] {
7923
+ transition: transform var(--gr-c-lid-dur) var(--ft-ease-out, cubic-bezier(0.16, 1, 0.3, 1))
7924
+ var(--gr-c-lid-delay);
7925
+ }
7926
+ .gr-lid > .gr-face[data-v-f28780c3] {
7927
+ transition: opacity calc(var(--gr-c-lid-dur) * 0.5)
7928
+ var(--ft-ease-out, cubic-bezier(0.16, 1, 0.3, 1)) var(--gr-c-lid-delay);
7929
+ }
7930
+ .ft-gift-reveal[data-open] .gr-content[data-v-f28780c3] {
7931
+ transition:
7932
+ opacity calc(var(--gr-o-reveal-dur) * 0.3) var(--ft-ease-out, cubic-bezier(0.16, 1, 0.3, 1))
7933
+ var(--gr-o-reveal-delay),
7934
+ transform var(--gr-o-reveal-dur) var(--ft-ease-out, cubic-bezier(0.16, 1, 0.3, 1))
7935
+ var(--gr-o-reveal-delay);
7936
+ }
7937
+ .ft-gift-reveal[data-open] .gr-burst[data-v-f28780c3] {
7938
+ transition: transform var(--gr-o-reveal-dur) var(--ft-ease-inout, cubic-bezier(0.4, 0, 0.2, 1))
7939
+ var(--gr-o-reveal-delay);
7940
+ }
7941
+ .ft-gift-reveal[data-open] .gr-spill[data-v-f28780c3],
7942
+ .ft-gift-reveal[data-open] .gr-groundglow[data-v-f28780c3],
7943
+ .ft-gift-reveal[data-open] .gr-column[data-v-f28780c3],
7944
+ .ft-gift-reveal[data-open] .gr-bloom[data-v-f28780c3],
7945
+ .ft-gift-reveal[data-open] .gr-inlight[data-v-f28780c3] {
7946
+ transition: opacity calc(var(--gr-o-burst-dur) * 0.6)
7947
+ var(--ft-ease-out, cubic-bezier(0.16, 1, 0.3, 1)) var(--gr-o-burst-delay);
7948
+ }
7949
+ .ft-gift-reveal[data-open] .gr-box[data-v-f28780c3],
7950
+ .ft-gift-reveal[data-open] .gr-shadow[data-v-f28780c3] {
7951
+ transition: opacity var(--gr-o-reveal-dur) var(--ft-ease-inout, cubic-bezier(0.4, 0, 0.2, 1))
7952
+ var(--gr-o-reveal-delay);
7953
+ }
7954
+ .ft-gift-reveal[data-open] .gr-sinker[data-v-f28780c3] {
7955
+ transition: transform var(--gr-o-reveal-dur) var(--ft-ease-inout, cubic-bezier(0.4, 0, 0.2, 1))
7956
+ var(--gr-o-reveal-delay);
7957
+ }
7958
+ /* opening: the bow gives first, the arms pull out, the sides drop */
7959
+ .ft-gift-reveal[data-open] .gr-bow[data-v-f28780c3],
7960
+ .ft-gift-reveal[data-open] .gr-loop[data-v-f28780c3],
7961
+ .ft-gift-reveal[data-open] .gr-tail[data-v-f28780c3],
7962
+ .ft-gift-reveal[data-open] .gr-knot[data-v-f28780c3] {
7963
+ transition:
7964
+ transform calc(var(--gr-o-untie-dur) * 0.45) var(--ft-ease-out, cubic-bezier(0.16, 1, 0.3, 1))
7965
+ var(--gr-o-untie-delay),
7966
+ opacity calc(var(--gr-o-untie-dur) * 0.45) var(--ft-ease-in, cubic-bezier(0.7, 0, 0.84, 0))
7967
+ var(--gr-o-untie-delay);
7968
+ }
7969
+ .ft-gift-reveal[data-open] .gr-band--n[data-v-f28780c3],
7970
+ .ft-gift-reveal[data-open] .gr-band--s[data-v-f28780c3],
7971
+ .ft-gift-reveal[data-open] .gr-band--w[data-v-f28780c3],
7972
+ .ft-gift-reveal[data-open] .gr-band--e[data-v-f28780c3] {
7973
+ transition: transform calc(var(--gr-o-untie-dur) * 0.45)
7974
+ var(--ft-ease-inout, cubic-bezier(0.4, 0, 0.2, 1))
7975
+ calc(var(--gr-o-untie-delay) + var(--gr-o-untie-dur) * 0.15);
7976
+ }
7977
+ .ft-gift-reveal[data-open] .gr-band--v[data-v-f28780c3] {
7978
+ transition: transform calc(var(--gr-o-untie-dur) * 0.55)
7979
+ var(--ft-ease-in, cubic-bezier(0.7, 0, 0.84, 0))
7980
+ calc(var(--gr-o-untie-delay) + var(--gr-o-untie-dur) * 0.4);
7981
+ }
7982
+ /* the lid comes straight up and tips back... */
7983
+ .ft-gift-reveal[data-open] .gr-lid-lift[data-v-f28780c3] {
7984
+ transition: transform calc(var(--gr-o-lid-dur) * 0.45)
7985
+ var(--ft-ease-out, cubic-bezier(0.16, 1, 0.3, 1)) var(--gr-o-lid-delay);
7986
+ }
7987
+ /* ...then sails off along an arc and fades out over the second half */
7988
+ .ft-gift-reveal[data-open] .gr-lid[data-v-f28780c3] {
7989
+ transition: transform calc(var(--gr-o-lid-dur) * 0.8)
7990
+ var(--ft-ease-inout, cubic-bezier(0.4, 0, 0.2, 1))
7991
+ calc(var(--gr-o-lid-delay) + var(--gr-o-lid-dur) * 0.2);
7992
+ }
7993
+ .ft-gift-reveal[data-open] .gr-lid > .gr-face[data-v-f28780c3] {
7994
+ transition: opacity calc(var(--gr-o-lid-dur) * 0.55)
7995
+ var(--ft-ease-inout, cubic-bezier(0.4, 0, 0.2, 1))
7996
+ calc(var(--gr-o-lid-delay) + var(--gr-o-lid-dur) * 0.45);
7997
+ }
7998
+
7999
+ /* One-shot keyframes: only after a real change, never on mount. */
8000
+ .ft-gift-reveal[data-animate][data-open]:not([data-motion="reduced"]) .gr-wiggle[data-v-f28780c3] {
8001
+ animation: gr-anticipate-f28780c3 var(--gr-o-anticipate-dur) var(--ft-ease-inout, cubic-bezier(0.4, 0, 0.2, 1)) var(--gr-o-anticipate-delay) both;
8002
+ }
8003
+ .ft-gift-reveal[data-animate][data-open]:not([data-motion="reduced"]) .gr-bow-wiggle[data-v-f28780c3] {
8004
+ animation: gr-anticipate-flat-f28780c3 var(--gr-o-anticipate-dur) var(--ft-ease-inout, cubic-bezier(0.4, 0, 0.2, 1)) var(--gr-o-anticipate-delay) both;
8005
+ }
8006
+ .ft-gift-reveal[data-animate][data-open]:not([data-motion="reduced"]) .gr-flash[data-v-f28780c3] {
8007
+ animation: gr-flash-f28780c3 calc(var(--gr-o-lid-dur) * 0.35) var(--ft-ease-out, cubic-bezier(0.16, 1, 0.3, 1))
8008
+ calc(var(--gr-o-lid-delay) + var(--gr-o-lid-dur) * 0.08) both;
8009
+ }
8010
+ .ft-gift-reveal[data-animate][data-open]:not([data-motion="reduced"]) .gr-bloom[data-v-f28780c3] {
8011
+ animation: gr-flare-f28780c3 var(--gr-o-burst-dur) var(--ft-ease-out, cubic-bezier(0.16, 1, 0.3, 1))
8012
+ var(--gr-o-burst-delay) both;
8013
+ }
8014
+ .ft-gift-reveal[data-animate][data-open]:not([data-motion="reduced"]) .gr-mote[data-v-f28780c3] {
8015
+ animation: gr-rise-f28780c3 calc(var(--gr-o-burst-dur) * 0.9) var(--ft-ease-out, cubic-bezier(0.16, 1, 0.3, 1))
8016
+ calc(var(--gr-o-burst-delay) + var(--gr-o-burst-dur) * var(--gr-md)) both;
8017
+ }
8018
+
8019
+ /* Idle hint while closed: the lid gives a small hop and a sheen crosses the paper. */
8020
+ .ft-gift-reveal:not([data-open], [data-motion="reduced"]) .gr-button:hover .gr-lid-hint[data-v-f28780c3],
8021
+ .ft-gift-reveal:not([data-open], [data-motion="reduced"]) .gr-button:focus-visible .gr-lid-hint[data-v-f28780c3],
8022
+ .ft-gift-reveal:not([data-open], [data-motion="reduced"]) .gr-button:hover .gr-bow-hint[data-v-f28780c3],
8023
+ .ft-gift-reveal:not([data-open], [data-motion="reduced"]) .gr-button:focus-visible .gr-bow-hint[data-v-f28780c3] {
8024
+ animation: gr-hint-f28780c3 var(--ft-duration-entrance, 600ms)
8025
+ var(--ft-ease-out, cubic-bezier(0.16, 1, 0.3, 1)) both;
8026
+ }
8027
+ .ft-gift-reveal:not([data-open], [data-motion="reduced"]) .gr-button:hover .gr-sheen[data-v-f28780c3],
8028
+ .ft-gift-reveal:not([data-open], [data-motion="reduced"]) .gr-button:focus-visible .gr-sheen[data-v-f28780c3] {
8029
+ animation: gr-sweep-f28780c3 var(--ft-duration-entrance, 600ms)
8030
+ var(--ft-ease-inout, cubic-bezier(0.4, 0, 0.2, 1)) both;
8031
+ }
8032
+
8033
+ /* the flat bow follows the box's squash and hop through its own wrappers */
8034
+ .gr-bow-wiggle[data-v-f28780c3],
8035
+ .gr-bow-hint[data-v-f28780c3] {
8036
+ position: absolute;
8037
+ inset: 0;
8038
+ pointer-events: none;
8039
+ }
8040
+ .gr-bow-wiggle[data-v-f28780c3] {
8041
+ /* pivots at the base of the box, like the box itself */
8042
+ transform-origin: 50% calc(100% - var(--gr-s) * var(--gr-base-y));
8043
+ }
8044
+ @keyframes gr-anticipate-f28780c3 {
8045
+ 0% {
8046
+ transform: none;
8047
+ }
8048
+ 25% {
8049
+ transform: scale(1.05, 0.9);
8050
+ }
8051
+ 45% {
8052
+ transform: scale(0.98, 1.04) rotateZ(-3deg);
8053
+ }
8054
+ 62% {
8055
+ transform: rotateZ(2.5deg);
8056
+ }
8057
+ 80% {
8058
+ transform: rotateZ(-1.2deg);
8059
+ }
8060
+ 100% {
8061
+ transform: none;
8062
+ }
8063
+ }
8064
+
8065
+ /* the same beat for the flat bow: squash reads as a drop, sway as a sway */
8066
+ @keyframes gr-anticipate-flat-f28780c3 {
8067
+ 0% {
8068
+ transform: none;
8069
+ }
8070
+ 25% {
8071
+ transform: translateY(calc(var(--gr-s) * 0.07)) scale(1.04, 0.96);
8072
+ }
8073
+ 45% {
8074
+ transform: translateY(calc(var(--gr-s) * -0.03)) rotate(-3deg);
8075
+ }
8076
+ 62% {
8077
+ transform: rotate(2.5deg);
8078
+ }
8079
+ 80% {
8080
+ transform: rotate(-1.2deg);
8081
+ }
8082
+ 100% {
8083
+ transform: none;
8084
+ }
8085
+ }
8086
+ @keyframes gr-flash-f28780c3 {
8087
+ 0% {
8088
+ opacity: 0;
8089
+ transform: scale(0.96);
8090
+ }
8091
+ 30% {
8092
+ opacity: 0.9;
8093
+ }
8094
+ 100% {
8095
+ opacity: 0;
8096
+ transform: scale(1.04);
8097
+ }
8098
+ }
8099
+ @keyframes gr-flare-f28780c3 {
8100
+ 0% {
8101
+ opacity: 0;
8102
+ transform: scale(0.6);
8103
+ }
8104
+ 30% {
8105
+ opacity: 1;
8106
+ transform: scale(1.12);
8107
+ }
8108
+ 100% {
8109
+ transform: scale(1);
8110
+ }
8111
+ }
8112
+ @keyframes gr-rise-f28780c3 {
8113
+ 0% {
8114
+ opacity: 0;
8115
+ transform: translate(0, 0) scale(0.5);
8116
+ }
8117
+ 18% {
8118
+ opacity: var(--gr-mo);
8119
+ }
8120
+ 70% {
8121
+ opacity: calc(var(--gr-mo) * 0.7);
8122
+ }
8123
+ 100% {
8124
+ opacity: 0;
8125
+ transform: translate(calc(var(--gr-s) * var(--gr-mdx)), calc(var(--gr-s) * var(--gr-my) * -1))
8126
+ scale(1);
8127
+ }
8128
+ }
8129
+ @keyframes gr-hint-f28780c3 {
8130
+ 0%,
8131
+ 100% {
8132
+ transform: none;
8133
+ }
8134
+ 30% {
8135
+ transform: translateY(calc(var(--gr-s) * -0.05)) rotateZ(-1.5deg);
8136
+ }
8137
+ 55% {
8138
+ transform: none;
8139
+ }
8140
+ 72% {
8141
+ transform: translateY(calc(var(--gr-s) * -0.015));
8142
+ }
8143
+ }
8144
+ @keyframes gr-sweep-f28780c3 {
8145
+ from {
8146
+ background-position: 0% 0;
8147
+ }
8148
+ to {
8149
+ background-position: 100% 0;
8150
+ }
8151
+ }
8152
+
8153
+ /* ---- reduced motion: nothing travels, the box and the content cross-fade ---------------- */
8154
+
8155
+ /* The travel rules and the one-shot keyframes above already skip this mode; what is
8156
+ left is opacity. */
8157
+ .ft-gift-reveal[data-motion="reduced"] .gr-content[data-v-f28780c3] {
8158
+ transform: translateX(-50%);
8159
+ }
8160
+ .ft-gift-reveal[data-motion="reduced"][data-open] .gr-box[data-v-f28780c3],
8161
+ .ft-gift-reveal[data-motion="reduced"][data-open] .gr-shadow[data-v-f28780c3],
8162
+ .ft-gift-reveal[data-motion="reduced"][data-open] .gr-bow[data-v-f28780c3] {
8163
+ opacity: 0;
8164
+ }
8165
+
6825
8166
  .ft-number-input-field[data-v-fd3c567f]:focus-visible {
6826
8167
  --ft-number-input-accent: var(
6827
8168
  --ft-accent,